22#include <libavcodec/avcodec.h>
162 m_ppsNumRefIdxL0DefaultActiveMinus1(
refIdxL0),
163 m_ppsNumRefIdxL1DefaultActiveMinus1(
refIdxL1)
234 for (
int i = 0;
i < 8;
i++) {
362 for (
int b = 0; b <
bits; b++) {
441 if (idc == 0 || idc == 1) {
479 if (idc == 0 || idc == 1) {
505 if (idc == 0 || idc == 1) {
622 LOGDEBUG(
"Stream: %02x %02x %02x %02x %02x %02x %02x %02x %02x "
623 "%02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x "
624 "%02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x size %d",
625 data[0], data[1], data[2], data[3], data[4], data[5], data[6], data[7], data[8],
626 data[9], data[10], data[11], data[12], data[13], data[14], data[15], data[16], data[17],
627 data[18], data[19], data[20], data[21], data[22], data[23], data[24], data[25], data[26],
628 data[27], data[28], data[29], data[30], data[31], data[32], data[33], data[34],
m_pAvpkt->size);
669 for (
int i = 0;
i <
n;
i++) {
bool m_hasInvalidBackwardReferences
int m_ppsNumRefIdxL1DefaultActiveMinus1
int m_ppsNumRefIdxL0DefaultActiveMinus1
bool m_hasInvalidReferences
int m_log2MaxFrameNumMinus4
const unsigned char * m_pStart
std::vector< uint8_t > m_rbsp
std::vector< RefPicMod > m_refMods
std::set< int > m_invalidReferences
bool m_hasValidReferences
std::set< int > m_validReferences
#define LOGDEBUG2
log to LOG_DEBUG and add a prefix
void BuildInvalidReferenceString(int)
Add a whitespace-separated list of all invalid references to the log output string.
unsigned int ReadSE(void)
Read a signed exponential-golomb coded integer.
#define LOGDEBUG
log to LOG_DEBUG
unsigned int ReadBit(void)
Read the next bit of a stream.
unsigned int ReadBits(int)
Read n number of bits of a stream.
cH264Parser(AVPacket *, int, int, int)
Init the h264 parser and detect the nalu types.
void PrintNalUnits(void)
Print the previously created log output string.
int GetSliceOffset(void)
Get the slice offset.
void ConvertEBSPtoRBSP(const uint8_t *, int)
void AddFrameNumber(int)
Add the frame number to the log output string.
int GetPPSOffset(void)
Get the PPS offset.
void AddValidReference(int)
Adds a valid reference.
static uint32_t ReadBytes(const uint8_t *data, int count)
Return count amount of bytes from data
void PrintStreamData(void)
Print raw stream data of the first 35 bytes.
static int NalUnitType(const uint8_t *data, int offset, int startCodeLength)
Return the nal unit type.
void BuildValidReferenceString(void)
Add a whitespace-separated list of all valid references to the log output string.
void AddInvalidReference(int, int)
Adds an invalid reference.
unsigned int ReadExponentialGolombCode(void)
Read an unsigned exponential-golomb coded integer.
bool isValidStartCode(const uint8_t *data, int offset, int size, int &startCodeLength)
Check for a 0x000001 or 0x00000001 start code.
int GetSPSOffset(void)
Get the SPS offset.
H.264 Parser Header File.