Home
last modified time | relevance | path

Searched refs:codebook (Results 1 – 25 of 28) sorted by relevance

12

/third_party/ffmpeg/libavfilter/
Dvf_elbg.c44 int *codebook; member
130 elbg->codebook = av_realloc_f(elbg->codebook, elbg->codebook_length, in config_input()
131 NB_COMPONENTS * sizeof(*elbg->codebook)); in config_input()
132 if (!elbg->codebook) in config_input()
170 elbg->codebook, elbg->codebook_length, elbg->max_steps_nb, in filter_frame()
173 elbg->codebook, elbg->codebook_length, elbg->max_steps_nb, in filter_frame()
192 (elbg->codebook[i*3 ] << 16) | in filter_frame()
193 (elbg->codebook[i*3+1] << 8) | in filter_frame()
194 elbg->codebook[i*3+2]; in filter_frame()
217 p[r_idx] = elbg->codebook[cb_idx]; in filter_frame()
[all …]
/third_party/ffmpeg/libavcodec/
Delbg.c51 int *codebook; member
98 …diff = distance_limited(elbg->codebook + i*elbg->dim, elbg->codebook + index*elbg->dim, elbg->dim,… in get_closest_codebook()
337 int avpriv_init_elbg(int *points, int dim, int numpoints, int *codebook, in avpriv_init_elbg() argument
354 ret = avpriv_init_elbg(temp_points, dim, numpoints / 8, codebook, in avpriv_init_elbg()
360 ret = avpriv_do_elbg(temp_points, dim, numpoints / 8, codebook, in avpriv_init_elbg()
366 memcpy(codebook + i*dim, points + ((i*BIG_PRIME)%numpoints)*dim, in avpriv_init_elbg()
371 int avpriv_do_elbg(int *points, int dim, int numpoints, int *codebook, in avpriv_do_elbg() argument
388 elbg->codebook = codebook; in avpriv_do_elbg()
416 …best_dist = distance_limited(elbg->points + i*elbg->dim, elbg->codebook + best_idx*elbg->dim, dim,… in avpriv_do_elbg()
418 … dist = distance_limited(elbg->points + i*elbg->dim, elbg->codebook + k*elbg->dim, dim, best_dist); in avpriv_do_elbg()
[all …]
Dvqavideo.c107 unsigned char *codebook; /* the current codebook */ member
172 s->codebook = av_malloc(s->codebook_size); in vqa_decode_init()
173 if (!s->codebook) in vqa_decode_init()
191 s->codebook[codebook_index++] = i; in vqa_decode_init()
196 s->codebook[codebook_index++] = i; in vqa_decode_init()
202 av_freep(&s->codebook); in vqa_decode_init()
445 if ((res = decode_format80(s, chunk_size, s->codebook, in vqa_decode_chunk()
462 bytestream2_get_buffer(&s->gb, s->codebook, chunk_size); in vqa_decode_chunk()
526 frame->data[0][pixel_ptr + 0] = s->codebook[vector_index++]; in vqa_decode_chunk()
527 frame->data[0][pixel_ptr + 1] = s->codebook[vector_index++]; in vqa_decode_chunk()
[all …]
Dvorbisdec.c1111 vorbis_codebook codebook; in vorbis_floor0_decode() local
1119 codebook = vc->codebooks[vf->book_list[book_idx]]; in vorbis_floor0_decode()
1121 if (!codebook.codevectors) in vorbis_floor0_decode()
1127 ff_dlog(NULL, "floor0 dec: book dimension: %d\n", codebook.dimensions); in vorbis_floor0_decode()
1128 ff_dlog(NULL, "floor0 dec: maximum depth: %d\n", codebook.maxdepth); in vorbis_floor0_decode()
1130 vec_off = get_vlc2(&vc->gb, codebook.vlc.table, in vorbis_floor0_decode()
1131 codebook.nb_bits, codebook.maxdepth); in vorbis_floor0_decode()
1134 vec_off *= codebook.dimensions; in vorbis_floor0_decode()
1137 for (idx = 0; idx < codebook.dimensions; ++idx) in vorbis_floor0_decode()
1138 lsp[lsp_len+idx] = codebook.codevectors[vec_off+idx] + last; in vorbis_floor0_decode()
[all …]
Dmsvideo1enc.c43 int codebook[8*3]; member
139 avpriv_init_elbg(c->block, 3, 16, c->codebook, 2, 1, c->output, &c->rnd); in encode_frame()
140 avpriv_do_elbg (c->block, 3, 16, c->codebook, 2, 1, c->output, &c->rnd); in encode_frame()
144 FFSWAP(uint8_t, c->codebook[i], c->codebook[i+3]); in encode_frame()
151 int t = c->codebook[c->output[i+j*4]*3 + k] - c->block[i*3+k+j*4*3]; in encode_frame()
212 … prevptr[x*3 + i*3 + k - j*3*avctx->width] = c->codebook[c->output[i + j*4]*3 + k]; in encode_frame()
216 bytestream_put_le16(&dst, MKRGB555(c->codebook, 0)); in encode_frame()
217 bytestream_put_le16(&dst, MKRGB555(c->codebook, 3)); in encode_frame()
Dproresenc_kostya.c375 static inline void encode_vlc_codeword(PutBitContext *pb, unsigned codebook, int val) in encode_vlc_codeword() argument
381 switch_bits = (codebook & 3) + 1; in encode_vlc_codeword()
382 rice_order = codebook >> 5; /* rice code order */ in encode_vlc_codeword()
383 exp_order = (codebook >> 2) & 7; /* exp golomb code order */ in encode_vlc_codeword()
411 int codebook = 3, code, dc, prev_dc, delta, sign, new_sign; in encode_dcs() local
416 codebook = 3; in encode_dcs()
425 encode_vlc_codeword(pb, ff_prores_dc_codebook[codebook], code); in encode_dcs()
426 codebook = (code + (code & 1)) >> 1; in encode_dcs()
427 codebook = FFMIN(codebook, 3); in encode_dcs()
641 static inline int estimate_vlc(unsigned codebook, int val) in estimate_vlc() argument
[all …]
Dmlpenc.c332 if (prev_cp->codebook != cp->codebook || in compare_decoding_params()
433 cp->codebook = 0; in clear_channel_params()
990 if (cp->codebook > 0 && cp->huff_lsbs > 24) { in write_decoding_params()
994 put_bits(pb, 2, cp->codebook ); in write_decoding_params()
1020 codebook_index [ch] = cp->codebook - 1; in write_block_data()
1023 sign_shift = lsb_bits[ch] + (cp->codebook ? 2 - cp->codebook : -1); in write_block_data()
1025 if (cp->codebook > 0) in write_block_data()
1630 unsigned int channel, int codebook, in codebook_bits_offset() argument
1634 int32_t codebook_min = codebook_extremes[codebook][0]; in codebook_bits_offset()
1635 int32_t codebook_max = codebook_extremes[codebook][1]; in codebook_bits_offset()
[all …]
Delbg.h41 int avpriv_do_elbg(int *points, int dim, int numpoints, int *codebook,
53 int avpriv_init_elbg(int *points, int dim, int numpoints, int *codebook,
Dmlpdec.c228 int sign_shift = lsb_bits + (cp->codebook ? 2 - cp->codebook : -1); in calculate_sign_huff()
231 if (cp->codebook > 0) in calculate_sign_huff()
255 int codebook = cp->codebook; in read_huff_channels() local
260 if (codebook > 0) in read_huff_channels()
261 result = get_vlc2(gbp, huff_vlc[codebook-1].table, in read_huff_channels()
613 cp->codebook = 0; in read_restart_header()
830 cp->codebook = get_bits(gbp, 2); in read_channel_params()
833 if (cp->codebook > 0 && cp->huff_lsbs > 24) { in read_channel_params()
909 if (cp->codebook > 0 && cp->huff_lsbs < s->quant_step_size[ch]) { in read_decoding_params()
Dsanm.c289 uint16_t codebook[256]; member
1076 dst[0] = ctx->codebook[indices & 0xFF]; in opcode_0xf7()
1078 dst[1] = ctx->codebook[indices & 0xFF]; in opcode_0xf7()
1080 dst[pitch] = ctx->codebook[indices & 0xFF]; in opcode_0xf7()
1082 dst[pitch + 1] = ctx->codebook[indices & 0xFF]; in opcode_0xf7()
1091 bgcolor = ctx->codebook[bytestream2_get_byteu(&ctx->gb)]; in opcode_0xf7()
1092 fgcolor = ctx->codebook[bytestream2_get_byteu(&ctx->gb)]; in opcode_0xf7()
1201 ctx->codebook[bytestream2_get_byteu(&ctx->gb)], blk_size, ctx->pitch); in codec2subblock()
1285 *frm++ = ctx->codebook[bytestream2_get_byteu(&ctx->gb)]; in decode_6()
1307 *pdest++ = ctx->codebook[*rsrc++]; in decode_8()
[all …]
Dsvq1dec.c131 n3 = codebook[entries[j]] ^ 0x80808080; \
152 codebook = (const uint32_t *)cbook[level]; \
169 const uint32_t *codebook; in svq1_decode_block_intra() local
215 for (x = 0; x < width / 4; x++, codebook++) { in svq1_decode_block_intra()
236 const uint32_t *codebook; in svq1_decode_block_non_intra() local
275 for (x = 0; x < width / 4; x++, codebook++) { in svq1_decode_block_non_intra()
Dcfhd.c99 s->codebook = 0; in init_frame_defaults()
109 static inline int dequant_and_decompand(CFHDContext *s, int level, int quantisation, int codebook) in dequant_and_decompand() argument
111 if (codebook == 0 || codebook == 1) { in dequant_and_decompand()
112 return s->lut[codebook][abs(level)] * FFSIGN(level) * quantisation; in dequant_and_decompand()
587 s->codebook = data & 0xf; in cfhd_decode()
589 av_log(avctx, AV_LOG_DEBUG, "Other codebook? %i\n", s->codebook); in cfhd_decode()
806 …ffs plane %i level %i codebook %i expected %i\n", s->channel_num, s->level, s->codebook, expected); in cfhd_decode()
816 if (s->codebook == 0 && s->transform_type == 2 && s->subband_num_actual == 7) in cfhd_decode()
817 s->codebook = 1; in cfhd_decode()
818 if (!s->codebook) { in cfhd_decode()
[all …]
Dsvq1enc.c101 const int8_t *codebook_sum, *codebook; in encode_block() local
111 codebook = ff_svq1_intra_codebooks[level]; in encode_block()
125 codebook = ff_svq1_inter_codebooks[level]; in encode_block()
153 vector = codebook + stage * size * 16 + i * size; in encode_block()
168 vector = codebook + stage * size * 16 + best_vector[stage] * size; in encode_block()
Dcfhdenc.c42 static const unsigned codebook[256][2] = { variable
325 s->cb[i].bits = (codebook[mag][1] << 1) | (value > 0 ? 0 : 1); in cfhd_encode_init()
326 s->cb[i].size = codebook[mag][0] + 1; in cfhd_encode_init()
328 s->cb[i].bits = codebook[mag][1]; in cfhd_encode_init()
329 s->cb[i].size = codebook[mag][0]; in cfhd_encode_init()
Devrcdec.c289 const float *codebook = codebooks[i]; in decode_lspf() local
292 e->lspf[k++] = codebook[e->frame.lsp[i] * row_size + j]; in decode_lspf()
476 static void fcb_excitation(EVRCContext *e, const uint16_t *codebook, in fcb_excitation() argument
483 decode_8_pulses_35bits(codebook, excitation); in fcb_excitation()
485 decode_3_pulses_10bits(*codebook, excitation); in fcb_excitation()
Dmlp.h91 uint8_t codebook; ///< Which VLC codebook to use to read residuals. member
Dcinepakenc.c382 static int encode_codebook(CinepakEncContext *s, int *codebook, int size, in encode_codebook() argument
413 buf[ret++] = codebook[y + x * entry_size] ^ (y >= 4 ? 0x80 : 0); in encode_codebook()
424 buf[ret++] = codebook[y + x * entry_size] ^ (y >= 4 ? 0x80 : 0); in encode_codebook()
704 int *codebook = v1mode ? info->v1_codebook : info->v4_codebook; in quantize() local
763 …avpriv_init_elbg(s->codebook_input, entry_size, i, codebook, size, 1, s->codebook_closest, &s->ran… in quantize()
764 …avpriv_do_elbg(s->codebook_input, entry_size, i, codebook, size, 1, s->codebook_closest, &s->randc… in quantize()
Dproresdec2.c405 #define DECODE_CODEWORD(val, codebook, SKIP) \ argument
414 switch_bits = codebook & 3; \
415 rice_order = codebook >> 5; \
416 exp_order = (codebook >> 2) & 7; \
Dcfhd.h179 int codebook; member
Dproresenc_anatoliy.c200 static void encode_codeword(PutBitContext *pb, int val, int codebook) in encode_codeword() argument
205 switch_bits = codebook & 3; in encode_codeword()
206 rice_order = codebook >> 5; in encode_codeword()
207 exp_order = (codebook >> 2) & 7; in encode_codeword()
Dopus_silk.c347 const uint8_t * codebook = s->wb ? ff_silk_lsf_codebook_wb [lsf_i1] : in silk_decode_lpc() local
353 cur = codebook[i]; in silk_decode_lpc()
354 prev = i ? codebook[i - 1] : 0; in silk_decode_lpc()
355 next = i + 1 < order ? codebook[i + 1] : 256; in silk_decode_lpc()
Dcinepak.c76 static void cinepak_decode_codebook (cvid_codebook *codebook, in cinepak_decode_codebook() argument
89 p = codebook[0]; in cinepak_decode_codebook()
Droqvideoenc.c823 int *codebook = enc->tmp_codebook_buf; in generate_codebook() local
826 ret = avpriv_init_elbg(points, 6 * c_size, inputCount, codebook, in generate_codebook()
830 ret = avpriv_do_elbg(points, 6 * c_size, inputCount, codebook, in generate_codebook()
835 buf = codebook; in generate_codebook()
/third_party/openssl/doc/man3/
DEVP_aes_128_gcm.pod153 SP 800-38E. The XTS (XEX-based tweaked-codebook mode with ciphertext stealing)
/third_party/ffmpeg/
DChangelog1735 - codebook generator

12