#include <BitstreamConverter.h>
◆ omx_bitstream_ctx
◆ CBitstreamConverter()
CBitstreamConverter::CBitstreamConverter |
( |
| ) |
|
◆ ~CBitstreamConverter()
CBitstreamConverter::~CBitstreamConverter |
( |
| ) |
|
◆ avc_parse_nal_units()
int CBitstreamConverter::avc_parse_nal_units |
( |
AVIOContext * |
pb, |
|
|
const uint8_t * |
buf_in, |
|
|
int |
size |
|
) |
| |
|
staticprotected |
◆ avc_parse_nal_units_buf()
int CBitstreamConverter::avc_parse_nal_units_buf |
( |
const uint8_t * |
buf_in, |
|
|
uint8_t ** |
buf, |
|
|
int * |
size |
|
) |
| |
|
staticprotected |
◆ BitstreamAllocAndCopy()
void CBitstreamConverter::BitstreamAllocAndCopy |
( |
uint8_t ** |
poutbuf, |
|
|
int * |
poutbuf_size, |
|
|
const uint8_t * |
sps_pps, |
|
|
uint32_t |
sps_pps_size, |
|
|
const uint8_t * |
in, |
|
|
uint32_t |
in_size |
|
) |
| |
|
staticprotected |
◆ BitstreamConvert()
bool CBitstreamConverter::BitstreamConvert |
( |
uint8_t * |
pData, |
|
|
int |
iSize, |
|
|
uint8_t ** |
poutbuf, |
|
|
int * |
poutbuf_size |
|
) |
| |
|
protected |
◆ BitstreamConvertInitAVC()
bool CBitstreamConverter::BitstreamConvertInitAVC |
( |
void * |
in_extradata, |
|
|
int |
in_extrasize |
|
) |
| |
|
protected |
◆ BitstreamConvertInitHEVC()
bool CBitstreamConverter::BitstreamConvertInitHEVC |
( |
void * |
in_extradata, |
|
|
int |
in_extrasize |
|
) |
| |
|
protected |
◆ CanStartDecode()
bool CBitstreamConverter::CanStartDecode |
( |
| ) |
const |
◆ Close()
void CBitstreamConverter::Close |
( |
void |
| ) |
|
◆ Convert()
bool CBitstreamConverter::Convert |
( |
uint8_t * |
pData, |
|
|
int |
iSize |
|
) |
| |
◆ GetConvertBuffer()
uint8_t * CBitstreamConverter::GetConvertBuffer |
( |
void |
| ) |
const |
◆ GetConvertSize()
int CBitstreamConverter::GetConvertSize |
( |
| ) |
const |
◆ GetExtraData()
uint8_t * CBitstreamConverter::GetExtraData |
( |
void |
| ) |
const |
◆ GetExtraSize()
int CBitstreamConverter::GetExtraSize |
( |
| ) |
const |
◆ IsIDR()
bool CBitstreamConverter::IsIDR |
( |
uint8_t |
unit_type | ) |
|
|
protected |
◆ isom_write_avcc()
int CBitstreamConverter::isom_write_avcc |
( |
AVIOContext * |
pb, |
|
|
const uint8_t * |
data, |
|
|
int |
len |
|
) |
| |
|
protected |
◆ IsSlice()
bool CBitstreamConverter::IsSlice |
( |
uint8_t |
unit_type | ) |
|
|
protected |
◆ mpeg2_sequence_header()
bool CBitstreamConverter::mpeg2_sequence_header |
( |
const uint8_t * |
data, |
|
|
const uint32_t |
size, |
|
|
mpeg2_sequence * |
sequence |
|
) |
| |
|
static |
◆ NeedConvert()
bool CBitstreamConverter::NeedConvert |
( |
void |
| ) |
const |
|
inline |
◆ Open()
bool CBitstreamConverter::Open |
( |
enum AVCodecID |
codec, |
|
|
uint8_t * |
in_extradata, |
|
|
int |
in_extrasize, |
|
|
bool |
to_annexb |
|
) |
| |
- Todo:
- from Amlogic It seems the extradata is encoded as hvcC format. Temporarily, we support configurationVersion==0 until 14496-15 3rd is finalized. When finalized, configurationVersion will be 1 and we can recognize hvcC by checking if extradata[0]==1 or not.
- Todo:
- convert annexb to bitstream format
◆ ResetStartDecode()
void CBitstreamConverter::ResetStartDecode |
( |
void |
| ) |
|
◆ m_codec
AVCodecID CBitstreamConverter::m_codec |
|
protected |
◆ m_convert_3byteTo4byteNALSize
bool CBitstreamConverter::m_convert_3byteTo4byteNALSize |
|
protected |
◆ m_convert_bitstream
bool CBitstreamConverter::m_convert_bitstream |
|
protected |
◆ m_convert_bytestream
bool CBitstreamConverter::m_convert_bytestream |
|
protected |
◆ m_convertBuffer
uint8_t* CBitstreamConverter::m_convertBuffer |
|
protected |
◆ m_convertSize
int CBitstreamConverter::m_convertSize |
|
protected |
◆ m_extradata
uint8_t* CBitstreamConverter::m_extradata |
|
protected |
◆ m_extrasize
int CBitstreamConverter::m_extrasize |
|
protected |
◆ m_inputBuffer
uint8_t* CBitstreamConverter::m_inputBuffer |
|
protected |
◆ m_inputSize
int CBitstreamConverter::m_inputSize |
|
protected |
◆ m_sps_pps_context
◆ m_sps_pps_size
uint32_t CBitstreamConverter::m_sps_pps_size |
|
protected |
◆ m_start_decode
bool CBitstreamConverter::m_start_decode |
|
protected |
◆ m_to_annexb
bool CBitstreamConverter::m_to_annexb |
|
protected |
The documentation for this class was generated from the following files: