23 #ifndef AVCODEC_FFV1_H 24 #define AVCODEC_FFV1_H 34 #define CONTEXT_SIZE 32 36 #define MAX_QUANT_TABLES 8 37 #define MAX_CONTEXT_INPUTS 5 39 #define AC_GOLOMB_RICE 0 40 #define AC_RANGE_DEFAULT_TAB 1 41 #define AC_RANGE_CUSTOM_TAB 2 67 #define MAX_SLICES 256 75 uint64_t rc_stat[256][2];
129 diff += 1 << (bits - 1);
130 diff &= (1 <<
bits) - 1;
131 diff -= 1 << (bits - 1);
139 const int LT = last[-1];
140 const int T = last[0];
141 const int L = src[-1];
147 int16_t *last, int16_t *last2)
149 const int LT = last[-1];
150 const int T = last[0];
151 const int RT = last[1];
152 const int L = src[-1];
155 const int TT = last2[0];
156 const int LL = src[-2];
182 if (drift <= -count) {
183 if (state->
bias > -128)
189 }
else if (drift > 0) {
190 if (state->
bias < 127)
static av_always_inline int fold(int diff, int bits)
This structure describes decoded (raw) audio or video data.
int ffv1_close(AVCodecContext *avctx)
int16_t quant_table[MAX_CONTEXT_INPUTS][256]
#define MAX_CONTEXT_INPUTS
const int8_t ffv1_quant11[256]
bitstream reader API header.
static int predict(int16_t *src, int16_t *last)
const uint8_t ff_log2_run[41]
const int8_t ffv1_quant5_10bit[256]
static float quant_table[96]
static int get_context(PlaneContext *p, int16_t *src, int16_t *last, int16_t *last2)
static void update_vlc_state(VlcState *const state, const int v)
Libavcodec external API header.
void ffv1_clear_slice_state(FFV1Context *f, FFV1Context *fs)
main external API structure.
int ffv1_common_init(AVCodecContext *avctx)
int ffv1_init_slice_state(FFV1Context *f, FFV1Context *fs)
Describe the class of an AVClass context structure.
int ffv1_init_slice_contexts(FFV1Context *f)
const uint8_t ffv1_ver2_state[256]
const int8_t ffv1_quant5[256]
const int8_t ffv1_quant9_10bit[256]
int ffv1_allocate_initial_states(FFV1Context *f)
struct FFV1Context * slice_context[MAX_SLICES]