diff options
author | wm4 <wm4@nowhere> | 2015-04-06 20:34:46 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-04-06 20:34:50 +0200 |
commit | 7d116a979b9ab8401bc8d12f520cee03102879ab (patch) | |
tree | fbca209a9c4e48721a4ee4a4152126e0390b3249 /sub | |
parent | a18dc01655b86de040b5a3a02ffcad694b843b17 (diff) |
screenshots: select best image format the encoder supports
This matters for png screenshots. We used to hardcode rgb24, but
libavformat's png encoder can do much more. Use the image format list
provided by the encoder, and select the best format from it (according
to the source format).
As a consequence, rgb48 (i.e. 16 bit per component) will be selected if
the source format is e.g. 10 bit yuv. This happens in accordance to
FFmpeg's avcodec_find_best_pix_fmt_of_list() function, which assumes
that 16 bit rgb should be preferred for 10 bit yuv.
This also causes it to print this message in this case:
[ffmpeg] swscaler: full chroma interpolation for destination format 'rgb48be' not yet implemented
I'm not 100% sure whether this is a problem.
Diffstat (limited to 'sub')
0 files changed, 0 insertions, 0 deletions