[FFmpeg-devel] [PATCH] HWAccel infrastructure (take 4)

Gwenole Beauchesne gbeauchesne
Thu Feb 19 10:03:13 CET 2009


On Wed, 18 Feb 2009, Michael Niedermayer wrote:

>>> that should work, excpt why not send
>>> buf+offset and buf_end in end_slice, is start still needed then?
>> Still and only for h263dec.c, it only depends on the level of ugliness
>> you'd accept. ;-) I am all for a single decode_slice() instead of both
>> start_slice(), end_slice() but I still haven't found a beautiful way
>> for h263dec.c (and that actually works). If you have ideas...
> please explain me how
> start_slice(buf)
> <code>
> end_slice(buf_end)
> can be much cleaner than
> tmp=buf
> <code>
> slice(tmp, buf_end)
> ?

See by yourself if this suits you. ;-) I hope it's OK now.

- Make ff_query_hwaccel_codec() use codec_id instead of an AVCodec
- Add a "name" field to AVHWAccel struct
- Add "buf" and "buf_size" args to AVHWAccel::start_frame()
- Merge AVHWAccel::start_slice() and ::end_slice() into ::decode_slice()
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ffmpeg.hwaccel.4.patch
Type: text/x-diff
Size: 26003 bytes
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090219/ca4113c3/attachment.patch>

More information about the ffmpeg-devel mailing list