[FFmpeg-devel] [PATCH] h264 parallelized, (was: Parallelized h264 proof-of-concept)

Andreas Öman andreas
Fri Jun 15 22:10:54 CEST 2007


Andreas ?man wrote:
> Hi
> 
> Michael Niedermayer wrote:
>> Hi
>>
>>
>> av_free() + av_malloc() or pass an argument to MPV_common_init()
> 
> I'll extend MPV_common_init() with an additional argument then.
> 
>>>  static void filter_mb_fast( H264Context *h, int mb_x, int mb_y, uint8_t *img_y, uint8_t *img_cb, uint8_t *img_cr, unsigned int linesize, unsigned int uvlinesize);
>>> +static void execute_decode_slices(H264Context *h, int reset);
>> cant you order the new functions so as to avoid that?
> 
> Hm, not really. decode_slice_header() needs to be able to
> fire off any pending slices in case the deblocking-type changes
> within a frame. (AFAIK this is valid according to the specs,
> perhaps I'm wrong?)
> 

Okay, here are the finalized patches.

#1 - Extend MPV_common_init() with an addition arg for context size
      when doing multi threading.

#2 - Factor out init_scan_tables()

#3 - Decouple bit context from h264 context in decode_ref_pic_marking()

#4 - Slice level parallelism for deblocking type 0 and 2

regression tests passes

-------------- next part --------------
A non-text attachment was scrubbed...
Name: h264-1.diff
Type: text/x-patch
Size: 6486 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070615/e23ce06d/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: h264-2.diff
Type: text/x-patch
Size: 4628 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070615/e23ce06d/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: h264-3.diff
Type: text/x-patch
Size: 2641 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070615/e23ce06d/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: h264-4.diff
Type: text/x-patch
Size: 19458 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070615/e23ce06d/attachment-0003.bin>



More information about the ffmpeg-devel mailing list