# HG changeset patch # User reimar # Date 1325795530 0 # Node ID 8a96cf601e57f918e4a617bf3fdd25ea48d7d63b # Parent f28606bb351b6b7094258f7f232ee1adaed24878 Add support for 422P9. For some reason only 9-bit 422 wasn't added before. diff -r f28606bb351b -r 8a96cf601e57 codec-cfg.c --- a/codec-cfg.c Thu Jan 05 20:18:38 2012 +0000 +++ b/codec-cfg.c Thu Jan 05 20:32:10 2012 +0000 @@ -182,6 +182,7 @@ {"444P9", IMGFMT_444P9}, {"422P16", IMGFMT_422P16}, {"422P10", IMGFMT_422P10}, + {"422P9", IMGFMT_422P9}, {"420P16", IMGFMT_420P16}, {"420P10", IMGFMT_420P10}, {"420P9", IMGFMT_420P9}, diff -r f28606bb351b -r 8a96cf601e57 fmt-conversion.c --- a/fmt-conversion.c Thu Jan 05 20:18:38 2012 +0000 +++ b/fmt-conversion.c Thu Jan 05 20:32:10 2012 +0000 @@ -93,6 +93,8 @@ {IMGFMT_422P16_BE, PIX_FMT_YUV422P16BE}, {IMGFMT_422P10_LE, PIX_FMT_YUV422P10LE}, {IMGFMT_422P10_BE, PIX_FMT_YUV422P10BE}, + {IMGFMT_422P9_LE, PIX_FMT_YUV422P9LE}, + {IMGFMT_422P9_BE, PIX_FMT_YUV422P9BE}, {IMGFMT_444P16_LE, PIX_FMT_YUV444P16LE}, {IMGFMT_444P16_BE, PIX_FMT_YUV444P16BE}, {IMGFMT_444P10_LE, PIX_FMT_YUV444P10LE}, diff -r f28606bb351b -r 8a96cf601e57 libmpcodecs/img_format.c --- a/libmpcodecs/img_format.c Thu Jan 05 20:18:38 2012 +0000 +++ b/libmpcodecs/img_format.c Thu Jan 05 20:32:10 2012 +0000 @@ -69,6 +69,8 @@ case IMGFMT_422P16_BE: return "Planar 422P 16-bit big-endian"; case IMGFMT_422P10_LE: return "Planar 422P 10-bit little-endian"; case IMGFMT_422P10_BE: return "Planar 422P 10-bit big-endian"; + case IMGFMT_422P9_LE: return "Planar 422P 9-bit little-endian"; + case IMGFMT_422P9_BE: return "Planar 422P 9-bit big-endian"; case IMGFMT_444P16_LE: return "Planar 444P 16-bit little-endian"; case IMGFMT_444P16_BE: return "Planar 444P 16-bit big-endian"; case IMGFMT_444P10_LE: return "Planar 444P 10-bit little-endian"; diff -r f28606bb351b -r 8a96cf601e57 libmpcodecs/img_format.h --- a/libmpcodecs/img_format.h Thu Jan 05 20:18:38 2012 +0000 +++ b/libmpcodecs/img_format.h Thu Jan 05 20:32:10 2012 +0000 @@ -133,6 +133,8 @@ #define IMGFMT_422P16_BE 0x34323251 #define IMGFMT_422P10_LE 0x52323234 #define IMGFMT_422P10_BE 0x34323252 +#define IMGFMT_422P9_LE 0x53323234 +#define IMGFMT_422P9_BE 0x34323253 #define IMGFMT_420P16_LE 0x51303234 #define IMGFMT_420P16_BE 0x34323051 #define IMGFMT_420P10_LE 0x52303234 @@ -145,6 +147,7 @@ #define IMGFMT_444P9 IMGFMT_444P9_BE #define IMGFMT_422P16 IMGFMT_422P16_BE #define IMGFMT_422P10 IMGFMT_422P10_BE +#define IMGFMT_422P9 IMGFMT_422P9_BE #define IMGFMT_420P16 IMGFMT_420P16_BE #define IMGFMT_420P10 IMGFMT_420P10_BE #define IMGFMT_420P9 IMGFMT_420P9_BE @@ -155,6 +158,7 @@ #define IMGFMT_444P9 IMGFMT_444P9_LE #define IMGFMT_422P16 IMGFMT_422P16_LE #define IMGFMT_422P10 IMGFMT_422P10_LE +#define IMGFMT_422P9 IMGFMT_422P9_LE #define IMGFMT_420P16 IMGFMT_420P16_LE #define IMGFMT_420P10 IMGFMT_420P10_LE #define IMGFMT_420P9 IMGFMT_420P9_LE diff -r f28606bb351b -r 8a96cf601e57 libmpcodecs/mp_image.c --- a/libmpcodecs/mp_image.c Thu Jan 05 20:18:38 2012 +0000 +++ b/libmpcodecs/mp_image.c Thu Jan 05 20:32:10 2012 +0000 @@ -158,6 +158,8 @@ case IMGFMT_422P16_BE: case IMGFMT_422P10_LE: case IMGFMT_422P10_BE: + case IMGFMT_422P9_LE: + case IMGFMT_422P9_BE: case IMGFMT_420P16_LE: case IMGFMT_420P16_BE: case IMGFMT_420P10_LE: diff -r f28606bb351b -r 8a96cf601e57 libmpcodecs/vf_scale.c --- a/libmpcodecs/vf_scale.c Thu Jan 05 20:18:38 2012 +0000 +++ b/libmpcodecs/vf_scale.c Thu Jan 05 20:32:10 2012 +0000 @@ -77,6 +77,8 @@ IMGFMT_422P16_BE, IMGFMT_422P10_LE, IMGFMT_422P10_BE, + IMGFMT_422P9_LE, + IMGFMT_422P9_BE, IMGFMT_YV12, IMGFMT_I420, IMGFMT_420P16_LE, diff -r f28606bb351b -r 8a96cf601e57 m_option.c --- a/m_option.c Thu Jan 05 20:18:38 2012 +0000 +++ b/m_option.c Thu Jan 05 20:32:10 2012 +0000 @@ -1084,6 +1084,8 @@ {"422p16be", IMGFMT_422P16_BE}, {"422p10le", IMGFMT_422P10_LE}, {"422p10be", IMGFMT_422P10_BE}, + {"422p9le", IMGFMT_422P9_LE}, + {"422p9be", IMGFMT_422P9_BE}, {"420p16le", IMGFMT_420P16_LE}, {"420p16be", IMGFMT_420P16_BE}, {"420p10le", IMGFMT_420P10_LE},