diff mbox

[v1,1/1] xilinx-dp: Add support for the yuy2 video format

Message ID 1498830944-26857-1-git-send-email-edgar.iglesias@gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Edgar E. Iglesias June 30, 2017, 1:55 p.m. UTC
From: "Edgar E. Iglesias" <edgar.iglesias@xilinx.com>

Add support for the yuy2 video format.

Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Acked-by: Sai Pavan Boddu <saipava@xilinx.com>
---
 hw/display/xlnx_dp.c | 3 +++
 1 file changed, 3 insertions(+)

Comments

KONRAD Frederic June 30, 2017, 2:53 p.m. UTC | #1
On 06/30/2017 03:55 PM, Edgar E. Iglesias wrote:
> From: "Edgar E. Iglesias" <edgar.iglesias@xilinx.com>
> 
> Add support for the yuy2 video format.
> 
> Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
> Acked-by: Sai Pavan Boddu <saipava@xilinx.com>
> ---
>   hw/display/xlnx_dp.c | 3 +++
>   1 file changed, 3 insertions(+)
> 
> diff --git a/hw/display/xlnx_dp.c b/hw/display/xlnx_dp.c
> index f7b7b80..a77d7db 100644
> --- a/hw/display/xlnx_dp.c
> +++ b/hw/display/xlnx_dp.c
> @@ -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;
> 

Reviewed-by: KONRAD Frederic <frederic.konrad@adacore.com>

Fred
diff mbox

Patch

diff --git a/hw/display/xlnx_dp.c b/hw/display/xlnx_dp.c
index f7b7b80..a77d7db 100644
--- a/hw/display/xlnx_dp.c
+++ b/hw/display/xlnx_dp.c
@@ -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;