Lines Matching defs:avctx
28 static int qoi_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
31 const int channels = 3 + (avctx->pix_fmt == AV_PIX_FMT_RGBA);
39 packet_size = avctx->width * avctx->height * (channels + 1LL) + 14LL + 8LL;
40 if ((ret = ff_alloc_packet(avctx, pkt, packet_size)) < 0)
47 bytestream_put_be32(&buf, avctx->width);
48 bytestream_put_be32(&buf, avctx->height);
50 bytestream_put_byte(&buf, avctx->color_trc == AVCOL_TRC_LINEAR);
52 for (int y = 0; y < avctx->height; y++) {
53 for (int x = 0; x < avctx->width; x++) {