[MPlayer-cvslog] r35076 - in trunk/libmpcodecs: img_format.h vf_scale.c

Reimar Döffinger Reimar.Doeffinger at gmx.de
Mon Aug 13 22:58:24 CEST 2012


On Mon, Aug 13, 2012 at 09:13:45PM +0200, Alexander Strasser wrote:
> Hi Reimar!
> 
> reimar wrote:
> [...]
> > Modified: trunk/libmpcodecs/img_format.h
> > ==============================================================================
> > --- trunk/libmpcodecs/img_format.h	Sat Aug 11 18:42:43 2012	(r35075)
> > +++ trunk/libmpcodecs/img_format.h	Sun Aug 12 15:24:54 2012	(r35076)
> > @@ -215,6 +215,18 @@
> >  #define IMGFMT_IS_YUVP16_BE(fmt) (((fmt - 0x34000051) & 0xff0000fc) == 0)
> >  #define IMGFMT_IS_YUVP16(fmt)    (IMGFMT_IS_YUVP16_LE(fmt) || IMGFMT_IS_YUVP16_BE(fmt))
> >  
> > +/**
> > + * \brief Find the corresponding full 16 bit format, i.e. IMGFMT_420P10_LE -> IMGFMT_420P16_LE
> > + * \return normalized format ID or 0 if none exists.
> > + */
> > +static inline int normalize_yuvp16(int fmt) {
> > +    if (IMGFMT_IS_YUVP16_LE(fmt))
> > +        return (fmt & 0x00ffffff) | 0x51000000;
> > +    if (IMGFMT_IS_YUVP16_LE(fmt))
> > +        return (fmt & 0xffffff00) | 0x00000051;
> > +    return 0;
> > +}
> 
>   I guess the second if should use IMGFMT_IS_YUVP16_BE.

Yes, thanks.


More information about the MPlayer-cvslog mailing list