Lines Matching defs:avctx
44 static int vbn_encode(AVCodecContext *avctx, AVPacket *pkt,
47 VBNContext *ctx = avctx->priv_data;
53 ret = av_image_check_size2(frame->width, frame->height, INT_MAX, frame->format, 0, avctx);
59 av_log(avctx, AV_LOG_ERROR, "Video size %dx%d is not multiple of 4\n", frame->width, frame->height);
63 av_log(avctx, AV_LOG_ERROR, "DXT formats only support RGBA pixel format\n");
67 ctx->enc.slice_count = av_clip(avctx->thread_count, 1, avctx->height / TEXTURE_BLOCK_H);
87 av_log(avctx, AV_LOG_ERROR, "Invalid format %02X\n", ctx->format);
95 if ((ret = ff_get_encode_buffer(avctx, pkt, pkt_size, 0)) < 0)
117 avctx->execute2(avctx, ff_texturedsp_compress_thread, &ctx->enc, NULL, ctx->enc.slice_count);
127 static av_cold int vbn_init(AVCodecContext *avctx)
129 VBNContext *ctx = avctx->priv_data;