7 #ifndef MEDIA_FILTERS_H264_BIT_READER_H_
8 #define MEDIA_FILTERS_H264_BIT_READER_H_
11 #include <sys/types.h>
13 #include "packager/base/macros.h"
15 namespace edash_packager {
30 bool Initialize(
const uint8_t* data, off_t size);
37 bool ReadBits(
int num_bits,
int* out);
41 bool ReadUE(
int* val);
44 bool ReadSE(
int* val);
50 bool HasMoreRBSPData();
53 size_t NumEmulationPreventionBytesRead();
58 bool UpdateCurrByte();
71 int num_remaining_bits_in_curr_byte_;
78 size_t emulation_prevention_bytes_;
86 #endif // MEDIA_FILTERS_H264_BIT_READER_H_