mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 16:50:55 +08:00
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:
@@ -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:
|
||||
*
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user