[FFmpeg-devel] [PATCH][RFC] variable frame sizes

Michael Niedermayer michaelni
Thu Jun 18 13:21:22 CEST 2009


On Fri, Jun 12, 2009 at 10:52:56AM -0700, Eric Buehl wrote:
> v5a.patch
[...]
> @@ -920,6 +938,49 @@
>      if (ost->video_resample) {
>          padding_src = NULL;
>          final_picture = &ost->pict_tmp;
> +        if(  (ost->resample_height != (ist->st->codec->height - (ost->topBand + ost->bottomBand)))
> +          || (ost->resample_width != (ist->st->codec->width - (ost->leftBand + ost->rightBand)))) {
> +
> +
> +            fprintf(stderr,"Input Stream #%d.%d frame size changed to %dx%d\n", ist->file_index, ist->index, ist->st->codec->width, ist->st->codec->height);
> +            /* keep bands proportional to the frame size */
> +            topBand    = MAKE_EVEN((int64_t)ist->st->codec->height * ost->original_topBand / ost->original_height);
> +            bottomBand = MAKE_EVEN((int64_t)ist->st->codec->height * ost->original_bottomBand / ost->original_height);
> +            leftBand   = MAKE_EVEN((int64_t)ist->st->codec->width * ost->original_leftBand / ost->original_width);
> +            rightBand  = MAKE_EVEN((int64_t)ist->st->codec->width * ost->original_rightBand / ost->original_width);

can be aligned like:
topBand    = MAKE_EVEN((int64_t)ist->st->codec->height * ost->original_topBand    / ost->original_height);
bottomBand = MAKE_EVEN((int64_t)ist->st->codec->height * ost->original_bottomBand / ost->original_height);
leftBand   = MAKE_EVEN((int64_t)ist->st->codec->width  * ost->original_leftBand   / ost->original_width);
rightBand  = MAKE_EVEN((int64_t)ist->st->codec->width  * ost->original_rightBand  / ost->original_width);



> +            

trailing whitespace


[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Old school: Use the lowest level language in which you can solve the problem
            conveniently.
New school: Use the highest level language in which the latest supercomputer
            can solve the problem without the user falling asleep waiting.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090618/99d535b1/attachment.pgp>



More information about the ffmpeg-devel mailing list