| 1 | #cxx . . $ `<file>/mednafen/video.h`/ifndef __MDFN_VIDEO_H |
| 2 | #define __MDFN_VIDEO_Hcxx . . $ `mednafen/video.h:2:9`! |
| 3 | |
| 4 | #include <stdint.h> |
| 5 | |
| 6 | |
| 7 | #define RED_SHIFT_24cxx . . $ `mednafen/video.h:7:9`! 16 |
| 8 | #define GREEN_SHIFT_24cxx . . $ `mednafen/video.h:8:9`! 8 |
| 9 | #define BLUE_SHIFT_24cxx . . $ `mednafen/video.h:9:9`! 0 |
| 10 | #define ALPHA_SHIFT_24cxx . . $ `mednafen/video.h:10:9`! 24 |
| 11 | #define MAKECOLOR_24cxx . . $ `mednafen/video.h:11:9`!(r, g, b, a) ((r << RED_SHIFT_24) | (g << GREEN_SHIFT_24) | (b << BLUE_SHIFT_24) | (a << ALPHA_SHIFT_24)) |
| 12 | |
| 13 | /* 16bit color - RGB565 */ |
| 14 | #define RED_EXPAND_16cxx . . $ `mednafen/video.h:14:9`! 3 |
| 15 | #define GREEN_EXPAND_16cxx . . $ `mednafen/video.h:15:9`! 2 |
| 16 | #define BLUE_EXPAND_16cxx . . $ `mednafen/video.h:16:9`! 3 |
| 17 | #define RED_SHIFT_16cxx . . $ `mednafen/video.h:17:9`! 11 |
| 18 | #define GREEN_SHIFT_16cxx . . $ `mednafen/video.h:18:9`! 5 |
| 19 | #define BLUE_SHIFT_16cxx . . $ `mednafen/video.h:19:9`! 0 |
| 20 | #define MAKECOLOR_16cxx . . $ `mednafen/video.h:20:9`!(r, g, b, a) (((r >> RED_EXPAND_16) << RED_SHIFT_16) | ((g >> GREEN_EXPAND_16) << GREEN_SHIFT_16) | ((b >> BLUE_EXPAND_16) << BLUE_SHIFT_16)) |
| 21 | |
| 22 | /* 16bit color - RGB555 */ |
| 23 | #define RED_EXPAND_15cxx . . $ `mednafen/video.h:23:9`! 3 |
| 24 | #define GREEN_EXPAND_15cxx . . $ `mednafen/video.h:24:9`! 3 |
| 25 | #define BLUE_EXPAND_15cxx . . $ `mednafen/video.h:25:9`! 3 |
| 26 | #define RED_SHIFT_15cxx . . $ `mednafen/video.h:26:9`! 10 |
| 27 | #define GREEN_SHIFT_15cxx . . $ `mednafen/video.h:27:9`! 5 |
| 28 | #define BLUE_SHIFT_15cxx . . $ `mednafen/video.h:28:9`! 0 |
| 29 | #define MAKECOLOR_15cxx . . $ `mednafen/video.h:29:9`!(r, g, b, a) (((r >> RED_EXPAND_15) << RED_SHIFT_15) | ((g >> GREEN_EXPAND_15) << GREEN_SHIFT_15) | ((b >> BLUE_EXPAND_15) << BLUE_SHIFT_15)) |
| 30 | |
| 31 | /* 16bit color - BGR555 */ |
| 32 | #define BLUE_EXPAND_15_1cxx . . $ `mednafen/video.h:32:9`! 3 |
| 33 | #define GREEN_EXPAND_15_1cxx . . $ `mednafen/video.h:33:9`! 3 |
| 34 | #define RED_EXPAND_15_1cxx . . $ `mednafen/video.h:34:9`! 3 |
| 35 | #define BLUE_SHIFT_15_1cxx . . $ `mednafen/video.h:35:9`! 10 |
| 36 | #define GREEN_SHIFT_15_1cxx . . $ `mednafen/video.h:36:9`! 5 |
| 37 | #define RED_SHIFT_15_1cxx . . $ `mednafen/video.h:37:9`! 0 |
| 38 | #define MAKECOLOR_15_1cxx . . $ `mednafen/video.h:38:9`!(r, g, b, a) (((r >> RED_EXPAND_15_1) << RED_SHIFT_15_1) | ((g >> GREEN_EXPAND_15_1) << GREEN_SHIFT_15_1) | ((b >> BLUE_EXPAND_15_1) << BLUE_SHIFT_15_1)) |
| 39 | |
| 40 | #ifdef __cplusplus |
| 41 | extern "C" { |
| 42 | #endif |
| 43 | |
| 44 | typedef structcxx . . $ $anonymous_type_37d9811fbae164eb_0# |
| 45 | { |
| 46 | int32_tcxx . . $ int32_t# wcxx . . $ $anonymous_type_37d9811fbae164eb_0#w., hcxx . . $ $anonymous_type_37d9811fbae164eb_0#h.; |
| 47 | } MDFN_Rectcxx . . $ MDFN_Rect#; |
| 48 | |
| 49 | typedef structcxx . . $ $anonymous_type_37d9811fbae164eb_1# |
| 50 | { |
| 51 | unsigned int colorspacecxx . . $ $anonymous_type_37d9811fbae164eb_1#colorspace.; |
| 52 | uint8_tcxx . . $ uint8_t# r_shiftcxx . . $ $anonymous_type_37d9811fbae164eb_1#r_shift.; |
| 53 | uint8_tcxx . . $ uint8_t# g_shiftcxx . . $ $anonymous_type_37d9811fbae164eb_1#g_shift.; |
| 54 | uint8_tcxx . . $ uint8_t# b_shiftcxx . . $ $anonymous_type_37d9811fbae164eb_1#b_shift.; |
| 55 | uint8_tcxx . . $ uint8_t# a_shiftcxx . . $ $anonymous_type_37d9811fbae164eb_1#a_shift.; |
| 56 | } MDFN_PixelFormatcxx . . $ MDFN_PixelFormat#; |
| 57 | |
| 58 | typedef structcxx . . $ $anonymous_type_37d9811fbae164eb_2# |
| 59 | { |
| 60 | uint16_tcxx . . $ uint16_t# *pixelscxx . . $ $anonymous_type_37d9811fbae164eb_2#pixels.; |
| 61 | int32_tcxx . . $ int32_t# widthcxx . . $ $anonymous_type_37d9811fbae164eb_2#width.; |
| 62 | int32_tcxx . . $ int32_t# heightcxx . . $ $anonymous_type_37d9811fbae164eb_2#height.; |
| 63 | int32_tcxx . . $ int32_t# pitchcxx . . $ $anonymous_type_37d9811fbae164eb_2#pitch.; |
| 64 | int32_tcxx . . $ int32_t# depthcxx . . $ $anonymous_type_37d9811fbae164eb_2#depth.; |
| 65 | } MDFN_Surfacecxx . . $ MDFN_Surface#; |
| 66 | |
| 67 | #ifdef __cplusplus |
| 68 | } |
| 69 | #endif |
| 70 | |
| 71 | #endif |