[FFmpeg-devel] Can the pixel format be changed between sws_scale() calls?
Ramiro Polla
ramiro.polla
Mon Mar 30 00:47:49 CEST 2009
Hi,
If I understood the code correctly, every time sws_scale() is called,
it runs a whole bunch of:
if (srcFormat == something)
do_this()
else if (srcFormat == something_else)
do_that()
...
for many different converters.
But {src,dst}Format cannot be changed from one call to another, since
the user doesn't even have access to struct SwsContext.
I just want to make sure:
is it safe to assume {src,dst}Format will not change, and therefore we
can assign a function pointer to the appropriate converter at
sws_getContext()?
Ramiro Polla
More information about the ffmpeg-devel
mailing list