[Libva] [PATCH][Libva-intel-driver] i965_DeriveImage() support JPEG color formats

lizhong zhong.li at intel.com
Mon Apr 14 19:20:14 PDT 2014


Thanks for your comment.
I will add it...

Thanks
Zhong


On 04/15/2014 09:32 AM, Zhao Yakui wrote:
> On Mon, 2014-04-14 at 02:17 -0600, Zhong Li wrote:
>> Signed-off-by: Zhong Li <zhong.li at intel.com>
> The Imageformat for JPEG should also be added.
>
> Thanks.
>      Yakui
>
>> ---
>>   src/i965_drv_video.c |    6 ++++++
>>   1 file changed, 6 insertions(+)
>>
>> diff --git a/src/i965_drv_video.c b/src/i965_drv_video.c
>> index cc61ad3..f94d429 100755
>> --- a/src/i965_drv_video.c
>> +++ b/src/i965_drv_video.c
>> @@ -3286,6 +3286,10 @@ VAStatus i965_DeriveImage(VADriverContextP ctx,
>>   
>>       case VA_FOURCC_I420:
>>       case VA_FOURCC_422H:
>> +    case VA_FOURCC_IMC3:
>> +    case VA_FOURCC_444P:
>> +    case VA_FOURCC_422V:
>> +    case VA_FOURCC_411P:
>>           image->num_planes = 3;
>>           image->pitches[0] = w_pitch; /* Y */
>>           image->offsets[0] = 0;
>> @@ -3294,8 +3298,10 @@ VAStatus i965_DeriveImage(VADriverContextP ctx,
>>           image->pitches[2] = obj_surface->cb_cr_pitch; /* V */
>>           image->offsets[2] = w_pitch * obj_surface->y_cr_offset;
>>           break;
>> +
>>       case VA_FOURCC_YUY2:
>>       case VA_FOURCC_UYVY:
>> +    case VA_FOURCC_Y800:
>>           image->num_planes = 1;
>>           image->pitches[0] = obj_surface->width; /* Y, width is aligned already */
>>           image->offsets[0] = 0;
>



More information about the Libva mailing list