[FFmpeg-devel] [PATCH] Simplify getSubSampleFactors()
Stefano Sabatini
stefano.sabatini-lala
Sun Jan 3 01:08:18 CET 2010
On date Saturday 2010-01-02 21:04:29 +0100, Michael Niedermayer encoded:
> On Sat, Jan 02, 2010 at 12:29:35PM +0100, Stefano Sabatini wrote:
> [...]
> > @@ -2278,7 +2278,7 @@
> > }
> >
> >
> > -static void getSubSampleFactors(int *h, int *v, int format)
> > +static void getSubSampleFactors_(int *h, int *v, int format)
> > {
> > switch(format) {
> > case PIX_FMT_UYVY422:
>
> this is not the right place for your submission to the obfuscated code contest
Ouch.. yesterday it was the last day for submission..
> > @@ -2329,6 +2329,12 @@
> > }
> > }
> >
> > +static void getSubSampleFactors(int *h, int *v, int format)
> > +{
> > + *h = av_pix_fmt_descriptors[format].log2_chroma_w;
> > + *v = av_pix_fmt_descriptors[format].log2_chroma_h;
> > +}
> > +
> > static uint16_t roundToInt16(int64_t f)
> > {
> > int r= (f + (1<<15))>>16;
>
> ok
Applied.
--
FFmpeg = Frenzy Faboulous Mastodontic Perennial Elaborated Ghost
More information about the ffmpeg-devel
mailing list