[FFmpeg-devel] [PATCH][6/8] Add VA API accelerated VC-1 decoding (take 3)

Gwenole Beauchesne gbeauchesne
Mon Feb 2 11:00:09 CET 2009


On Sat, 31 Jan 2009, Kostya wrote:

>>> Err, BI type = s->pict_type == FF_BI_TYPE && v->bi_type
>>> s->pict_type = FF_BI_TYPE is set only during parsing frame header
>> Did you mean BI type = s->pict_type == FF_B_TYPE && v->bi_type ?
> Oh, indeed.

Thanks for the sample. Actually, it turned out that my assumptions for the 
FFmpeg -> VA API PTYPE mappings were wrong. I switched I/P types for 
max_bframes != 0 case and it already looked better. So, this lead me to 
conclude that there is a single mapping for all cases, and that's the one 
for VC-1 (table 35). No need to amend VA API either, I/P/B/BI codes fit 2 
bits, in that order.

I verified the code path works for the following cases:
- SP/MP with max_bframes == 0
- SP/MP with max_bframes != 0
- Advanced profile

Here is a new patch.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 106_vaapi_vc1.patch
Type: text/x-diff
Size: 27729 bytes
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090202/08b46981/attachment.patch>

More information about the ffmpeg-devel mailing list