|
Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
Base interface for codec-specific closed caption bitstream parsers. More...
#include <ICCBitstreamParser.h>
Public Member Functions | |
| virtual | ~ICCBitstreamParser ()=default |
| virtual CCPictureType | ParsePacket (DemuxPacket *pPacket, std::vector< CCaptionBlock > &tempBuffer, std::vector< CCaptionBlock > &reorderBuffer)=0 |
| Parse a video packet and extract closed caption data. | |
| virtual const char * | GetName () const =0 |
| Get parser name for debugging/logging. | |
Base interface for codec-specific closed caption bitstream parsers.
Implementations extract CEA-608/708 closed caption data from video packets. Each codec (MPEG2, H.264 AVCC, H.264 Annex B) has its own parsing logic.
|
virtualdefault |
|
pure virtual |
Get parser name for debugging/logging.
Implemented in CH264AnnexBBitstreamParser, CH264AVCCBitstreamParser, and CMPEG2CCBitstreamParser.
|
pure virtual |
Parse a video packet and extract closed caption data.
| pPacket | Video packet to parse (contains raw bitstream data) |
| tempBuffer | Temporary buffer for CC data (used for reordering) |
| reorderBuffer | Reorder buffer for CC data (sorted by PTS) |
Implementations search for SEI (H.264) or user data (MPEG2) NAL units containing GA94 closed caption payloads.
Implemented in CH264AnnexBBitstreamParser, CH264AVCCBitstreamParser, and CMPEG2CCBitstreamParser.