Tachyon (current)  Current Main Branch
Macros | Functions
tgatoyuv.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

Go to the source code of this file.

Macros

#define TGASZ   253440
 
#define YUVSZ   168960
 

Functions

void readtga (char *fname, unsigned char *mem)
 
void writeyuv (char *fname, unsigned char *data)
 
void bgrtoyuv (unsigned char *bgr, unsigned char *yuv)
 
int main (int argc, char **argv)
 

Macro Definition Documentation

◆ TGASZ

#define TGASZ   253440

Definition at line 21 of file tgatoyuv.c.

Referenced by bgrtoyuv(), main(), and readtga().

◆ YUVSZ

#define YUVSZ   168960

Definition at line 22 of file tgatoyuv.c.

Referenced by main(), and writeyuv().

Function Documentation

◆ bgrtoyuv()

void bgrtoyuv ( unsigned char *  bgr,
unsigned char *  yuv 
)

Definition at line 50 of file tgatoyuv.c.

References TGASZ.

Referenced by main().

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 97 of file tgatoyuv.c.

References bgrtoyuv(), readtga(), TGASZ, writeyuv(), and YUVSZ.

◆ readtga()

void readtga ( char *  fname,
unsigned char *  mem 
)

Definition at line 24 of file tgatoyuv.c.

References TGASZ.

Referenced by main().

◆ writeyuv()

void writeyuv ( char *  fname,
unsigned char *  data 
)

Definition at line 40 of file tgatoyuv.c.

References YUVSZ.

Referenced by main().