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);
43 bool HasMoreRBSPData();
46 size_t NumEmulationPreventionBytesRead();
51 bool UpdateCurrByte();
64 int num_remaining_bits_in_curr_byte_;
71 size_t emulation_prevention_bytes_;
79 #endif // MEDIA_FILTERS_H264_BIT_READER_H_