# HG changeset patch # User reimar # Date 1304878477 0 # Node ID b1e64a3d6dd3fb856278f266f578531bbdc49884 # Parent c9c9f015619bc9148939c545780223ad19562680 Simplify IMGFMT_IS_YUVP16_NE definition. diff -r c9c9f015619b -r b1e64a3d6dd3 libmpcodecs/img_format.h --- a/libmpcodecs/img_format.h Sun May 08 13:47:19 2011 +0000 +++ b/libmpcodecs/img_format.h Sun May 08 18:14:37 2011 +0000 @@ -131,15 +131,16 @@ #define IMGFMT_444P16 IMGFMT_444P16_BE #define IMGFMT_422P16 IMGFMT_422P16_BE #define IMGFMT_420P16 IMGFMT_420P16_BE +#define IMGFMT_IS_YUVP16_NE(fmt) IMGFMT_IS_YUVP16_BE(fmt) #else #define IMGFMT_444P16 IMGFMT_444P16_LE #define IMGFMT_422P16 IMGFMT_422P16_LE #define IMGFMT_420P16 IMGFMT_420P16_LE +#define IMGFMT_IS_YUVP16_NE(fmt) IMGFMT_IS_YUVP16_LE(fmt) #endif #define IMGFMT_IS_YUVP16_LE(fmt) (((fmt ^ IMGFMT_420P16_LE) & 0xff0000ff) == 0) #define IMGFMT_IS_YUVP16_BE(fmt) (((fmt ^ IMGFMT_420P16_BE) & 0xff0000ff) == 0) -#define IMGFMT_IS_YUVP16_NE(fmt) (((fmt ^ IMGFMT_420P16 ) & 0xff0000ff) == 0) #define IMGFMT_IS_YUVP16(fmt) (IMGFMT_IS_YUVP16_LE(fmt) || IMGFMT_IS_YUVP16_BE(fmt)) /* Packed YUV Formats */