diff options
| author | SND\gschwind_cp <SND\gschwind_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2010-12-07 16:07:53 +0000 |
|---|---|---|
| committer | SND\gschwind_cp <SND\gschwind_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2010-12-07 16:07:53 +0000 |
| commit | f03cd2c04ac944d672444a6562d8f1593264a794 (patch) | |
| tree | 210489249db84419f8f5a23473877262913c4bfa /plugins/gxvideo/gpu_utils.h | |
| parent | 2461ae5676a3898492c3d87b07f495a37f829c2a (diff) | |
| download | pcsxr-f03cd2c04ac944d672444a6562d8f1593264a794.tar.gz | |
first commit of gxvideo plugin (fork of dfxvideo)
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@60768 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'plugins/gxvideo/gpu_utils.h')
| -rw-r--r-- | plugins/gxvideo/gpu_utils.h | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/plugins/gxvideo/gpu_utils.h b/plugins/gxvideo/gpu_utils.h new file mode 100644 index 00000000..471cc9a5 --- /dev/null +++ b/plugins/gxvideo/gpu_utils.h @@ -0,0 +1,76 @@ +/* + * Copyright (C) 2010 Benoit Gschwind + * Inspired by original author : Pete Bernert + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA + * 02111-1307, USA. + */ + +#ifndef GPU_UTILS_H_ +#define GPU_UTILS_H_ + +#include <stdint.h> + +typedef struct { + uint16_t rgb16; +} __attribute__((__packed__)) gxv_rgb16; + +typedef struct { + uint8_t r; + uint8_t g; + uint8_t b; +} __attribute__((__packed__)) gxv_rgb24; + +/* for fast recast ^^ */ +typedef union { + uint8_t * u8; + int8_t * s8; + uint16_t * u16; + int16_t * s16; + uint32_t * u32; + int32_t * s32; + gxv_rgb16 * rgb16; + gxv_rgb24 * rgb24; +} gxv_pointer_t; + +typedef struct { + int32_t x; + int32_t y; +} gxv_point_t; + +typedef struct { + int16_t x; + int16_t y; +} gxv_spoint_t; + +typedef struct { + int16_t x0; + int16_t x1; + int16_t y0; + int16_t y1; +} gxv_rect_t; + +typedef struct { + gxv_point_t position; + gxv_point_t mode; + gxv_point_t DrawOffset; + gxv_rect_t range; +} gxv_display_t; + +typedef struct { + gxv_rect_t Position; +} gxv_win_t; + +#endif /* GPU_UTILS_H_ */ |
