vedio_gr_peach

Fork of GR-PEACH_video by Renesas

Files at this revision

API Documentation at this revision

Comitter:
dkato
Date:
Thu Jun 30 11:00:37 2016 +0000
Parent:
3:e0e475089616
Commit message:
Add ARGB4444 to graphics layer read format.

Changed in this revision

DisplayBace.h Show annotated file Show diff for this revision Revisions of this file
gr_peach_vdc5.c Show annotated file Show diff for this revision Revisions of this file
gr_peach_vdc5.h Show annotated file Show diff for this revision Revisions of this file
--- a/DisplayBace.h	Tue May 24 02:24:47 2016 +0000
+++ b/DisplayBace.h	Thu Jun 30 11:00:37 2016 +0000
@@ -84,7 +84,8 @@
         GRAPHICS_FORMAT_YCBCR422 = 0,      /*!< YCbCr422 (2byte / px)  */
         GRAPHICS_FORMAT_RGB565,            /*!< RGB565   (2byte / px)  */
         GRAPHICS_FORMAT_RGB888,            /*!< RGB888   (4byte / px)  */
-        GRAPHICS_FORMAT_ARGB8888           /*!< ARGB8888 (4byte / px)  */
+        GRAPHICS_FORMAT_ARGB8888,          /*!< ARGB8888 (4byte / px)  */
+        GRAPHICS_FORMAT_ARGB4444           /*!< ARGB4444 (2byte / px)  */
     } graphics_format_t;
 
     /*! @enum video_format_t
--- a/gr_peach_vdc5.c	Tue May 24 02:24:47 2016 +0000
+++ b/gr_peach_vdc5.c	Thu Jun 30 11:00:37 2016 +0000
@@ -828,6 +828,9 @@
             case DRV_GRAPHICS_FORMAT_ARGB8888:
                 vdc5_gr_format = VDC5_GR_FORMAT_ARGB8888;
                 break;
+            case DRV_GRAPHICS_FORMAT_ARGB4444:
+                vdc5_gr_format = VDC5_GR_FORMAT_ARGB4444;
+                break;
             default:
                 drv_error = DRV_GRAPHICS_FORMAT_ERR;
                 break;
--- a/gr_peach_vdc5.h	Tue May 24 02:24:47 2016 +0000
+++ b/gr_peach_vdc5.h	Thu Jun 30 11:00:37 2016 +0000
@@ -103,7 +103,8 @@
     DRV_GRAPHICS_FORMAT_YCBCR422 = 0,   /* YCbCr422                 */
     DRV_GRAPHICS_FORMAT_RGB565,         /* RGB565                   */
     DRV_GRAPHICS_FORMAT_RGB888,         /* RGB888                   */
-    DRV_GRAPHICS_FORMAT_ARGB8888        /* ARGB8888                 */
+    DRV_GRAPHICS_FORMAT_ARGB8888,       /* ARGB8888                 */
+    DRV_GRAPHICS_FORMAT_ARGB4444        /* ARGB4444                 */
 } drv_graphics_format_t;
 
 /* video writing format select */