FFmpeg
|
#include <stddef.h>
#include <stdint.h>
#include "libavutil/mem.h"
#include "atsc_a53.h"
#include "get_bits.h"
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... | |
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.
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 26 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(), vk_enc_h264_update_pic_info(), vk_enc_h265_update_pic_info(), 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 69 of file atsc_a53.c.
Referenced by decode_registered_user_data_closed_caption(), export_itut_t35(), and libdav1d_receive_frame().