Lines Matching defs:avctx
39 static int encode_frame(AVCodecContext *avctx, AVPacket *pkt,
42 CLJRContext *a = avctx->priv_data;
45 uint32_t dither= avctx->frame_number;
52 if (avctx->width%4 && avctx->strict_std_compliance > FF_COMPLIANCE_UNOFFICIAL) {
53 av_log(avctx, AV_LOG_ERROR,
55 "use vstrict=-1 / -strict -1 to use %d anyway.\n", avctx->width);
59 ret = ff_get_encode_buffer(avctx, pkt, 4 * avctx->height * ((avctx->width + 3) / 4), 0);
65 for (y = 0; y < avctx->height; y++) {
70 for (x = 0; x < avctx->width; x += 4) {
76 if (x+3 >= avctx->width) {
78 memcpy(luma_tmp, luma, avctx->width - x);