Go to the documentation of this file.
32 for (
i = 0;
i < 2;
i++) {
51 for (last = 0; last < 2; last++) {
60 memset(max_level, 0,
MAX_RUN + 1);
62 memset(index_run, rl->
n,
MAX_RUN + 1);
66 if (index_run[
run] == rl->
n)
109 VLC vlc = { .
table =
table, .table_allocated = static_size };
113 for (q = 0; q < 32; q++) {
115 int qadd = (q - 1) | 1;
129 }
else if (
len < 0) {
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
uint8_t * index_run[2]
encoding only
static av_cold int end(AVCodecContext *avctx)
void ff_rl_free(RLTable *rl)
Free the contents of a dynamically allocated table.
#define init_vlc(vlc, nb_bits, nb_codes, bits, bits_wrap, bits_size, codes, codes_wrap, codes_size, flags)
static const uint16_t table[]
av_cold void ff_rl_init_vlc(RLTable *rl, unsigned static_size)
int n
number of entries of table_vlc minus 1
int8_t * max_level[2]
encoding & decoding
#define av_assert0(cond)
assert() equivalent, that is always enabled.
const uint16_t(* table_vlc)[2]
#define INIT_VLC_USE_NEW_STATIC
const int8_t * table_level
#define i(width, name, range_min, range_max)
and forward the test the status of outputs and forward it to the corresponding return FFERROR_NOT_READY If the filters stores internally one or a few frame for some it can consider them to be part of the FIFO and delay acknowledging a status change accordingly Example code
int8_t * max_run[2]
encoding & decoding
#define FF_ARRAY_ELEMS(a)
av_cold int ff_rl_init(RLTable *rl, uint8_t static_store[2][2 *MAX_RUN+MAX_LEVEL+3])
int last
number of values for last = 0
VLC_TYPE(* table)[2]
code, bits
RL_VLC_ELEM * rl_vlc[32]
decoding only