Skip to contentSkip to conversation

xilinx-dp: Add support for the yuy2 video format

PATCH In review Edgar E. Iglesias 2 participants 2 messages Jun 30, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xilinx-dp: Add support for the yuy2 video format

From: "Edgar E. Iglesias" <[email protected]>

Add support for the yuy2 video format.

---
 hw/display/xlnx_dp.c | 3 +++
 1 file changed, 3 insertions(+)
hw/display/xlnx_dp.c +3 -0
index f7b7b80..a77d7db 100644
@@ -624,6 +624,9 @@ static void xlnx_dp_change_graphic_fmt(XlnxDPState *s)
     case 0:
         s->v_plane.format = PIXMAN_x8b8g8r8;
         break;
+    case DP_NL_VID_Y0_CB_Y1_CR:
+        s->v_plane.format = PIXMAN_yuy2;
+        break;
     case DP_NL_VID_RGBA8880:
         s->v_plane.format = PIXMAN_x8b8g8r8;
         break;
Signature · 1 line
2.7.4
Reviewed-by on v1 1/1
#1 lore raw
Quoted 16 lines · Edgar E. Iglesias

From: "Edgar E. Iglesias" <[email protected]>

Add support for the yuy2 video format.

---
  hw/display/xlnx_dp.c | 3 +++
  1 file changed, 3 insertions(+)
hw/display/xlnx_dp.c +0 -0
index f7b7b80..a77d7db 100644

hw/display/xlnx_dp.c static void xlnx_dp_change_graphic_fmt(XlnxDPState *s) · line 632

Quoted 9 lines
hw/display/xlnx_dp.c +3 -0
@@ -624,6 +624,9 @@ static void xlnx_dp_change_graphic_fmt(XlnxDPState *s)
      case 0:
          s->v_plane.format = PIXMAN_x8b8g8r8;
          break;
+    case DP_NL_VID_Y0_CB_Y1_CR:
+        s->v_plane.format = PIXMAN_yuy2;
+        break;
      case DP_NL_VID_RGBA8880:
          s->v_plane.format = PIXMAN_x8b8g8r8;
          break;

Fred