changeset 34436:8a96cf601e57

Add support for 422P9. For some reason only 9-bit 422 wasn't added before.
author reimar
date Thu, 05 Jan 2012 20:32:10 +0000
parents f28606bb351b
children 09383e5dd712
files codec-cfg.c fmt-conversion.c libmpcodecs/img_format.c libmpcodecs/img_format.h libmpcodecs/mp_image.c libmpcodecs/vf_scale.c m_option.c
diffstat 7 files changed, 15 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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},
--- 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},
--- 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";
--- 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
--- 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:
--- 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,
--- 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},