Lines Matching defs:width
41 int width, height;
74 * @param width width of the video frame
77 static void copy_frame(AVFrame *f, const uint8_t *src, int width, int height)
82 f->format, width, height, 1);
84 f->format, width, height);
118 static int codec_reinit(AVCodecContext *avctx, int width, int height,
124 width = FFALIGN(width, 2);
128 if (width != c->width || height != c->height) {
130 int64_t buf_size = height * (int64_t)width * 3 / 2
135 if ((ret = ff_set_dimensions(avctx, width, height)) < 0)
137 c->width = width;
146 ff_rtjpeg_decode_init(&c->rtj, c->width, c->height, c->lq, c->cq);
150 ff_rtjpeg_decode_init(&c->rtj, c->width, c->height, c->lq, c->cq);
190 ff_rtjpeg_decode_init(&c->rtj, c->width, c->height, c->lq, c->cq);
203 if (c->width < 16 || c->height < 16) {
217 minsize = c->width * c->height * 3 / 2;
220 minsize = c->width/16 * (c->height/16) * 6;
296 if (buf_size < c->width * height * 3 / 2) {
298 height = buf_size / c->width / 3 * 2;
301 copy_frame(c->pic, buf, c->width, height);
311 memset(c->pic->data[0], 0, c->width * c->height);
312 memset(c->pic->data[1], 128, c->width * c->height / 4);
313 memset(c->pic->data[2], 128, c->width * c->height / 4);
339 c->width = 0;
349 if ((ret = codec_reinit(avctx, avctx->width, avctx->height, -1)) < 0)