Lines Matching defs:avctx
147 static int decode_frame(AVCodecContext *avctx, AVFrame *frame,
150 ProSumerContext *s = avctx->priv_data;
161 if (bytestream2_get_bytes_left_p(&s->pb) > s->size * (int64_t)avctx->discard_damaged_percentage / 100)
168 vertical_predict((uint32_t *)s->decbuffer, s->stride, (uint32_t *)s->decbuffer, s->stride, avctx->height - 1);
170 ret = ff_get_buffer(avctx, frame, 0);
174 for (int i = avctx->height - 1; i >= 0 ; i--) {
178 const uint8_t *src = s->decbuffer + (avctx->height - 1 - i) * s->stride;
180 for (int j = 0; j < avctx->width; j += 8) {
338 static av_cold int decode_init(AVCodecContext *avctx)
340 ProSumerContext *s = avctx->priv_data;
342 s->stride = 3LL * FFALIGN(avctx->width, 8) >> 1;
343 s->size = avctx->height * s->stride;
345 avctx->pix_fmt = AV_PIX_FMT_YUV411P;
358 static av_cold int decode_close(AVCodecContext *avctx)
360 ProSumerContext *s = avctx->priv_data;