Home
last modified time | relevance | path

Searched refs:RangeCoder (Results 1 – 16 of 16) sorted by relevance

/third_party/ffmpeg/libavcodec/
Drangecoder.h35 typedef struct RangeCoder { struct
47 } RangeCoder; argument
49 void ff_init_range_encoder(RangeCoder *c, uint8_t *buf, int buf_size);
50 void ff_init_range_decoder(RangeCoder *c, const uint8_t *buf, int buf_size);
58 int ff_rac_terminate(RangeCoder *c, int version);
60 void ff_build_rac_states(RangeCoder *c, int factor, int max_p);
62 static inline void renorm_encoder(RangeCoder *c) in renorm_encoder()
87 static inline int get_rac_count(RangeCoder *c) in get_rac_count()
95 static inline void put_rac(RangeCoder *c, uint8_t *const state, int bit) in put_rac()
114 static inline void refill(RangeCoder *c) in refill()
[all …]
Drangecoder.c42 av_cold void ff_init_range_encoder(RangeCoder *c, uint8_t *buf, int buf_size) in ff_init_range_encoder()
53 av_cold void ff_init_range_decoder(RangeCoder *c, const uint8_t *buf, in ff_init_range_decoder()
68 void ff_build_rac_states(RangeCoder *c, int factor, int max_p) in ff_build_rac_states()
109 int ff_rac_terminate(RangeCoder *c, int version) in ff_rac_terminate()
Dmss3.c61 typedef struct RangeCoder { struct
66 } RangeCoder; argument
114 RangeCoder coder;
277 static void rac_init(RangeCoder *c, const uint8_t *src, int size) in rac_init()
290 static void rac_normalise(RangeCoder *c) in rac_normalise()
310 static int rac_get_bit(RangeCoder *c) in rac_get_bit()
326 static int rac_get_bits(RangeCoder *c, int nbits) in rac_get_bits()
340 static int rac_get_model2_sym(RangeCoder *c, Model2 *m) in rac_get_model2_sym()
361 static int rac_get_model_sym(RangeCoder *c, Model *m) in rac_get_model_sym()
394 static int rac_get_model256_sym(RangeCoder *c, Model256 *m) in rac_get_model256_sym()
[all …]
Dscpr.h35 typedef struct RangeCoder { struct
39 } RangeCoder; argument
52 RangeCoder rc;
76 int (*get_freq)(RangeCoder *rc, uint32_t total_freq, uint32_t *freq);
77 …int (*decode)(GetByteContext *gb, RangeCoder *rc, uint32_t cumFreq, uint32_t freq, uint3…
Dscpr.c38 static void init_rangecoder(RangeCoder *rc, GetByteContext *gb) in init_rangecoder()
102 static int decode(GetByteContext *gb, RangeCoder *rc, uint32_t cumFreq, uint32_t freq, uint32_t tot… in decode()
116 static int get_freq(RangeCoder *rc, uint32_t total_freq, uint32_t *freq) in get_freq()
131 static int decode0(GetByteContext *gb, RangeCoder *rc, uint32_t cumFreq, uint32_t freq, uint32_t to… in decode0()
153 static int get_freq0(RangeCoder *rc, uint32_t total_freq, uint32_t *freq) in get_freq0()
166 RangeCoder *rc = &s->rc; in decode_value()
210 RangeCoder *rc = &s->rc; in decode_unit()
Dffv1enc.c184 static av_always_inline av_flatten void put_symbol_inline(RangeCoder *c, in put_symbol_inline()
232 static av_noinline void put_symbol(RangeCoder *c, uint8_t *state, in put_symbol()
311 static void write_quant_table(RangeCoder *c, int16_t *quant_table) in write_quant_table()
326 static void write_quant_tables(RangeCoder *c, in write_quant_tables()
350 RangeCoder *const c = &f->slice_context[0]->c; in write_header()
395 RangeCoder *const c = &f->c; in write_extradata()
721 RangeCoder c; in encode_init()
929 RangeCoder *c = &fs->c; in encode_slice_header()
1053 RangeCoder c_bak = fs->c; in encode_slice()
1123 RangeCoder *const c = &f->slice_context[0]->c; in encode_frame()
Dffv1dec.c41 static inline av_flatten int get_symbol_inline(RangeCoder *c, uint8_t *state, in get_symbol_inline()
65 static av_noinline int get_symbol(RangeCoder *c, uint8_t *state, int is_signed) in get_symbol()
98 RangeCoder *const c = &s->c; in is_input_end()
166 RangeCoder *c = &fs->c; in decode_slice_header()
365 static int read_quant_table(RangeCoder *c, int16_t *quant_table, int scale) in read_quant_table()
392 static int read_quant_tables(RangeCoder *c, in read_quant_tables()
412 RangeCoder *const c = &f->c; in read_extra_header()
531 RangeCoder *const c = &f->slice_context[0]->c; in read_header()
837 RangeCoder *const c = &f->slice_context[0]->c; in decode_frame()
Dsnow.h117 RangeCoder c;
510 static inline void put_symbol(RangeCoder *c, uint8_t *state, int v, int is_signed){ in put_symbol()
541 static inline int get_symbol(RangeCoder *c, uint8_t *state, int is_signed){ in get_symbol()
564 static inline void put_symbol2(RangeCoder *c, uint8_t *state, int v, int log2){ in put_symbol2()
584 static inline int get_symbol2(RangeCoder *c, uint8_t *state, int log2){ in get_symbol2()
Dsonic.c92 static av_always_inline av_flatten void put_symbol(RangeCoder *c, uint8_t *state, int v, int is_sig… in put_symbol()
139 static inline av_flatten int get_symbol(RangeCoder *c, uint8_t *state, int is_signed){ in get_symbol()
163 static inline int intlist_write(RangeCoder *c, uint8_t *state, int *buf, int entries, int base_2_pa… in intlist_write()
173 static inline int intlist_read(RangeCoder *c, uint8_t *state, int *buf, int entries, int base_2_par… in intlist_read()
718 RangeCoder c; in sonic_encode_frame()
984 RangeCoder c; in sonic_decode_frame()
Dscpr3.c99 static int decode3(GetByteContext *gb, RangeCoder *rc, uint32_t a, uint32_t b) in decode3()
723 static void sync_code3(GetByteContext *gb, RangeCoder *rc) in sync_code3()
738 RangeCoder *rc = &s->rc; in decode_value3()
826 RangeCoder *rc = &s->rc; in decode_unit3()
896 RangeCoder *rc = &s->rc; in decode_units3()
923 static void init_rangecoder3(RangeCoder *rc, GetByteContext *gb) in init_rangecoder3()
933 RangeCoder *rc = &s->rc; in decompress_i3()
Dffv1.h81 RangeCoder c;
Dffv1dec_template.c28 RangeCoder *const c = &s->c; in RENAME()
Dffv1enc_template.c28 RangeCoder *const c = &s->c; in RENAME()
Dsnowenc.c234 RangeCoder pc, ic; in encode_q_branch()
1006 RangeCoder r = s->c; in iterative_me()
1571 RangeCoder * const c= &s->c; in encode_frame()
Dsnowdec.c448 RangeCoder * const c= &s->c; in decode_frame()
/third_party/ffmpeg/libavcodec/tests/
Drangecoder.c36 static int rac_check_termination(RangeCoder *c, int version) in rac_check_termination()
39 RangeCoder tmp = *c; in rac_check_termination()
57 RangeCoder c; in main()