  public:
    VideoEncoder(const char* filename, CameraType type, int in_width, int in_height, int fps,
                int bitrate, cereal::EncodeIndex::Type codec, int out_width, int out_height, bool write)
    : filename(filename), type(type), in_width(in_width), in_height(in_height), fps(fps),
      bitrate(bitrate), codec(codec), out_width(out_width), out_height(out_height), write(write) { }
    virtual ~VideoEncoder();
    virtual int encode_frame(VisionBuf* buf, VisionIpcBufExtra *extra) = 0;
    virtual void encoder_open(const char* path) = 0;
    virtual void encoder_close() = 0;
  
 
</s> remove               int bitrate, cereal::EncodeIndex::Type codec, int out_width, int out_height, bool write)
 </s> add               int bitrate, cereal::EncodeIndex::Type codec, int out_width, int out_height) </s> remove              int bitrate, cereal::EncodeIndex::Type codec, int out_width, int out_height, bool write) :
             VideoEncoder(filename, type, in_width, in_height, fps, bitrate, codec, out_width, out_height, write) { encoder_init(); }
 </s> add              int bitrate, cereal::EncodeIndex::Type codec, int out_width, int out_height) :
             VideoEncoder(filename, type, in_width, in_height, fps, bitrate, codec, out_width, out_height) { encoder_init(); } </s> remove                 int bitrate, cereal::EncodeIndex::Type codec, int out_width, int out_height, bool write) :
                VideoEncoder(filename, type, in_width, in_height, fps, bitrate, cereal::EncodeIndex::Type::BIG_BOX_LOSSLESS, out_width, out_height, write) { encoder_init(); }
 </s> add                 int bitrate, cereal::EncodeIndex::Type codec, int out_width, int out_height) :
                VideoEncoder(filename, type, in_width, in_height, fps, bitrate, cereal::EncodeIndex::Type::BIG_BOX_LOSSLESS, out_width, out_height) { encoder_init(); } </s> remove   writer_open(path);
 </s> add  </s> remove   writer_open(path);
 </s> add 
    bitrate(bitrate), codec(codec), out_width(out_width), out_height(out_height) { }
  public:
    VideoEncoder(const char* filename, CameraType type, int in_width, int in_height, int fps,
                int bitrate, cereal::EncodeIndex::Type codec, int out_width, int out_height, bool write)
    : filename(filename), type(type), in_width(in_width), in_height(in_height), fps(fps),
    bitrate(bitrate), codec(codec), out_width(out_width), out_height(out_height) { }
    virtual ~VideoEncoder();
    virtual int encode_frame(VisionBuf* buf, VisionIpcBufExtra *extra) = 0;
    virtual void encoder_open(const char* path) = 0;
    virtual void encoder_close() = 0;
  
keep keep keep keep replace keep keep keep keep keep
 Encoderd: encoders don't write, they only encode (#28499)

* Encoders dont write, they encode

* Delete words

* unused

---------

Co-authored-by: Harald Schaefer <torq_boi@Haralds-MacBook-Air.local>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com> 
system/loggerd/encoder/encoder.h