Lines Matching refs:codebook
32 * using a separate codebook pair for each area and approximating
59 #define CODEBOOK_MAX 256 // size of a codebook
89 int v1_vector; // index into v1 codebook
91 int v4_vector[4]; // indices into v4 codebook
136 { "max_extra_cb_iterations", "Max extra codebook recalculation passes, more is better and slower",
326 // but not to any codebook encoding!
383 static int encode_codebook(CinepakEncContext *s, int *codebook, int size,
398 // we do codebook encoding according to the "intra" mode
400 // to use incremental codebook updates (which actually would give us
414 buf[ret++] = codebook[y + x * entry_size] ^ (y >= 4 ? 0x80 : 0);
425 buf[ret++] = codebook[y + x * entry_size] ^ (y >= 4 ? 0x80 : 0);
541 ////// the codebook chunk even when the codebook is empty - pretty dumb...
542 ////// and also the certain order of the codebook chunks -- rl
697 // return the possibly adjusted size of the codebook
705 int *codebook = v1mode ? info->v1_codebook : info->v4_codebook;
764 ret = avpriv_elbg_do(&s->elbg, s->codebook_input, entry_size, i, codebook,
809 av_assert0(i >= size); // training set is no smaller than the codebook
840 // otherwise? how to choose which part of a codebook to update?),
869 // for codebook optimization:
879 // constraint the v4 codebook to be no bigger than v1 one,
905 // if v4 codebook is empty then only allow V1-only mode
945 // (do not move blocks to codebook encodings now, as some blocks may have