Lines Matching defs:avctx
64 static av_cold int decode_init(AVCodecContext *avctx)
66 avctx->pix_fmt = AV_PIX_FMT_YUVA444P12;
67 avctx->color_range = AVCOL_RANGE_JPEG;
68 avctx->colorspace = AVCOL_SPC_RGB;
69 avctx->color_primaries = AVCOL_PRI_BT709;
70 avctx->color_trc = AVCOL_TRC_IEC61966_2_1;
77 static int lz4_decompress(AVCodecContext *avctx,
150 static int decode_blocks(AVCodecContext *avctx, AVFrame *p,
153 NotchLCContext *s = avctx->priv_data;
163 ret = ff_set_dimensions(avctx, s->texture_size_x, s->texture_size_y);
225 if ((ret = ff_thread_get_buffer(avctx, p, 0)) < 0)
233 if (bytestream2_get_bytes_left(gb) < (avctx->height + 3) / 4 * ((avctx->width + 3) / 4) * 4)
241 for (int y = 0; y < avctx->height; y += 4) {
247 for (int x = 0; x < avctx->width; x += 4) {
278 for (int y = 0; y < avctx->height; y++) {
279 for (int x = 0; x < avctx->width; x++)
284 if (bytestream2_get_bytes_left(gb) < (avctx->height + 15) / 16 * ((avctx->width + 15) / 16) * 8)
287 for (int y = 0; y < avctx->height; y += 16) {
288 for (int x = 0; x < avctx->width; x += 16) {
351 for (int y = 0; y < avctx->height; y += 16) {
352 for (int x = 0; x < avctx->width; x += 16) {
463 static int decode_frame(AVCodecContext *avctx, AVFrame *p,
466 NotchLCContext *s = avctx->priv_data;
507 ret = lz4_decompress(avctx, gb, pb);
514 ret = decode_blocks(avctx, p, uncompressed_size);
526 static av_cold int decode_end(AVCodecContext *avctx)
528 NotchLCContext *s = avctx->priv_data;