Lines Matching refs:size
47 size_t size;
282 size_t size;
290 init_put_bits(&pb2, ctx->buf, ctx->size);
349 * the needed packet size: For every 15 input bits, an escape bit might be
354 * bits to avoid special-casing. This also simplifies the size calculation:
363 size = size_in_bits * 2U / 15;
364 size += 2 + 2 + 2 + 1 + 2 + 2 + 1 + comps * (1 + 1 + 1) + 2 + 2 + 1
366 size += 2 + 2 + 1 + 2 + 2 + 2 + 2 + 2; /* LSE */
367 size += 2; /* EOI */
368 if ((ret = ff_get_encode_buffer(avctx, pkt, size, 0)) < 0)
371 bytestream2_init_writer(&pb, pkt->data, pkt->size);
376 bytestream2_put_be16u(&pb, 8 + comps * 3); // header size depends on components
426 size_t size;
437 size = AV_INPUT_BUFFER_MIN_SIZE;
439 if (avctx->width * (unsigned)avctx->height > (INT_MAX - size) / 4 / ctx->comps)
441 size += 4 * ctx->comps * avctx->width * avctx->height;
442 ctx->size = size;
443 ctx->buf = av_malloc(size + AV_INPUT_BUFFER_PADDING_SIZE);