26 static constexpr size_t kUnitStreamNaluLengthSize = 4;
35 H26xStreamFormat stream_format);
48 size_t input_frame_size,
49 std::vector<uint8_t>* output_frame);
58 std::vector<uint8_t>* decoder_config)
const = 0;
60 H26xStreamFormat stream_format()
const {
return stream_format_; }
63 bool strip_parameter_set_nalus()
const {
64 return stream_format_ ==
65 H26xStreamFormat::kNalUnitStreamWithoutParameterSetNalus;
69 void WarnIfNotMatch(
int nalu_type,
70 const uint8_t* nalu_ptr,
72 const std::vector<uint8_t>& vector);
77 virtual bool ProcessNalu(
const Nalu& nalu) = 0;
79 Nalu::CodecType type_;
80 H26xStreamFormat stream_format_;
82 DISALLOW_COPY_AND_ASSIGN(H26xByteToUnitStreamConverter);