Lines Matching refs:height
34 int width, height;
69 * \param height height of the video frame
72 int width, int height) {
74 avpicture_fill(&pic, src, PIX_FMT_YUV420P, width, height);
75 av_picture_copy((AVPicture *)f, &pic, PIX_FMT_YUV420P, width, height);
107 static int codec_reinit(AVCodecContext *avctx, int width, int height, int quality) {
110 height = (height + 1) & ~1;
113 if (width != c->width || height != c->height) {
114 if (avcodec_check_dimensions(avctx, height, width) < 0)
117 avctx->height = c->height = height;
118 c->decomp_size = c->height * c->width * 3 / 2;
124 rtjpeg_decode_init(&c->rtj, &c->dsp, c->width, c->height, c->lq, c->cq);
126 rtjpeg_decode_init(&c->rtj, &c->dsp, c->width, c->height, c->lq, c->cq);
155 rtjpeg_decode_init(&c->rtj, &c->dsp, c->width, c->height, c->lq, c->cq);
215 int height = c->height;
216 if (buf_size < c->width * height * 3 / 2) {
218 height = buf_size / c->width / 3 * 2;
220 copy_frame(&c->pic, buf, c->width, height);
229 memset(c->pic.data[0], 0, c->width * c->height);
230 memset(c->pic.data[1], 128, c->width * c->height / 4);
231 memset(c->pic.data[2], 128, c->width * c->height / 4);
255 c->height = 0;
260 if (!codec_reinit(avctx, avctx->width, avctx->height, -1))