Lines Matching refs:height
213 int height;
233 bool retrieveFrame(int, unsigned char** data, int* step, int* width, int* height, int* cn);
612 // backup encoder' width/height
614 int enc_height = enc->height;
626 // checking width/height (since decoder can sometimes alter it, eg. vp6f)
628 if (enc_height && (enc->height != enc_height)) { enc->height = enc_height; }
636 enc->width, enc->height ));
638 PIX_FMT_BGR24, enc->width, enc->height );
641 frame.height = enc->height;
733 bool CvCapture_FFMPEG::retrieveFrame(int, unsigned char** data, int* step, int* width, int* height, int* cn)
739 video_st->codec->width, video_st->codec->height);
743 frame.height != video_st->codec->height )
749 frame.height = video_st->codec->height;
753 video_st->codec->width, video_st->codec->height,
755 video_st->codec->width, video_st->codec->height,
769 0, video_st->codec->height,
777 *height = frame.height;
801 return (double)frame.height;
1000 double fps, int width, int height, bool isColor );
1002 bool writeFrame( const unsigned char* data, int step, int width, int height, int cn, int origin );
1104 static AVFrame * icv_alloc_picture_FFMPEG(int pix_fmt, int width, int height, bool alloc)
1113 size = avpicture_get_size( (PixelFormat) pix_fmt, width, height);
1122 (PixelFormat) pix_fmt, width, height);
1192 c->height = h;
1349 bool CvVideoWriter_FFMPEG::writeFrame( const unsigned char* data, int step, int width, int height, int cn, int origin )
1353 if( (width & -2) != frame_width || (height & -2) != frame_height || !data )
1356 height = frame_height;
1373 temp_image.height = height;
1375 temp_image.data = (unsigned char*)malloc(temp_image.step*temp_image.height);
1377 for( int y = 0; y < height; y++ )
1378 memcpy(temp_image.data + y*temp_image.step, data + (height-1-y)*step, width*cn);
1389 temp_image.height = height;
1391 temp_image.data = (unsigned char*)malloc(temp_image.step*temp_image.height);
1394 for( int y = 0; y < height; y++ )
1395 memcpy(temp_image.data + y*temp_image.step, data + (height-1-y)*step, temp_image.step);
1397 for( int y = 0; y < height; y++ )
1423 (PixelFormat)input_pix_fmt, width, height);
1428 height,
1431 c->height,
1441 height,
1447 (PixelFormat)input_pix_fmt, width, height);
1569 double fps, int width, int height, bool is_color )
1583 // we allow frames of odd width or height, but in this case we truncate
1585 // but some internal functions inside FFMPEG swscale require even width/height.
1587 height &= -2;
1588 if( width <= 0 || height <= 0 )
1701 double bitrate = MIN(bitrate_scale*fps*width*height, (double)INT_MAX/2);
1705 width, height, (int)(bitrate + 0.5),
1776 outbuf_size = width*height*4;
1784 picture = icv_alloc_picture_FFMPEG(c->pix_fmt, c->width, c->height, need_color_convert);
1794 input_picture = icv_alloc_picture_FFMPEG(input_pix_fmt, c->width, c->height, false);
1826 frame_height = height;
1873 int cvRetrieveFrame_FFMPEG(CvCapture_FFMPEG* capture, unsigned char** data, int* step, int* width, int* height, int* cn)
1875 return capture->retrieveFrame(0, data, step, width, height, cn);
1879 int width, int height, int isColor )
1883 if( writer->open( filename, fourcc, fps, width, height, isColor != 0 ))
1903 int width, int height, int cn, int origin)
1905 return writer->writeFrame(data, step, width, height, cn, origin);
1916 bool open(const char* fileName, int width, int height, double fps);
2000 c->height = h;
2074 bool OutputMediaStream_FFMPEG::open(const char* fileName, int width, int height, double fps)
2111 video_st_ = addVideoStream(oc_, codec_id, width, height, width * height * bitrate_scale, fps, codec_pix_fmt);
2176 struct OutputMediaStream_FFMPEG* create_OutputMediaStream_FFMPEG(const char* fileName, int width, int height, double fps)
2180 if (stream->open(fileName, width, height, fps))
2234 bool open(const char* fileName, int* codec, int* chroma_format, int* width, int* height);
2248 bool InputMediaStream_FFMPEG::open(const char* fileName, int* codec, int* chroma_format, int* width, int* height)
2333 *height = enc->coded_height;
2400 InputMediaStream_FFMPEG* create_InputMediaStream_FFMPEG(const char* fileName, int* codec, int* chroma_format, int* width, int* height)
2404 if (stream && stream->open(fileName, codec, chroma_format, width, height))