KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
yuv422.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <dc/pvr.h>
#include <dc/maple.h>
#include <dc/maple/controller.h>

Macros

#define PVR_TEXTURE_WIDTH   512
 
#define PVR_TEXTURE_HEIGHT   512
 
#define FRAME_TEXTURE_WIDTH   512
 
#define FRAME_TEXTURE_HEIGHT   512
 
#define BYTE_SIZE_FOR_16x16_BLOCK   512
 

Functions

static int load_image (void)
 
static int setup_pvr (void)
 
static void convert_YUV422_to_YUV422_texture (void)
 
static void show_image (void)
 
static void wait_exit (void)
 
int main (int argc, char *argv[])
 

Variables

static pvr_poly_hdr_t hdr
 
static pvr_vertex_t vert [4]
 
static pvr_ptr_t pvr_txr
 
static uint8_t * y_plane
 
static uint8_t * u_plane
 
static uint8_t * v_plane
 

Macro Definition Documentation

◆ BYTE_SIZE_FOR_16x16_BLOCK

#define BYTE_SIZE_FOR_16x16_BLOCK   512

◆ FRAME_TEXTURE_HEIGHT

#define FRAME_TEXTURE_HEIGHT   512

◆ FRAME_TEXTURE_WIDTH

#define FRAME_TEXTURE_WIDTH   512

◆ PVR_TEXTURE_HEIGHT

#define PVR_TEXTURE_HEIGHT   512

Referenced by setup_pvr().

◆ PVR_TEXTURE_WIDTH

#define PVR_TEXTURE_WIDTH   512

Function Documentation

◆ convert_YUV422_to_YUV422_texture()

static void convert_YUV422_to_YUV422_texture ( void )
static

◆ load_image()

static int load_image ( void )
static

◆ main()

◆ setup_pvr()

◆ show_image()

static void show_image ( void )
static

◆ wait_exit()

static void wait_exit ( void )
static

Variable Documentation

◆ hdr

pvr_poly_hdr_t hdr
static

Referenced by setup_pvr(), and show_image().

◆ pvr_txr

pvr_ptr_t pvr_txr
static

Referenced by main(), and setup_pvr().

◆ u_plane

uint8_t* u_plane
static

◆ v_plane

uint8_t* v_plane
static

◆ vert

pvr_vertex_t vert[4]
static

Referenced by setup_pvr(), and show_image().

◆ y_plane

uint8_t* y_plane
static