#include <BitstreamConverter.h>
 | 
| static int  | avc_parse_nal_units (AVIOContext *pb, const uint8_t *buf_in, int size) | 
|   | 
| static int  | avc_parse_nal_units_buf (const uint8_t *buf_in, uint8_t **buf, int *size) | 
|   | 
| static void  | 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, uint8_t nal_type) | 
|   | 
◆ omx_bitstream_ctx
  
  
      
        
          | struct CBitstreamConverter::omx_bitstream_ctx  CBitstreamConverter::omx_bitstream_ctx | 
         
       
   | 
  
protected   | 
  
 
 
◆ 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,  | 
         
        
           | 
           | 
          uint8_t |           nal_type ) | 
         
       
   | 
  
staticprotected   | 
  
 
 
◆ BitstreamConvert()
◆ 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()
◆ GetConvertBuffer()
      
        
          | uint8_t * CBitstreamConverter::GetConvertBuffer  | 
          ( | 
          void |            | ) | 
           const | 
        
      
 
 
◆ GetConvertSize()
      
        
          | int CBitstreamConverter::GetConvertSize  | 
          ( | 
           | ) | 
           const | 
        
      
 
 
◆ GetExtraData() [1/2]
      
        
          | uint8_t * CBitstreamConverter::GetExtraData  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ GetExtraData() [2/2]
      
        
          | const uint8_t * CBitstreamConverter::GetExtraData  | 
          ( | 
           | ) | 
           const | 
        
      
 
 
◆ GetExtraSize()
      
        
          | int CBitstreamConverter::GetExtraSize  | 
          ( | 
           | ) | 
           const | 
        
      
 
 
◆ IsIDR()
◆ isom_write_avcc()
  
  
      
        
          | int CBitstreamConverter::isom_write_avcc  | 
          ( | 
          AVIOContext * |           pb,  | 
         
        
           | 
           | 
          const uint8_t * |           data,  | 
         
        
           | 
           | 
          int |           len ) | 
         
       
   | 
  
protected   | 
  
 
 
◆ IsSlice()
◆ mpeg2_sequence_header()
◆ NeedConvert()
  
  
      
        
          | bool CBitstreamConverter::NeedConvert  | 
          ( | 
          void |            | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ Open()
      
        
          | bool CBitstreamConverter::Open  | 
          ( | 
          enum AVCodecID |           codec,  | 
        
        
           | 
           | 
          uint8_t * |           in_extradata,  | 
        
        
           | 
           | 
          int |           in_extrasize,  | 
        
        
           | 
           | 
          bool |           to_annexb ) | 
        
      
 
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 |            | ) | 
           | 
        
      
 
 
◆ SetConvertDovi()
  
  
      
        
          | void CBitstreamConverter::SetConvertDovi  | 
          ( | 
          bool |           value | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ SetRemoveDovi()
  
  
      
        
          | void CBitstreamConverter::SetRemoveDovi  | 
          ( | 
          bool |           value | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ SetRemoveHdr10Plus()
  
  
      
        
          | void CBitstreamConverter::SetRemoveHdr10Plus  | 
          ( | 
          bool |           value | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ 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_convert_dovi
  
  
      
        
          | bool CBitstreamConverter::m_convert_dovi | 
         
       
   | 
  
protected   | 
  
 
 
◆ m_convertBuffer
  
  
      
        
          | uint8_t* CBitstreamConverter::m_convertBuffer | 
         
       
   | 
  
protected   | 
  
 
 
◆ m_convertSize
  
  
      
        
          | int CBitstreamConverter::m_convertSize | 
         
       
   | 
  
protected   | 
  
 
 
◆ m_extraData
◆ m_inputBuffer
  
  
      
        
          | uint8_t* CBitstreamConverter::m_inputBuffer | 
         
       
   | 
  
protected   | 
  
 
 
◆ m_inputSize
  
  
      
        
          | int CBitstreamConverter::m_inputSize | 
         
       
   | 
  
protected   | 
  
 
 
◆ m_removeDovi
  
  
      
        
          | bool CBitstreamConverter::m_removeDovi | 
         
       
   | 
  
protected   | 
  
 
 
◆ m_removeHdr10Plus
  
  
      
        
          | bool CBitstreamConverter::m_removeHdr10Plus | 
         
       
   | 
  
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: