Lines Matching defs:size
59 #define CODEBOOK_MAX 256 // size of a codebook
383 static int encode_codebook(CinepakEncContext *s, int *codebook, int size,
395 entry_size * size +
396 (incremental_codebook_replacement_mode ? (size + 31) / 32 * 4 : 0));
406 for (x = 0; x < size; x++) {
423 for (x = 0; x < size; x++)
697 // return the possibly adjusted size of the codebook
706 int size = v1mode ? info->v1_size : info->v4_size;
761 if (i < size)
762 size = i;
765 size, 1, s->codebook_closest, &s->randctx, 0);
809 av_assert0(i >= size); // training set is no smaller than the codebook
811 return size;
878 // try some powers of 4 for the size of the codebooks
894 // the size may shrink even before optimizations if the input is short:
1011 int num_strips, strip, i, y, nexty, size, temp_size, best_size;
1077 size = 0;
1082 strip_offsets[strip-1] = size + CVID_HEADER_SIZE;
1117 size += temp_size;
1123 best_size = size + write_cvid_header(s, s->frame_buf, num_strips, size, all_no_skip);
1179 pkt->size = ret;