Lines Matching refs:ctx
274 JPEGLSContext *ctx = avctx->priv_data;
290 init_put_bits(&pb2, ctx->buf, ctx->size);
292 comps = ctx->comps;
294 state.near = ctx->pred;
394 bytestream2_put_byteu(&pb, ctx->pred);
425 JPEGLSContext *ctx = avctx->priv_data;
434 ctx->comps = 1;
436 ctx->comps = 3;
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);
444 if (!ctx->buf)
452 JPEGLSContext *ctx = avctx->priv_data;
454 av_freep(&ctx->buf);