mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-23 19:30:05 +00:00
swscale/swscale_unscaled : rename packed_16bpc_bswap
is used for packed and planar format
This commit is contained in:
parent
26bf4a4050
commit
156120fcf8
@ -423,7 +423,7 @@ static void gray8aToPacked24(const uint8_t *src, uint8_t *dst, int num_pixels,
|
||||
}
|
||||
}
|
||||
|
||||
static int packed_16bpc_bswap(SwsContext *c, const uint8_t *src[],
|
||||
static int bswap_16bpc(SwsContext *c, const uint8_t *src[],
|
||||
int srcStride[], int srcSliceY, int srcSliceH,
|
||||
uint8_t *dst[], int dstStride[])
|
||||
{
|
||||
@ -2023,7 +2023,7 @@ void ff_get_unscaled_swscale(SwsContext *c)
|
||||
IS_DIFFERENT_ENDIANESS(srcFormat, dstFormat, AV_PIX_FMT_YUV444P12) ||
|
||||
IS_DIFFERENT_ENDIANESS(srcFormat, dstFormat, AV_PIX_FMT_YUV444P14) ||
|
||||
IS_DIFFERENT_ENDIANESS(srcFormat, dstFormat, AV_PIX_FMT_YUV444P16))
|
||||
c->swscale = packed_16bpc_bswap;
|
||||
c->swscale = bswap_16bpc;
|
||||
|
||||
if (usePal(srcFormat) && isByteRGB(dstFormat))
|
||||
c->swscale = palToRgbWrapper;
|
||||
|
Loading…
Reference in New Issue
Block a user