Go to the documentation of this file.
47 const uint8_t **poutbuf,
int *poutbuf_size,
48 const uint8_t *buf,
int buf_size)
56 *poutbuf_size = buf_size;
65 ret = ff_cbs_read(p->
cbc, au,
ref, buf, buf_size);
86 if (bit_depth < 8 || bit_depth > 16 ||
bit_depth % 2)
89 s->width =
info->frame_width;
90 s->height =
info->frame_height;
108 ff_cbs_fragment_reset(au);
139 ff_cbs_fragment_free(&p->
au);
140 ff_cbs_close(&p->
cbc);
147 .parser_parse =
parse,
148 .parser_close =
close,
AVPixelFormat
Pixel format.
enum AVColorSpace colorspace
YUV colorspace type.
void * content
Pointer to the decomposed form of this unit.
enum AVColorTransferCharacteristic color_trc
Color Transfer Characteristic.
@ AVCOL_RANGE_JPEG
Full range content.
Context structure for coded bitstream operations.
CodedBitstreamUnitType type
Codec-specific type of this unit.
const AVCodecParser ff_apv_parser
static void bit_depth(AudioStatsContext *s, const uint64_t *const mask, uint8_t *depth)
Coded bitstream unit structure.
void * log_ctx
Logging context to be passed to all av_log() calls associated with this context.
static av_cold void close(AVCodecParserContext *s)
#define AV_PIX_FMT_YUVA444P16
#define AV_PIX_FMT_GRAY16
#define AV_PIX_FMT_YUV444P10
CodedBitstreamUnit * units
Pointer to an array of units of length nb_units_allocated.
@ AV_PICTURE_STRUCTURE_FRAME
coded as frame
enum AVColorPrimaries color_primaries
Chromaticity coordinates of the source primaries.
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
#define FF_ARRAY_ELEMS(a)
static const CodedBitstreamUnitType decompose_unit_types[]
#define AV_PIX_FMT_YUV422P16
Coded bitstream fragment structure, combining one or more units.
#define AV_PIX_FMT_YUV444P16
#define AV_BUFFER_FLAG_READONLY
Always treat the buffer as read-only, even when it has only one reference.
#define av_assert0(cond)
assert() equivalent, that is always enabled.
uint32_t CodedBitstreamUnitType
The codec-specific type of a bitstream unit.
#define AV_PIX_FMT_YUVA444P12
static av_cold int init(AVCodecParserContext *s)
#define AV_PIX_FMT_GRAY14
CodedBitstreamFragment au
CodedBitstreamContext * cbc
#define AV_PIX_FMT_GRAY10
enum AVColorRange color_range
MPEG vs JPEG YUV range.
void av_buffer_unref(AVBufferRef **buf)
Free a given reference and automatically free the buffer if there are no more references to it.
@ AVCHROMA_LOC_TOPLEFT
ITU-R 601, SMPTE 274M 296M S314M(DV 4:1:1), mpeg2 4:2:2.
static enum AVPixelFormat apv_format_table[5][5]
@ AV_PICTURE_TYPE_I
Intra.
#define AV_PIX_FMT_YUV422P10
@ AV_PIX_FMT_GRAY8
Y , 8bpp.
static int parse(AVCodecParserContext *s, AVCodecContext *avctx, const uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size)
int level
Encoding level descriptor.
AVBufferRef * av_buffer_create(uint8_t *data, size_t size, void(*free)(void *opaque, uint8_t *data), void *opaque, int flags)
Create an AVBuffer from an existing array.
static void dummy_free(void *opaque, uint8_t *data)
#define AV_PIX_FMT_YUV422P12
#define AV_PIX_FMT_YUV444P12
static const uint8_t header[24]
@ AV_PIX_FMT_YUVA444P
planar YUV 4:4:4 32bpp, (1 Cr & Cb sample per 1x1 Y & A samples)
#define AV_PIX_FMT_YUVA444P10
int av_buffer_get_ref_count(const AVBufferRef *buf)
#define i(width, name, range_min, range_max)
#define av_assert1(cond)
assert() equivalent, that does not lie in speed critical code.
enum AVChromaLocation chroma_sample_location
This defines the location of chroma samples.
@ AVCOL_RANGE_MPEG
Narrow or limited range content.
these buffered frames must be flushed immediately if a new input produces new the filter must not call request_frame to get more It must just process the frame or queue it The task of requesting more frames is left to the filter s request_frame method or the application If a filter has several the filter must be ready for frames arriving randomly on any input any filter with several inputs will most likely require some kind of queuing mechanism It is perfectly acceptable to have a limited queue and to drop frames when the inputs are too unbalanced request_frame For filters that do not use the this method is called when a frame is wanted on an output For a it should directly call filter_frame on the corresponding output For a if there are queued frames already one of these frames should be pushed If the filter should request a frame on one of its repeatedly until at least one frame has been pushed Return or at least make progress towards producing a frame
main external API structure.
static int ref[MAX_W *MAX_W]
@ AV_PIX_FMT_YUV444P
planar YUV 4:4:4, 24bpp, (1 Cr & Cb sample per 1x1 Y samples)
@ AV_PIX_FMT_YUV422P
planar YUV 4:2:2, 16bpp, (1 Cr & Cb sample per 2x1 Y samples)
A reference to a data buffer.
int nb_decompose_unit_types
Length of the decompose_unit_types array.
const CodedBitstreamUnitType * decompose_unit_types
Array of unit types which should be decomposed when reading.
#define AV_PIX_FMT_GRAY12
int nb_units
Number of units in this fragment.