Merge commit '928061670e873e816daa14827853b7e11221ff5f'
* commit '928061670e873e816daa14827853b7e11221ff5f':
libswscale: GBRAP input & output and GBRAP16 input support
Conflicts:
libswscale/input.c
libswscale/swscale_internal.h
libswscale/swscale_unscaled.c
libswscale/utils.c
tests/ref/fate/filter-pixdesc-gbrap
tests/ref/fate/filter-pixfmts-copy
tests/ref/fate/filter-pixfmts-null
tests/ref/fate/filter-pixfmts-scale
tests/ref/fate/filter-pixfmts-vflip
See: 5c057433cc
Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
27513846f6
@ -878,8 +878,9 @@ static int planarRgbToRgbWrapper(SwsContext *c, const uint8_t *src[],
|
||||
return srcSliceH;
|
||||
}
|
||||
|
||||
static int planarRgbToplanarRgbWrapper(SwsContext *c, const uint8_t *src[],
|
||||
int srcStride[], int srcSliceY, int srcSliceH,
|
||||
static int planarRgbToplanarRgbWrapper(SwsContext *c,
|
||||
const uint8_t *src[], int srcStride[],
|
||||
int srcSliceY, int srcSliceH,
|
||||
uint8_t *dst[], int dstStride[])
|
||||
{
|
||||
copyPlane(src[0], srcStride[0], srcSliceY, srcSliceH, c->srcW,
|
||||
@ -1602,6 +1603,7 @@ void ff_get_unscaled_swscale(SwsContext *c)
|
||||
&& (!needsDither || (c->flags&(SWS_FAST_BILINEAR|SWS_POINT))))
|
||||
c->swscale = rgbToRgbWrapper;
|
||||
|
||||
/* RGB to planar RGB */
|
||||
if ((srcFormat == AV_PIX_FMT_GBRP && dstFormat == AV_PIX_FMT_GBRAP) ||
|
||||
(srcFormat == AV_PIX_FMT_GBRAP && dstFormat == AV_PIX_FMT_GBRP))
|
||||
c->swscale = planarRgbToplanarRgbWrapper;
|
||||
|
@ -204,8 +204,6 @@ static const FormatEntry format_entries[AV_PIX_FMT_NB] = {
|
||||
[AV_PIX_FMT_GBRP14BE] = { 1, 1 },
|
||||
[AV_PIX_FMT_GBRP16LE] = { 1, 0 },
|
||||
[AV_PIX_FMT_GBRP16BE] = { 1, 0 },
|
||||
[AV_PIX_FMT_XYZ12BE] = { 1, 1, 1 },
|
||||
[AV_PIX_FMT_XYZ12LE] = { 1, 1, 1 },
|
||||
[AV_PIX_FMT_GBRAP] = { 1, 1 },
|
||||
[AV_PIX_FMT_GBRAP16LE] = { 1, 0 },
|
||||
[AV_PIX_FMT_GBRAP16BE] = { 1, 0 },
|
||||
@ -221,6 +219,8 @@ static const FormatEntry format_entries[AV_PIX_FMT_NB] = {
|
||||
[AV_PIX_FMT_BAYER_GBRG16BE] = { 1, 0 },
|
||||
[AV_PIX_FMT_BAYER_GRBG16LE] = { 1, 0 },
|
||||
[AV_PIX_FMT_BAYER_GRBG16BE] = { 1, 0 },
|
||||
[AV_PIX_FMT_XYZ12BE] = { 1, 1, 1 },
|
||||
[AV_PIX_FMT_XYZ12LE] = { 1, 1, 1 },
|
||||
};
|
||||
|
||||
int sws_isSupportedInput(enum AVPixelFormat pix_fmt)
|
||||
|
Loading…
Reference in New Issue
Block a user