|
KallistiOS git master
Independent SDK for the Sega Dreamcast
|
#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 |
| #define BYTE_SIZE_FOR_16x16_BLOCK 512 |
Referenced by convert_YUV422_to_YUV422_texture().
| #define FRAME_TEXTURE_HEIGHT 512 |
Referenced by convert_YUV422_to_YUV422_texture(), load_image(), and setup_pvr().
| #define FRAME_TEXTURE_WIDTH 512 |
Referenced by convert_YUV422_to_YUV422_texture(), load_image(), and setup_pvr().
| #define PVR_TEXTURE_HEIGHT 512 |
Referenced by setup_pvr().
| #define PVR_TEXTURE_WIDTH 512 |
Referenced by convert_YUV422_to_YUV422_texture(), and setup_pvr().
|
static |
References BYTE_SIZE_FOR_16x16_BLOCK, FRAME_TEXTURE_HEIGHT, FRAME_TEXTURE_WIDTH, PVR_DMA_YUV, pvr_sq_load(), pvr_sq_set32(), PVR_TA_YUV_CONV, PVR_TEXTURE_WIDTH, u_plane, v_plane, and y_plane.
Referenced by main().
|
static |
References aligned_alloc(), FRAME_TEXTURE_HEIGHT, FRAME_TEXTURE_WIDTH, free(), NULL, printf, u_plane, v_plane, and y_plane.
Referenced by main().
| int main | ( | int | argc, |
| char * | argv[] ) |
References convert_YUV422_to_YUV422_texture(), free(), load_image(), pvr_init_defaults(), pvr_mem_free(), pvr_txr, setup_pvr(), show_image(), u_plane, v_plane, wait_exit(), and y_plane.
|
static |
References pvr_vertex_t::argb, cxt, pvr_vertex_t::flags, FRAME_TEXTURE_HEIGHT, FRAME_TEXTURE_WIDTH, hdr, pvr_vertex_t::oargb, printf, PVR_CMD_VERTEX, PVR_CMD_VERTEX_EOL, PVR_FILTER_BILINEAR, PVR_GET, PVR_LIST_OP_POLY, pvr_mem_malloc(), PVR_PACK_COLOR, pvr_poly_compile(), pvr_poly_cxt_txr(), PVR_SET, PVR_TEXTURE_HEIGHT, PVR_TEXTURE_WIDTH, pvr_txr, PVR_TXRFMT_NONTWIDDLED, PVR_TXRFMT_YUV422, PVR_YUV_ADDR, PVR_YUV_CFG, pvr_vertex_t::u, pvr_vertex_t::v, vert, pvr_vertex_t::x, pvr_vertex_t::y, and pvr_vertex_t::z.
Referenced by main().
|
static |
References hdr, pvr_list_begin(), pvr_list_finish(), PVR_LIST_OP_POLY, pvr_prim(), pvr_scene_begin(), pvr_scene_finish(), pvr_wait_ready(), and vert.
Referenced by main().
|
static |
References cont_state_t::buttons, maple_dev_status(), maple_enum_type(), MAPLE_FUNC_CONTROLLER, and printf.
Referenced by main().
|
static |
Referenced by setup_pvr(), and show_image().
|
static |
Referenced by main(), and setup_pvr().
|
static |
Referenced by convert_YUV422_to_YUV422_texture(), load_image(), and main().
|
static |
Referenced by convert_YUV422_to_YUV422_texture(), load_image(), and main().
|
static |
Referenced by setup_pvr(), and show_image().
|
static |
Referenced by convert_YUV422_to_YUV422_texture(), load_image(), and main().