[Libva] the position in x-direction of the first mb

Bian, Jonathan jonathan.bian at intel.com
Tue Sep 8 09:19:54 PDT 2009


Perhaps we can use the upper 16 bits in "slice_vertical_position" for the position in x-direction to maintain compatibility with existing apps.

-----Original Message-----
From: libva-bounces at lists.freedesktop.org [mailto:libva-bounces at lists.freedesktop.org] On Behalf Of Xiang, Haihao
Sent: Tuesday, September 08, 2009 9:12 AM
To: 'Yuan, Shengquan'
Cc: 'Libva at lists.freedesktop.org'
Subject: Re: [Libva] the position in x-direction of the first mb



>-----Original Message-----
>From: Yuan, Shengquan [mailto:shengquan.yuan at gmail.com]
>Sent: 2009年9月8日 16:07
>To: Xiang, Haihao
>Cc: Libva at lists.freedesktop.org
>Subject: Re: [Libva] the position in x-direction of the first mb
>
>On Tue, Sep 8, 2009 at 11:50 AM, Xiang, Haihao<haihao.xiang at intel.com> wrote:
>> Hi, Austin
>>
>> The i965 driver needs the position in x-direction of the first
>> macroblock in the slice. However there isn't a field used for this
>> position in slice parameter. Currently I have to assume this position is
>> always zero. Could you add a field in slice parameter to specify this
>> position?
>
>Can macroblock_address in VAMacroblockParameterBufferMPEG2 meet your
>requirement?
>
>/* MPEG-2 Macroblock Parameter Buffer */
>typedef struct _VAMacroblockParameterBufferMPEG2
>{
>    unsigned short macroblock_address;
>    /*
>     * macroblock_address (in raster scan order)
>     * top-left: 0
>     * bottom-right: picture-height-in-mb*picture-width-in-mb - 1
>     */
>    unsigned char macroblock_type;  /* see definition below */
Maybe it can't. 
There is a field slice_vertical_position used for y-direction. I just need a similar field for x-direction in all slice parameter.
BTW some vaapi applications such as mplayer_vaapi don't use VAMacroblockParameterBufferMPEG2 at all.


>>
>> _______________________________________________
>> Libva mailing list
>> Libva at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/libva
>>
_______________________________________________
Libva mailing list
Libva at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libva


More information about the Libva mailing list