/[pcsx2_0.9.7]/trunk/pcsx2/IPU/mpeg2lib/Mpeg.h
ViewVC logotype

Diff of /trunk/pcsx2/IPU/mpeg2lib/Mpeg.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 62 by william, Tue Sep 7 11:08:22 2010 UTC revision 191 by william, Mon Sep 20 05:35:51 2010 UTC
# Line 148  struct decoder_t { Line 148  struct decoder_t {
148          macroblock_rgb32 rgb32;          macroblock_rgb32 rgb32;
149          macroblock_rgb16 rgb16;          macroblock_rgb16 rgb16;
150    
151          uint ipu0_data;          uint ipu0_data;         // amount of data in the output macroblock (in QWC)
152          uint ipu0_idx;          uint ipu0_idx;
153    
154          /* bit parsing stuff */          /* bit parsing stuff */
155          u32 bitstream_buf;              /* current 32 bit working set */          //u32 bitstream_buf;            /* current 32 bit working set */
156          int bitstream_bits;                     /* used bits in working set */          //int bitstream_bits;                   /* used bits in working set */
157    
158          int quantizer_scale;    /* remove */          int quantizer_scale;    /* remove */
159          int dmv_offset;         /* remove */          int dmv_offset;         /* remove */
# Line 230  struct decoder_t { Line 230  struct decoder_t {
230                  ipu0_data -= amt;                  ipu0_data -= amt;
231          }          }
232                    
233          bool ReadIpuData(u128* out);          __fi bool ReadIpuData(u128* out);
234  };  };
235    
236  struct mpeg2_scan_pack  struct mpeg2_scan_pack
# Line 241  struct mpeg2_scan_pack Line 241  struct mpeg2_scan_pack
241          mpeg2_scan_pack();          mpeg2_scan_pack();
242  };  };
243    
244    extern int bitstream_init ();
245    extern u32 UBITS(uint bits);
246    extern s32 SBITS(uint bits);
247    
248  extern void mpeg2_idct_copy(s16 * block, u8* dest, int stride);  extern void mpeg2_idct_copy(s16 * block, u8* dest, int stride);
249  extern void mpeg2_idct_add(int last, s16 * block, s16* dest, int stride);  extern void mpeg2_idct_add(int last, s16 * block, s16* dest, int stride);
250    
# Line 258  extern int get_dmv(); Line 262  extern int get_dmv();
262  extern void ipu_csc(macroblock_8& mb8, macroblock_rgb32& rgb32, int sgn);  extern void ipu_csc(macroblock_8& mb8, macroblock_rgb32& rgb32, int sgn);
263  extern void ipu_dither(const macroblock_rgb32& rgb32, macroblock_rgb16& rgb16, int dte);  extern void ipu_dither(const macroblock_rgb32& rgb32, macroblock_rgb16& rgb16, int dte);
264  extern void ipu_vq(macroblock_rgb16& rgb16, u8* indx4);  extern void ipu_vq(macroblock_rgb16& rgb16, u8* indx4);
 extern void ipu_copy(const macroblock_8& mb8, macroblock_16& mb16);  
265    
266  extern int slice (u8 * buffer);  extern int slice (u8 * buffer);
267    
268  #ifdef _MSC_VER  #ifdef _MSC_VER
269  #define BigEndian(out, in) out = _byteswap_ulong(in)  #define BigEndian(in) _byteswap_ulong(in)
270  #else  #else
271  #define BigEndian(out, in) out = __builtin_bswap32(in) // or we could use the asm function bswap...  #define BigEndian(in) __builtin_bswap32(in) // or we could use the asm function bswap...
272  #endif  #endif
273    
274  #ifdef _MSC_VER  #ifdef _MSC_VER
275  #define BigEndian64(out, in) out = _byteswap_uint64(in)  #define BigEndian64(in) _byteswap_uint64(in)
276  #else  #else
277  #define BigEndian64(out, in) out = __builtin_bswap64(in) // or we could use the asm function bswap...  #define BigEndian64(in) __builtin_bswap64(in) // or we could use the asm function bswap...
278  #endif  #endif
279    
280  extern __aligned16 const mpeg2_scan_pack mpeg2_scan;  extern __aligned16 const mpeg2_scan_pack mpeg2_scan;

Legend:
Removed from v.62  
changed lines
  Added in v.191

  ViewVC Help
Powered by ViewVC 1.1.22