Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
CCBitstreamParserFactory Class Reference

Factory for creating codec-specific closed caption bitstream parsers. More...

#include <CCBitstreamParserFactory.h>

Static Public Member Functions

static std::unique_ptr< ICCBitstreamParserCreateParser (AVCodecID codec, std::span< const uint8_t > extradata)
 Create appropriate parser based on codec and extradata.
 

Detailed Description

Factory for creating codec-specific closed caption bitstream parsers.

Member Function Documentation

◆ CreateParser()

std::unique_ptr< ICCBitstreamParser > CCBitstreamParserFactory::CreateParser ( AVCodecID codec,
std::span< const uint8_t > extradata )
static

Create appropriate parser based on codec and extradata.

Parameters
codecAVCodecID identifying the video codec
extradataPointer to codec extradata
extrasizeSize of extradata in bytes
Returns
Parser instance or nullptr if codec is unsupported

The documentation for this class was generated from the following files: