summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXiang, Haihao <haihao.xiang@intel.com>2015-10-13 13:45:39 +0800
committerXiang, Haihao <haihao.xiang@intel.com>2015-10-14 13:57:27 +0800
commit4977b0d9df37bec130931f039be4ac434a6ba0be (patch)
tree7b3c2e2c1bf799be80268ce6f1ad0210e6dc937c
parent4618ce1a0ad9542576d03cf3c5cbf17fcc1ef0bf (diff)
downloadlibva-intel-driver-4977b0d9df37bec130931f039be4ac434a6ba0be.tar.gz
Fix YUY2/UYVY info
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
-rw-r--r--src/i965_drv_video.c4
-rw-r--r--src/i965_fourcc.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/i965_drv_video.c b/src/i965_drv_video.c
index cb950e1b..f16fb572 100644
--- a/src/i965_drv_video.c
+++ b/src/i965_drv_video.c
@@ -144,8 +144,8 @@ static int get_sampling_from_fourcc(unsigned int fourcc);
#define I_422H 2, 1, 3, {I965_8BITS, I965_4BITS, I965_4BITS}, 3, { {PLANE_0, OFFSET_0}, {PLANE_1, OFFSET_0}, {PLANE_2, OFFSET_0} }
#define I_422V 1, 2, 3, {I965_8BITS, I965_4BITS, I965_4BITS}, 3, { {PLANE_0, OFFSET_0}, {PLANE_1, OFFSET_0}, {PLANE_2, OFFSET_0} }
#define I_YV16 2, 1, 3, {I965_8BITS, I965_4BITS, I965_4BITS}, 3, { {PLANE_0, OFFSET_0}, {PLANE_2, OFFSET_0}, {PLANE_1, OFFSET_0} }
-#define I_YUY2 2, 1, 1, {I965_32BITS}, 3, { {PLANE_0, OFFSET_0}, {PLANE_0, OFFSET_8}, {PLANE_0, OFFSET_24} }
-#define I_UYVY 2, 1, 1, {I965_32BITS}, 3, { {PLANE_0, OFFSET_0}, {PLANE_0, OFFSET_8}, {PLANE_0, OFFSET_16} }
+#define I_YUY2 2, 1, 1, {I965_16BITS}, 3, { {PLANE_0, OFFSET_0}, {PLANE_0, OFFSET_8}, {PLANE_0, OFFSET_24} }
+#define I_UYVY 2, 1, 1, {I965_16BITS}, 3, { {PLANE_0, OFFSET_8}, {PLANE_0, OFFSET_0}, {PLANE_0, OFFSET_16} }
#define I_444P 1, 1, 3, {I965_8BITS, I965_8BITS, I965_8BITS}, 3, { {PLANE_0, OFFSET_0}, {PLANE_1, OFFSET_0}, {PLANE_2, OFFSET_0} }
diff --git a/src/i965_fourcc.h b/src/i965_fourcc.h
index 3a9f1206..55daf507 100644
--- a/src/i965_fourcc.h
+++ b/src/i965_fourcc.h
@@ -42,7 +42,7 @@
typedef struct {
uint8_t plane; /* the plane which the pixel belongs to */
- uint8_t offset; /* bits offset within a pixel in the plane */
+ uint8_t offset; /* bits offset within a macro-pixel for packed YUV formats or pixel for other formats in the plane */
} i965_component_info;
typedef struct {