FireBirdLib - Topfield TMS PVR TAP Programming Library
YUV2RGB.c
Go to the documentation of this file.
1
#include "
FBLib_av.h
"
2
#include "
libFireBird.h
"
3
4
void
YUV2RGB
(word yy, word uu, word vv,
byte
*r,
byte
*g,
byte
*b)
5
{
6
TRACEENTER
();
7
8
signed
int
_r,_g,_b;
9
signed
int
y, u, v;
10
11
y = yy;
// - 12;
12
u = (int)uu - 128;
13
v = (int)vv - 128;
14
15
_r =
YUVR
(y,u,v);
16
_g =
YUVG
(y,u,v);
17
_b =
YUVB
(y,u,v);
18
19
*r =
_Clip
(_r);
20
*g =
_Clip
(_g);
21
*b =
_Clip
(_b);
22
23
TRACEEXIT
();
24
}
FBLib_av.h
YUV2RGB
void YUV2RGB(word yy, word uu, word vv, byte *r, byte *g, byte *b)
Definition:
YUV2RGB.c:4
libFireBird.h
YUVB
#define YUVB(y, u, v)
Definition:
libFireBird.h:229
TRACEEXIT
#define TRACEEXIT()
Definition:
libFireBird.h:1244
YUVR
#define YUVR(y, u, v)
Definition:
libFireBird.h:227
TRACEENTER
#define TRACEENTER()
Definition:
libFireBird.h:1243
YUVG
#define YUVG(y, u, v)
Definition:
libFireBird.h:228
_Clip
#define _Clip(a)
Definition:
libFireBird.h:225
av
YUV2RGB.c
Generated on Fri Apr 29 2022 13:34:00 for FireBirdLib - Topfield TMS PVR TAP Programming Library by
1.9.3