summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/psx/mdec.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/cpu/psx/mdec.h')
-rw-r--r--src/devices/cpu/psx/mdec.h66
1 files changed, 33 insertions, 33 deletions
diff --git a/src/devices/cpu/psx/mdec.h b/src/devices/cpu/psx/mdec.h
index e3065bacb95..7b237a51145 100644
--- a/src/devices/cpu/psx/mdec.h
+++ b/src/devices/cpu/psx/mdec.h
@@ -24,13 +24,13 @@ extern const device_type PSX_MDEC;
class psxmdec_device : public device_t
{
public:
- psxmdec_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
+ psxmdec_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
DECLARE_WRITE32_MEMBER( write );
DECLARE_READ32_MEMBER( read );
- void dma_write( UINT32 *ram, UINT32 n_address, INT32 n_size );
- void dma_read( UINT32 *ram, UINT32 n_address, INT32 n_size );
+ void dma_write( uint32_t *ram, uint32_t n_address, int32_t n_size );
+ void dma_read( uint32_t *ram, uint32_t n_address, int32_t n_size );
protected:
virtual void device_start() override;
@@ -39,38 +39,38 @@ protected:
private:
void mdec_cos_precalc();
- void mdec_idct( INT32 *p_n_src, INT32 *p_n_dst );
- UINT32 mdec_unpack( UINT32 *ram, UINT32 n_address );
- UINT16 mdec_clamp_r5( INT32 n_r ) const;
- UINT16 mdec_clamp_g5( INT32 n_g ) const;
- UINT16 mdec_clamp_b5( INT32 n_b ) const;
- UINT16 mdec_clamp8( INT32 n_r ) const;
+ void mdec_idct( int32_t *p_n_src, int32_t *p_n_dst );
+ uint32_t mdec_unpack( uint32_t *ram, uint32_t n_address );
+ uint16_t mdec_clamp_r5( int32_t n_r ) const;
+ uint16_t mdec_clamp_g5( int32_t n_g ) const;
+ uint16_t mdec_clamp_b5( int32_t n_b ) const;
+ uint16_t mdec_clamp8( int32_t n_r ) const;
void mdec_yuv2_to_rgb15( void );
void mdec_yuv2_to_rgb24( void );
- void mdec_makergb15( UINT32 n_address, INT32 n_r, INT32 n_g, INT32 n_b, INT32 *p_n_y, UINT16 n_stp );
- void mdec_makergb24( UINT32 n_address, INT32 n_r, INT32 n_g, INT32 n_b, INT32 *p_n_y, UINT32 n_stp );
-
- UINT32 n_decoded;
- UINT32 n_offset;
- UINT16 p_n_output[ 24 * 16 ];
-
- INT32 p_n_quantize_y[ DCTSIZE2 ];
- INT32 p_n_quantize_uv[ DCTSIZE2 ];
- INT32 p_n_cos[ DCTSIZE2 ];
- INT32 p_n_cos_precalc[ DCTSIZE2 * DCTSIZE2 ];
-
- UINT32 n_0_command;
- UINT32 n_0_address;
- UINT32 n_0_size;
- UINT32 n_1_command;
- UINT32 n_1_status;
-
- UINT16 p_n_clamp8[ 256 * 3 ];
- UINT16 p_n_r5[ 256 * 3 ];
- UINT16 p_n_g5[ 256 * 3 ];
- UINT16 p_n_b5[ 256 * 3 ];
-
- INT32 m_p_n_unpacked[ DCTSIZE2 * 6 * 2 ];
+ void mdec_makergb15( uint32_t n_address, int32_t n_r, int32_t n_g, int32_t n_b, int32_t *p_n_y, uint16_t n_stp );
+ void mdec_makergb24( uint32_t n_address, int32_t n_r, int32_t n_g, int32_t n_b, int32_t *p_n_y, uint32_t n_stp );
+
+ uint32_t n_decoded;
+ uint32_t n_offset;
+ uint16_t p_n_output[ 24 * 16 ];
+
+ int32_t p_n_quantize_y[ DCTSIZE2 ];
+ int32_t p_n_quantize_uv[ DCTSIZE2 ];
+ int32_t p_n_cos[ DCTSIZE2 ];
+ int32_t p_n_cos_precalc[ DCTSIZE2 * DCTSIZE2 ];
+
+ uint32_t n_0_command;
+ uint32_t n_0_address;
+ uint32_t n_0_size;
+ uint32_t n_1_command;
+ uint32_t n_1_status;
+
+ uint16_t p_n_clamp8[ 256 * 3 ];
+ uint16_t p_n_r5[ 256 * 3 ];
+ uint16_t p_n_g5[ 256 * 3 ];
+ uint16_t p_n_b5[ 256 * 3 ];
+
+ int32_t m_p_n_unpacked[ DCTSIZE2 * 6 * 2 ];
};
#endif