Lines Matching defs:avctx

45     AVCodecContext *avctx;
58 static av_cold int cdxl_decode_init(AVCodecContext *avctx)
60 CDXLVideoContext *c = avctx->priv_data;
63 c->avctx = avctx;
94 for (y = 0; y < c->avctx->height; y++) {
95 for (x = 0; x < c->avctx->width; x++)
109 for (y = 0; y < c->avctx->height; y++) {
111 for (x = 0; x < c->avctx->width; x++)
124 for (y = 0; y < c->avctx->height; y++) {
125 bytestream2_get_buffer(&gb, out + linesize * y, c->avctx->width * 3);
131 memset(out, 0, linesize * c->avctx->height);
162 AVCodecContext *avctx = c->avctx;
171 import_format(c, avctx->width, c->new_video);
173 for (y = 0; y < avctx->height; y++) {
177 for (x = 0; x < avctx->width; x++) {
205 AVCodecContext *avctx = c->avctx;
214 import_format(c, avctx->width, c->new_video);
216 for (y = 0; y < avctx->height; y++) {
220 for (x = 0; x < avctx->width; x++) {
246 static int cdxl_decode_frame(AVCodecContext *avctx, AVFrame *p,
249 CDXLVideoContext *c = avctx->priv_data;
277 avpriv_request_sample(avctx, "Pixel format 0x%0x", c->format);
281 if ((ret = ff_set_dimensions(avctx, w, h)) < 0)
285 aligned_width = avctx->width;
287 aligned_width = FFALIGN(c->avctx->width, 16);
288 c->padded_bits = aligned_width - c->avctx->width;
289 if (c->video_size < aligned_width * avctx->height * (int64_t)c->bpp / 8)
292 avctx->pix_fmt = AV_PIX_FMT_PAL8;
296 avctx->pix_fmt = AV_PIX_FMT_BGR24;
299 avctx->pix_fmt = AV_PIX_FMT_RGB24;
301 avpriv_request_sample(avctx, "Encoding %d, bpp %d and format 0x%x",
306 if ((ret = ff_get_buffer(avctx, p, 0)) < 0)
320 } else if (avctx->pix_fmt == AV_PIX_FMT_PAL8) {
330 static av_cold int cdxl_decode_end(AVCodecContext *avctx)
332 CDXLVideoContext *c = avctx->priv_data;