[FFmpeg-devel] [PATCH v2] swscale: separate exported and internal range flags
Michael Niedermayer
michael at niedermayer.cc
Fri Oct 9 22:02:20 EEST 2020
On Wed, Oct 07, 2020 at 09:27:20PM +0300, Jan Ekström wrote:
> Fixes vf_scale outputting RGB AVFrames with limited range in
> case either input or output specifically sets the range.
>
> Keeps the external interfaces the same, but allows us to retrieve
> and set nonzero value for RGB. Additionally defines the default
> value of the AVOption as -1 so we can differentiate between
> attempting to force limited range and requesting the default.
> ---
> libswscale/options.c | 4 +-
> libswscale/swscale_internal.h | 3 +
> libswscale/utils.c | 160 +++++++++++++++++++++++-----------
> 3 files changed, 114 insertions(+), 53 deletions(-)
This changes the output for:
./ffmpeg -i ~/tickets/4926/5611842b1f09f2_20295212.png -vf scale=34:44 file.tga
same with png output
That is the red looks a bit different, the filesize also changes
file should be here:
https://trac.ffmpeg.org/attachment/ticket/4926/5611842b1f09f2_20295212.png
I dont know if the one after the patch is more or less correct, but why
does your patch change this ?
is that change intentional ?
thx
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Awnsering whenever a program halts or runs forever is
On a turing machine, in general impossible (turings halting problem).
On any real computer, always possible as a real computer has a finite number
of states N, and will either halt in less than N cycles or never halt.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20201009/8957291b/attachment.sig>
More information about the ffmpeg-devel
mailing list