vdr-plugin-softhddevice-drm-gles
1.5.9-20e15de
h264parser.h
Go to the documentation of this file.
1
20
#ifndef __H264PARSER_H
21
#define __H264PARSER_H
22
23
extern
"C"
{
24
#include <libavcodec/avcodec.h>
25
}
26
27
typedef
enum
{
28
NALU_TYPE_NON_IDR
= (1 << 0),
29
NALU_TYPE_IDR
= (1 << 1),
30
NALU_TYPE_SEI
= (1 << 2),
31
NALU_TYPE_SPS
= (1 << 3),
32
NALU_TYPE_PPS
= (1 << 4),
33
NALU_TYPE_AUD
= (1 << 5)
34
}
NalUnitTypes
;
35
39
class
cH264Parser
40
{
41
public
:
42
cH264Parser
(AVPacket *);
43
int
GetWidth
(
void
) {
return
m_width
; };
44
int
GetHeight
(
void
) {
return
m_height
; };
45
bool
IsIFrame
(
void
);
46
bool
IsMbaff
(
void
) {
return
m_mbaff
; };
47
48
private
:
49
AVPacket *
m_pAvpkt
;
50
const
unsigned
char
*
m_pStart
;
51
unsigned
short
m_nLength
;
52
int
m_nCurrentBit
;
53
54
int
m_nalutype
= 0;
55
56
int
m_width
= 0;
57
int
m_height
= 0;
58
bool
m_mbaff
=
false
;
59
60
unsigned
int
ReadBit
(
void
);
61
unsigned
int
ReadBits
(
int
);
62
unsigned
int
ReadExponentialGolombCode
(
void
);
63
unsigned
int
ReadSE
(
void
);
64
};
65
66
#endif
cH264Parser
cH264Parser - H264 Parser class
Definition
h264parser.h:40
cH264Parser::ReadSE
unsigned int ReadSE(void)
Definition
h264parser.cpp:284
cH264Parser::m_height
int m_height
Definition
h264parser.h:57
cH264Parser::ReadBit
unsigned int ReadBit(void)
Definition
h264parser.cpp:250
cH264Parser::ReadBits
unsigned int ReadBits(int)
Definition
h264parser.cpp:260
cH264Parser::m_width
int m_width
Definition
h264parser.h:56
cH264Parser::GetWidth
int GetWidth(void)
Definition
h264parser.h:43
cH264Parser::IsIFrame
bool IsIFrame(void)
Definition
h264parser.cpp:241
cH264Parser::m_nLength
unsigned short m_nLength
Definition
h264parser.h:51
cH264Parser::m_nalutype
int m_nalutype
Definition
h264parser.h:54
cH264Parser::m_pStart
const unsigned char * m_pStart
Definition
h264parser.h:50
cH264Parser::m_mbaff
bool m_mbaff
Definition
h264parser.h:58
cH264Parser::GetHeight
int GetHeight(void)
Definition
h264parser.h:44
cH264Parser::m_nCurrentBit
int m_nCurrentBit
Definition
h264parser.h:52
cH264Parser::IsMbaff
bool IsMbaff(void)
Definition
h264parser.h:46
cH264Parser::m_pAvpkt
AVPacket * m_pAvpkt
Definition
h264parser.h:49
cH264Parser::ReadExponentialGolombCode
unsigned int ReadExponentialGolombCode(void)
Definition
h264parser.cpp:270
NalUnitTypes
NalUnitTypes
Definition
h264parser.h:27
NALU_TYPE_NON_IDR
@ NALU_TYPE_NON_IDR
Definition
h264parser.h:28
NALU_TYPE_AUD
@ NALU_TYPE_AUD
Definition
h264parser.h:33
NALU_TYPE_SEI
@ NALU_TYPE_SEI
Definition
h264parser.h:30
NALU_TYPE_PPS
@ NALU_TYPE_PPS
Definition
h264parser.h:32
NALU_TYPE_SPS
@ NALU_TYPE_SPS
Definition
h264parser.h:31
NALU_TYPE_IDR
@ NALU_TYPE_IDR
Definition
h264parser.h:29
h264parser.h
Generated by
1.9.8