Re: [FFmpeg-devel] [PATCH] lavf/img2dec: disable parsing if frame_size is specified

2016-10-19 Thread Matthieu Bouron
On Mon, Mar 07, 2016 at 11:59:38AM +, Carl Eugen Hoyos wrote: > Matthieu Bouron gmail.com> writes: > > > else { > > s->is_pipe = 1; > > -st->need_parsing = AVSTREAM_PARSE_FULL; > > +st->need_parsing = s->frame_size > 0 ? AVSTREAM_PARSE_NONE > > : AVSTREAM_

Re: [FFmpeg-devel] [PATCH] lavf/img2dec: disable parsing if frame_size is specified

2016-03-07 Thread Carl Eugen Hoyos
Matthieu Bouron gmail.com> writes: > else { > s->is_pipe = 1; > -st->need_parsing = AVSTREAM_PARSE_FULL; > +st->need_parsing = s->frame_size > 0 ? AVSTREAM_PARSE_NONE > : AVSTREAM_PARSE_FULL; Makes sense imo. Carl Eugen _

[FFmpeg-devel] [PATCH] lavf/img2dec: disable parsing if frame_size is specified

2016-03-07 Thread Matthieu Bouron
From: Matthieu Bouron --- Hello, The following patch disable parsing if the frame_size option is specified. The main purpose here is to disable the use of parsers (which have a huge performance cost on embedded platforms) for single images when their size is known in advance. The patch sounds