Go to the documentation of this file.
24 #define LUT_SIZE (1 << LUT_BITS)
25 #define RSIZE_BITS (CHAR_BIT*sizeof(residual))
27 #define CONVERT_TO_RESIDUE(a, b) \
28 (((residual)(a)) << (RSIZE_BITS - (b)))
30 #define INIT_RESIDUE(N) \
32 av_unused int32_t N ## _bits = 0
34 #define SET_RESIDUE(N, I, B) \
35 N = CONVERT_TO_RESIDUE(I, B); \
38 #define APPEND_RESIDUE(N, M) \
39 N |= M >> (N ## _bits); \
40 N ## _bits = (N ## _bits + (M ## _bits)) & 0x3F
43 int bytes,
uint8_t *_dst,
int coeffs)
50 for (
b = 1;
b <= bytes;
b++) {
56 if ((c_idx + 1) > coeffs)
60 if (res_bits && l->
sign) {
63 for (
i = 0;
i < (res_bits >> 1) - 1;
i++) {
76 l =
future[l->
need_s ? 3 : !res_bits ? 2 : res_bits & 1];
83 int bytes,
uint8_t *_dst,
int coeffs)
86 int16_t *dst = (int16_t *)_dst;
90 for (
b = 1;
b <= bytes;
b++) {
96 if ((c_idx + 1) > coeffs)
99 if (res_bits && l->
sign) {
102 for (
i = 0;
i < (res_bits >> 1) - 1;
i++) {
116 l =
future[l->
need_s ? 3 : !res_bits ? 2 : res_bits & 1];
126 int bits_start, bits_tot =
bits, need_sign = 0;
128 #define READ_BIT(N) (((N) >> (N ## _count--)) & 1)
171 for (idx = 0; idx <
LUT_SIZE; idx++) {
173 int symbol_end_loc = -1;
183 symbol_end_loc =
i + 2;
188 if (symbol_end_loc < 0 || symbol_end_loc >
LUT_BITS) {
213 for (idx = 0; idx <
LUT_SIZE; idx++) {
int ff_dirac_golomb_read_32bit(DiracGolombLUT *lut_ctx, const uint8_t *buf, int bytes, uint8_t *_dst, int coeffs)
static void generate_parity_lut(DiracGolombLUT *lut, int even)
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
#define SET_RESIDUE(N, I, B)
av_cold int ff_dirac_golomb_reader_init(DiracGolombLUT **lut_ctx)
static void search_for_golomb(DiracGolombLUT *l, residual r, int bits)
FFmpeg s bug feature request tracker new issues and changes to existing issues can be done through a web interface Issues can be different kinds of things we want to keep track of but that do not belong into the source tree itself This includes bug feature requests and license violations We might add more items to this list in the future
static void generate_offset_lut(DiracGolombLUT *lut, int off)
av_cold void ff_dirac_golomb_reader_end(DiracGolombLUT **lut_ctx)
#define CONVERT_TO_RESIDUE(a, b)
#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
void * av_calloc(size_t nmemb, size_t size)
Non-inlined equivalent of av_mallocz_array().
#define APPEND_RESIDUE(N, M)
static const double coeff[2][5]
int(* cond)(enum AVPixelFormat pix_fmt)
int ff_dirac_golomb_read_16bit(DiracGolombLUT *lut_ctx, const uint8_t *buf, int bytes, uint8_t *_dst, int coeffs)