[Ffmpeg-devel] one slice at the time rendering w/o callback

Ivo ivop
Wed Nov 23 17:55:48 CET 2005


On Monday 21 November 2005 13:35, Michael Niedermayer wrote:
> hmm, this looks a little messy
> type should be an enum
> x,y,width,height could _maybe_ be changed to int [4] but maybe its a bad
> idea and the got_slice_ptr & got_picture_ptr could be unified together
> with some error/status flag/info, as lavc will try to output something
> for damaged parts too and so wont return -1
>
> all the stuff could also be put in a DecodedSlice structure, so that
> int avcodec_decode_slice(AVCodecContext *avctx,
>                           uint8_t *buf, int bufsize,
>                           DecodedSlice *ret);

Yes. I like the last proposal the most. I will look into it next weekend. 
Thanks for the input.

--Ivo





More information about the ffmpeg-devel mailing list