diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-08-04 21:48:00 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-08-04 21:48:00 +0200 |
commit | 4c8bc6fdee95af4cd7a8409dec34756350078b5e (patch) | |
tree | 06e2f17f1cf3a77a0ec5c0c4ba4e91bf90b52710 /libswscale | |
parent | 0b25261d29c6b348e2dccc2985090cf10a60c34f (diff) | |
parent | e96c3b81cadd0ba84d43b1f3a54980df3785d9a5 (diff) | |
download | ffmpeg-4c8bc6fdee95af4cd7a8409dec34756350078b5e.tar.gz |
Merge commit 'e96c3b81cadd0ba84d43b1f3a54980df3785d9a5'
* commit 'e96c3b81cadd0ba84d43b1f3a54980df3785d9a5':
avutil: rename AV_PIX_FMT_Y400A to AV_PIX_FMT_YA8
Conflicts:
libavcodec/libopenjpegdec.c
libavcodec/libopenjpegenc.c
libavcodec/raw.c
libavutil/pixdesc.c
libavutil/pixfmt.h
libavutil/version.h
libswscale/swscale_internal.h
libswscale/swscale_unscaled.c
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libswscale')
-rw-r--r-- | libswscale/input.c | 4 | ||||
-rw-r--r-- | libswscale/swscale-test.c | 2 | ||||
-rw-r--r-- | libswscale/swscale_internal.h | 4 | ||||
-rw-r--r-- | libswscale/swscale_unscaled.c | 4 | ||||
-rw-r--r-- | libswscale/utils.c | 2 | ||||
-rw-r--r-- | libswscale/x86/swscale.c | 4 |
6 files changed, 10 insertions, 10 deletions
diff --git a/libswscale/input.c b/libswscale/input.c index 6a39a3011d..15b0f5da3c 100644 --- a/libswscale/input.c +++ b/libswscale/input.c @@ -1217,7 +1217,7 @@ av_cold void ff_sws_init_input_funcs(SwsContext *c) #endif case AV_PIX_FMT_YUYV422: case AV_PIX_FMT_YVYU422: - case AV_PIX_FMT_Y400A: + case AV_PIX_FMT_YA8: c->lumToYV12 = yuy2ToY_c; break; case AV_PIX_FMT_UYVY422: @@ -1332,7 +1332,7 @@ av_cold void ff_sws_init_input_funcs(SwsContext *c) case AV_PIX_FMT_ARGB: c->alpToYV12 = abgrToA_c; break; - case AV_PIX_FMT_Y400A: + case AV_PIX_FMT_YA8: c->alpToYV12 = uyvyToY_c; break; case AV_PIX_FMT_PAL8 : diff --git a/libswscale/swscale-test.c b/libswscale/swscale-test.c index e0b887e875..22df13c0a7 100644 --- a/libswscale/swscale-test.c +++ b/libswscale/swscale-test.c @@ -37,7 +37,7 @@ * Should be removed when a cleaner pixel format system exists. */ #define isGray(x) \ ((x) == AV_PIX_FMT_GRAY8 || \ - (x) == AV_PIX_FMT_Y400A || \ + (x) == AV_PIX_FMT_YA8 || \ (x) == AV_PIX_FMT_GRAY16BE || \ (x) == AV_PIX_FMT_GRAY16LE) #define hasChroma(x) \ diff --git a/libswscale/swscale_internal.h b/libswscale/swscale_internal.h index 557b0ae522..cf7b955bac 100644 --- a/libswscale/swscale_internal.h +++ b/libswscale/swscale_internal.h @@ -670,7 +670,7 @@ static av_always_inline int isRGB(enum AVPixelFormat pix_fmt) #else #define isGray(x) \ ((x) == AV_PIX_FMT_GRAY8 || \ - (x) == AV_PIX_FMT_Y400A || \ + (x) == AV_PIX_FMT_YA8 || \ (x) == AV_PIX_FMT_GRAY16BE || \ (x) == AV_PIX_FMT_GRAY16LE) #endif @@ -775,7 +775,7 @@ static av_always_inline int isALPHA(enum AVPixelFormat pix_fmt) || (x)==AV_PIX_FMT_YUYV422 \ || (x)==AV_PIX_FMT_YVYU422 \ || (x)==AV_PIX_FMT_UYVY422 \ - || (x)==AV_PIX_FMT_Y400A \ + || (x)==AV_PIX_FMT_YA8 \ || isRGBinInt(x) \ || isBGRinInt(x) \ ) diff --git a/libswscale/swscale_unscaled.c b/libswscale/swscale_unscaled.c index 99148d1385..8161eb0c93 100644 --- a/libswscale/swscale_unscaled.c +++ b/libswscale/swscale_unscaled.c @@ -376,7 +376,7 @@ static int palToRgbWrapper(SwsContext *c, const uint8_t *src[], int srcStride[], uint8_t *dstPtr = dst[0] + dstStride[0] * srcSliceY; const uint8_t *srcPtr = src[0]; - if (srcFormat == AV_PIX_FMT_GRAY8A) { + if (srcFormat == AV_PIX_FMT_YA8) { switch (dstFormat) { case AV_PIX_FMT_RGB32 : conv = gray8aToPacked32; break; case AV_PIX_FMT_BGR32 : conv = gray8aToPacked32; break; @@ -1729,7 +1729,7 @@ void ff_get_unscaled_swscale(SwsContext *c) if (srcFormat == AV_PIX_FMT_UYVY422 && dstFormat == AV_PIX_FMT_YUV422P) c->swscale = uyvyToYuv422Wrapper; -#define isPlanarGray(x) (isGray(x) && (x) != AV_PIX_FMT_GRAY8A) +#define isPlanarGray(x) (isGray(x) && (x) != AV_PIX_FMT_YA8) /* simple copy */ if ( srcFormat == dstFormat || (srcFormat == AV_PIX_FMT_YUVA420P && dstFormat == AV_PIX_FMT_YUV420P) || diff --git a/libswscale/utils.c b/libswscale/utils.c index 851965091a..22965310da 100644 --- a/libswscale/utils.c +++ b/libswscale/utils.c @@ -161,7 +161,7 @@ static const FormatEntry format_entries[AV_PIX_FMT_NB] = { [AV_PIX_FMT_RGB444BE] = { 1, 1 }, [AV_PIX_FMT_BGR444LE] = { 1, 1 }, [AV_PIX_FMT_BGR444BE] = { 1, 1 }, - [AV_PIX_FMT_Y400A] = { 1, 0 }, + [AV_PIX_FMT_YA8] = { 1, 0 }, [AV_PIX_FMT_BGR48BE] = { 1, 1 }, [AV_PIX_FMT_BGR48LE] = { 1, 1 }, [AV_PIX_FMT_BGRA64BE] = { 1, 1, 1 }, diff --git a/libswscale/x86/swscale.c b/libswscale/x86/swscale.c index 98cded2ec4..c4c0e28e53 100644 --- a/libswscale/x86/swscale.c +++ b/libswscale/x86/swscale.c @@ -448,7 +448,7 @@ switch(c->dstBpc){ \ ASSIGN_VSCALE_FUNC(c->yuv2plane1, mmx, mmxext, cpu_flags & AV_CPU_FLAG_MMXEXT); switch (c->srcFormat) { - case AV_PIX_FMT_Y400A: + case AV_PIX_FMT_YA8: c->lumToYV12 = ff_yuyvToY_mmx; if (c->alpPixBuf) c->alpToYV12 = ff_uyvyToY_mmx; @@ -497,7 +497,7 @@ switch(c->dstBpc){ \ ASSIGN_VSCALE_FUNC(c->yuv2plane1, sse2, sse2, 1); switch (c->srcFormat) { - case AV_PIX_FMT_Y400A: + case AV_PIX_FMT_YA8: c->lumToYV12 = ff_yuyvToY_sse2; if (c->alpPixBuf) c->alpToYV12 = ff_uyvyToY_sse2; |