[Libva] the position in x-direction of the first mb
Xiang, Haihao
haihao.xiang at intel.com
Tue Sep 8 09:12:11 PDT 2009
>-----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
>>
More information about the Libva
mailing list