FFmpeg
|
Go to the source code of this file.
Functions | |
int | ff_alloc_a53_sei (const AVFrame *frame, size_t prefix_len, void **data, size_t *sei_size) |
Check AVFrame for A53 side data and allocate and fill SEI message with A53 info. More... | |
int | ff_parse_a53_cc (AVBufferRef **pbuf, const uint8_t *data, int size) |
Parse a data array for ATSC A53 Part 4 Closed Captions and store them in an AVBufferRef. More... | |
Check AVFrame for A53 side data and allocate and fill SEI message with A53 info.
frame | Raw frame to get A53 side data from |
prefix_len | Number of bytes to allocate before SEI message |
data | Pointer to a variable to store allocated memory Upon return the variable will hold NULL on error or if frame has no A53 info. Otherwise it will point to prefix_len uninitialized bytes followed by *sei_size SEI message |
sei_size | Pointer to a variable to store generated SEI message length |
'GA94' is standard in North America for ATSC, but hard coding this style may not be the right thing to do – other formats do exist. This information is not available in the side_data so we are going with this right now.
Definition at line 25 of file atsc_a53.c.
Referenced by libx265_encode_frame(), prepare_sei_data_array(), qsv_h264_set_encode_ctrl(), setup_frame(), vaapi_encode_h264_init_picture_params(), vaapi_encode_h265_init_picture_params(), and vtenc_send_frame().
int ff_parse_a53_cc | ( | AVBufferRef ** | pbuf, |
const uint8_t * | data, | ||
int | size | ||
) |
Parse a data array for ATSC A53 Part 4 Closed Captions and store them in an AVBufferRef.
pbuf | Pointer to an AVBufferRef to append the closed captions. *pbuf may be NULL, in which case a new buffer will be allocated and put in it. |
data | The data array containing the raw A53 data. |
size | Size of the data array in bytes. |
Definition at line 68 of file atsc_a53.c.
Referenced by decode_registered_user_data_closed_caption(), export_itut_t35(), and libdav1d_receive_frame().