Added nxglib.h

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1309 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo
2008-11-26 15:48:48 +00:00
parent 1979ecdbc0
commit 0a9c6e69a3
5 changed files with 85 additions and 10 deletions
+4 -3
View File
@@ -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:
*
+4 -3
View File
@@ -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;