Go to the documentation of this file.
26 void **
data,
size_t *sei_size)
39 *sei_size = side_data->
size + 11;
43 sei_data = (uint8_t*)*
data + prefix_len;
58 sei_data[8] = ((side_data->
size/3) & 0x1f) | 0x40;
61 memcpy(sei_data + 10, side_data->
data, side_data->
size);
63 sei_data[side_data->
size+10] = 255;
72 size_t new_size, old_size = buf ? buf->
size : 0;
100 new_size = (old_size + cc_count * 3);
102 if (new_size > INT_MAX)
112 for (
int i = 0;
i < cc_count;
i++) {
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.
static int get_bits_left(GetBitContext *gb)
Filter the word “frame” indicates either a video frame or a group of audio as stored in an AVFrame structure Format for each input and each output the list of supported formats For video that means pixel format For audio that means channel sample they are references to shared objects When the negotiation mechanism computes the intersection of the formats supported at each end of a all references to both lists are replaced with a reference to the intersection And when a single format is eventually chosen for a link amongst the remaining all references to the list are updated That means that if a filter requires that its input and output have the same format amongst a supported all it has to do is use a reference to the same list of formats query_formats can leave some formats unset and return AVERROR(EAGAIN) to cause the negotiation mechanism toagain later. That can be used by filters with complex requirements to use the format negotiated on one link to set the formats supported on another. Frame references ownership and permissions
AVFrameSideData * av_frame_get_side_data(const AVFrame *frame, enum AVFrameSideDataType type)
uint8_t * data
The data buffer.
@ AV_FRAME_DATA_A53_CC
ATSC A53 Part 4 Closed Captions.
This structure describes decoded (raw) audio or video data.
static void skip_bits(GetBitContext *s, int n)
static unsigned int get_bits(GetBitContext *s, int n)
Read 1-25 bits.
static int init_get_bits8(GetBitContext *s, const uint8_t *buffer, int byte_size)
Initialize GetBitContext.
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.
size_t size
Size of data in bytes.
#define i(width, name, range_min, range_max)
void * av_mallocz(size_t size)
Allocate a memory block with alignment suitable for all memory accesses (including vectors if availab...
int av_buffer_realloc(AVBufferRef **pbuf, size_t size)
Reallocate a given buffer.
A reference to a data buffer.
Structure to hold side data for an AVFrame.
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
#define MKTAG(a, b, c, d)