|
Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
H.264 AVCC format closed caption parser. More...
#include <H264AVCCBitstreamParser.h>
Public Member Functions | |
| CH264AVCCBitstreamParser ()=default | |
| ~CH264AVCCBitstreamParser () override=default | |
| CCPictureType | ParsePacket (DemuxPacket *pPacket, std::vector< CCaptionBlock > &tempBuffer, std::vector< CCaptionBlock > &reorderBuffer) override |
| Parse AVCC packet for closed caption data. | |
| const char * | GetName () const override |
| Get parser name for debugging/logging. | |
Public Member Functions inherited from ICCBitstreamParser | |
| virtual | ~ICCBitstreamParser ()=default |
Additional Inherited Members | |
Protected Member Functions inherited from CH264CCBitstreamParser | |
| void | ProcessSEIPayload (std::span< const uint8_t > buf, double pts, std::vector< CCaptionBlock > &tempBuffer) |
| Process SEI payload containing closed caption data. | |
| CCPictureType | DetectSliceType (std::span< const uint8_t > buf) |
| Detect slice type from H.264 slice header. | |
H.264 AVCC format closed caption parser.
Parses H.264 streams in AVCC (AVC1) format used by MP4/MKV containers. AVCC uses length-prefixed NAL units:
Extracts CC data from SEI NAL units (type 6) with payload type 4.
|
default |
|
overridedefault |
|
inlineoverridevirtual |
Get parser name for debugging/logging.
Implements ICCBitstreamParser.
|
overridevirtual |
Parse AVCC packet for closed caption data.
Iterates through length-prefixed NAL units, extracting CC data from SEI payloads and detecting picture type from slice headers.
| pPacket | H.264 video packet in AVCC format |
| tempBuffer | Temporary buffer for CC data from reference frames |
| reorderBuffer | Reorder buffer for CC data |
Implements ICCBitstreamParser.