mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-10-06 01:07:36 +08:00
swscale: Add p016 output support and generalise yuv420p1x to p010
To make the best use of existing code, I generalised the wrapper that currently does yuv420p10 to p010 to support any mixture of input and output sizes between 10 and 16 bits. This had the side effect of yielding a working code path for all yuv420p1x formats to p01x.
This commit is contained in:
@@ -254,8 +254,8 @@ static const FormatEntry format_entries[AV_PIX_FMT_NB] = {
|
||||
[AV_PIX_FMT_AYUV64LE] = { 1, 1},
|
||||
[AV_PIX_FMT_P010LE] = { 1, 1 },
|
||||
[AV_PIX_FMT_P010BE] = { 1, 1 },
|
||||
[AV_PIX_FMT_P016LE] = { 1, 0 },
|
||||
[AV_PIX_FMT_P016BE] = { 1, 0 },
|
||||
[AV_PIX_FMT_P016LE] = { 1, 1 },
|
||||
[AV_PIX_FMT_P016BE] = { 1, 1 },
|
||||
};
|
||||
|
||||
int sws_isSupportedInput(enum AVPixelFormat pix_fmt)
|
||||
|
Reference in New Issue
Block a user