Hi, On 4/7/2009 1:42 AM, Marc Mason wrote: > Edwin van der Horst wrote: > >> In my case the MJPEG encoder of lavc did indeed perform better, >> but I think that's because I was able to compile it with the arm5 >> optimizations (using a pxa270 processor). > > If I understand correctly, you compared the performance of libjpeg and > lavc for JPEG compression? And, in your setup, lavc performed better? > >> Best way to find out is to try it yourself... > > You're right :-) > >> Open the file, provide the data in the right format to the codec, >> use the MJPEG encoder to encode a single frame (you can of course >> provide the buffer where to encode to yourself). > > I'm not sure how to convince avcodec_decode_video() to output an > uncompressed picture to a user-supplied buffer. > > avctx.get_buffer is set to avcodec_default_get_buffer() by default. > Do I need to provide my own function? Do I also need to provide > release_buffer? reget_buffer? get_format? other? >
Yes, you do need to set get_buffer to your own. It will work. -- Baptiste COUDURIER GnuPG Key Id: 0x5C1ABAAA Key fingerprint 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA checking for life_signs in -lkenny... no FFmpeg maintainer http://www.ffmpeg.org _______________________________________________ libav-user mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/libav-user
