22#include <libavcodec/avcodec.h>
163 m_ppsNumRefIdxL0DefaultActiveMinus1(
refIdxL0),
164 m_ppsNumRefIdxL1DefaultActiveMinus1(
refIdxL1)
235 for (
int i = 0;
i < 8;
i++) {
363 for (
int b = 0; b <
bits; b++) {
442 if (idc == 0 || idc == 1) {
480 if (idc == 0 || idc == 1) {
506 if (idc == 0 || idc == 1) {
623 LOGDEBUG(
"Stream: %02x %02x %02x %02x %02x %02x %02x %02x %02x "
624 "%02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x "
625 "%02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x size %d",
626 data[0], data[1], data[2], data[3], data[4], data[5], data[6], data[7], data[8],
627 data[9], data[10], data[11], data[12], data[13], data[14], data[15], data[16], data[17],
628 data[18], data[19], data[20], data[21], data[22], data[23], data[24], data[25], data[26],
629 data[27], data[28], data[29], data[30], data[31], data[32], data[33], data[34],
m_pAvpkt->size);
670 for (
int i = 0;
i <
n;
i++) {
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.
bool m_hasInvalidBackwardReferences
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.
int m_ppsNumRefIdxL1DefaultActiveMinus1
void PrintNalUnits(void)
Print the previously created log output string.
int m_ppsNumRefIdxL0DefaultActiveMinus1
int GetSliceOffset(void)
Get the slice offset.
void ConvertEBSPtoRBSP(const uint8_t *, int)
bool m_hasInvalidReferences
int m_log2MaxFrameNumMinus4
const unsigned char * m_pStart
void AddFrameNumber(int)
Add the frame number to the log output string.
int GetPPSOffset(void)
Get the PPS offset.
std::vector< uint8_t > m_rbsp
void AddValidReference(int)
Adds a valid reference.
void PrintStreamData(void)
Print raw stream data of the first 35 bytes.
std::vector< RefPicMod > m_refMods
std::set< int > m_invalidReferences
bool m_hasValidReferences
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.
std::set< int > m_validReferences
int GetSPSOffset(void)
Get the SPS offset.
#define LOGDEBUG2
log to LOG_DEBUG and add a prefix
#define LOGDEBUG
log to LOG_DEBUG
static uint32_t ReadBytes(const uint8_t *data, int count)
Return count amount of bytes from data
static int NalUnitType(const uint8_t *data, int offset, int startCodeLength)
H.264 Parser Helper to get the nal unit type.
bool isValidStartCode(const uint8_t *data, int offset, int size, int &startCodeLength)
H.264 Parser Helper to check for a 0x000001 or 0x00000001 start code.
H.264 Parser Header File.