vl: Decode to XRGB, not ARGB.
authorYounes Manton <younes.m@gmail.com>
Sun, 6 Jun 2010 17:31:53 +0000 (13:31 -0400)
committerYounes Manton <younes.m@gmail.com>
Sun, 6 Jun 2010 17:31:53 +0000 (13:31 -0400)
src/gallium/drivers/nvfx/nvfx_video_context.c
src/gallium/drivers/softpipe/sp_video_context.c
src/gallium/include/pipe/p_format.h

index 4e21f35f40d09bf158b7b85911c836c663b17f71..9212ae57fc06b4aebe2c17575e9a0ba42a36d0e0 100644 (file)
@@ -45,5 +45,5 @@ nvfx_video_create(struct pipe_screen *screen, enum pipe_video_profile profile,
                              VL_MPEG12_MC_RENDERER_BUFFER_PICTURE,
                              VL_MPEG12_MC_RENDERER_EMPTY_BLOCK_XFER_ONE,
                              true,
-                             PIPE_FORMAT_VUYA);
+                             PIPE_FORMAT_VUYX);
 }
index 9aec8a8c4fe833fcea8b288d005de0ca825a6457..9d3a1ab5f5b075510bb555aef80a786f279a857c 100644 (file)
@@ -402,7 +402,7 @@ sp_video_create(struct pipe_screen *screen, enum pipe_video_profile profile,
                              VL_MPEG12_MC_RENDERER_BUFFER_PICTURE,
                              VL_MPEG12_MC_RENDERER_EMPTY_BLOCK_XFER_ONE,
                              true,
-                             PIPE_FORMAT_AYUV);
+                             PIPE_FORMAT_XYUV);
 }
 
 struct pipe_video_context *
index 70a768c4e161cecc88eeb712c5286771efee8274..5ca27b3db28a18c87853a36d9c4742f5f21a3c42 100644 (file)
@@ -195,6 +195,8 @@ enum pipe_format {
    PIPE_FORMAT_NV21                  = 140,
    PIPE_FORMAT_AYUV                  = PIPE_FORMAT_A8R8G8B8_UNORM,
    PIPE_FORMAT_VUYA                  = PIPE_FORMAT_B8G8R8A8_UNORM,
+   PIPE_FORMAT_XYUV                  = PIPE_FORMAT_X8R8G8B8_UNORM,
+   PIPE_FORMAT_VUYX                  = PIPE_FORMAT_B8G8R8X8_UNORM,
    PIPE_FORMAT_IA44                  = 141,
    PIPE_FORMAT_AI44                  = 142,
 
@@ -207,6 +209,7 @@ enum pipe_video_chroma_format
    PIPE_VIDEO_CHROMA_FORMAT_422,
    PIPE_VIDEO_CHROMA_FORMAT_444
 };
+
 #ifdef __cplusplus
 }
 #endif