Lines Matching refs:height

41     int width, height;
75 * @param height height 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,
125 height = FFALIGN(height, 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)
138 c->height = height;
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;
284 memset(c->pic->data[0], 0, avctx->height * c->pic->linesize[0]);
285 memset(c->pic->data[1], 0x80, avctx->height * c->pic->linesize[1] / 2);
286 memset(c->pic->data[2], 0x80, avctx->height * c->pic->linesize[2] / 2);
295 int height = c->height;
296 if (buf_size < c->width * height * 3 / 2) {
298 height = buf_size / c->width / 3 * 2;
300 if(height > 0)
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);
340 c->height = 0;
349 if ((ret = codec_reinit(avctx, avctx->width, avctx->height, -1)) < 0)