  
  #include "cereal/messaging/messaging.h"
  #include "cereal/visionipc/visionipc.h"
  #include "common/queue.h"
  #include "system/loggerd/video_writer.h"
  #include "system/camerad/cameras/camera_common.h"
  
  #define V4L2_BUF_FLAG_KEYFRAME 8
  
  class VideoEncoder {
 
</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_close();
 </s> add  </s> remove   writer_open(path);
 </s> add 
  
  #include "cereal/messaging/messaging.h"
  #include "cereal/visionipc/visionipc.h"
  #include "common/queue.h"

  #include "system/camerad/cameras/camera_common.h"
  
  #define V4L2_BUF_FLAG_KEYFRAME 8
  
  class VideoEncoder {
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