summaryrefslogtreecommitdiff
path: root/nuttx/graphics
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2008-11-26 15:48:48 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2008-11-26 15:48:48 +0000
commit6cb770cd9199cd3a16a432571e1dcd06fcc51c22 (patch)
tree823701aee66d086d9579b0b9992195077e700690 /nuttx/graphics
parentee438548a33bafc438ec1d1904b6a24b3da20fcf (diff)
downloadpx4-nuttx-6cb770cd9199cd3a16a432571e1dcd06fcc51c22.tar.gz
px4-nuttx-6cb770cd9199cd3a16a432571e1dcd06fcc51c22.tar.bz2
px4-nuttx-6cb770cd9199cd3a16a432571e1dcd06fcc51c22.zip
Added nxglib.h
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1309 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/graphics')
-rw-r--r--nuttx/graphics/nxglib/nxglib_rgb2yuv.c7
-rw-r--r--nuttx/graphics/nxglib/nxglib_yuv2rgb.c7
2 files changed, 8 insertions, 6 deletions
diff --git a/nuttx/graphics/nxglib/nxglib_rgb2yuv.c b/nuttx/graphics/nxglib/nxglib_rgb2yuv.c
index e76cf98c2..fca2082e2 100644
--- a/nuttx/graphics/nxglib/nxglib_rgb2yuv.c
+++ b/nuttx/graphics/nxglib/nxglib_rgb2yuv.c
@@ -41,9 +41,10 @@
#include <sys/types.h>
#include <debug.h>
-
#include <fixedmath.h>
+#include <nuttx/nxglib.h>
+
/****************************************************************************
* Pre-Processor Definitions
****************************************************************************/
@@ -79,7 +80,7 @@
****************************************************************************/
/****************************************************************************
- * Name: nxglib_rgb2yuv
+ * Name: nxgl_rgb2yuv
*
* Description:
* Convert 8-bit RGB triplet to 8-bit YUV triplet
@@ -87,7 +88,7 @@
*
****************************************************************************/
-void nxglib_rgb2yuv(ubyte r, ubyte g, ubyte b, ubyte *y, ubyte *u, ubyte *v)
+void nxgl_rgb2yuv(ubyte r, ubyte g, ubyte b, ubyte *y, ubyte *u, ubyte *v)
{
/* Per the JFIF specification:
*
diff --git a/nuttx/graphics/nxglib/nxglib_yuv2rgb.c b/nuttx/graphics/nxglib/nxglib_yuv2rgb.c
index f39a442b6..18c16dd91 100644
--- a/nuttx/graphics/nxglib/nxglib_yuv2rgb.c
+++ b/nuttx/graphics/nxglib/nxglib_yuv2rgb.c
@@ -41,9 +41,10 @@
#include <sys/types.h>
#include <debug.h>
-
#include <fixedmath.h>
+#include <nuttx/nxglib.h>
+
/****************************************************************************
* Pre-Processor Definitions
****************************************************************************/
@@ -75,7 +76,7 @@
****************************************************************************/
/****************************************************************************
- * Name: nxglib_yuv2rgb
+ * Name: nxgl_yuv2rgb
*
* Description:
* Convert 8-bit RGB triplet to 8-bit YUV triplet
@@ -83,7 +84,7 @@
*
****************************************************************************/
-void nxglib_yuv2rgb(ubyte y, ubyte u, ubyte v, ubyte *r, ubyte *g, ubyte *b)
+void nxgl_yuv2rgb(ubyte y, ubyte u, ubyte v, ubyte *r, ubyte *g, ubyte *b)
{
b16_t vm128 = itob16(v) - b16_128P0;
b16_t um128 = itob16(u) - b16_128P0;