[Libva] [PATCH 8/8 965 driver] add YUY2 support in i965_GetSurfaceAttributes, fix a small issue

Zhao, Halley halley.zhao at intel.com
Tue Jun 26 17:49:46 PDT 2012


> While we are at adding new formats, please define corresponding
> VA_FOURCC_* if they don't exist already. They will be propagated to
> libva next, with proper comments as to what they actually represent.
Ok, I will add it to va.h.
Should we replace VA_FOURCC('N', 'V', '1', '2') to VA_FOURCC_NV12 in all source file?

> BTW, why not use switch/case?
just follow the existing style, I prefer switch/case as well.

thanks

> -----Original Message-----
> From: Gwenole Beauchesne [mailto:gb.devel at gmail.com]
> Sent: Tuesday, June 26, 2012 4:00 PM
> To: Zhao, Halley
> Cc: libva at lists.freedesktop.org
> Subject: Re: [Libva] [PATCH 8/8 965 driver] add YUY2 support in
> i965_GetSurfaceAttributes, fix a small issue
> 
> Hi,
> 
> 2012/6/26 Zhao Halley <halley.zhao at intel.com>:
> 
> > @@ -3584,7 +3584,8 @@ i965_GetSurfaceAttributes(
> >                     } else if (obj_config->profile == VAProfileNone)
> {
> >                         if (attrib_list[i].value.value.i !=
> > VA_FOURCC('N', 'V', '1', '2') &&
> >                             attrib_list[i].value.value.i !=
> > VA_FOURCC('I', '4', '2', '0') &&
> > -                            attrib_list[i].value.value.i !=
> > VA_FOURCC('Y', 'V', '1', '2')) {
> > +                            attrib_list[i].value.value.i !=
> > + VA_FOURCC('Y', 'V', '1', '2') &&
> > +                            attrib_list[i].value.value.i !=
> > + VA_FOURCC('Y', 'U', 'Y', '2')) {
> >                             attrib_list[i].value.value.i = 0;
> >                             attrib_list[i].flags &=
> > ~VA_SURFACE_ATTRIB_SETTABLE;
> >                         }
> 
> While we are at adding new formats, please define corresponding
> VA_FOURCC_* if they don't exist already. They will be propagated to
> libva next, with proper comments as to what they actually represent.
> 
> BTW, why not use switch/case?
> 
> Thanks,
> Gwenole.


More information about the Libva mailing list