/[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 191 by william, Mon Sep 20 05:35:51 2010 UTC revision 273 by william, Fri Nov 12 01:10:22 2010 UTC
# Line 37  __noinline void memzero_sse_a( T& dest ) Line 37  __noinline void memzero_sse_a( T& dest )
37    
38          float (*destxmm)[4] = (float(*)[4])&dest;          float (*destxmm)[4] = (float(*)[4])&dest;
39    
40  #define StoreDestIdx(idx) case idx: _mm_store_ps(&destxmm[idx][0], zeroreg)  #define StoreDestIdx(idx) case idx: _mm_store_ps(&destxmm[idx-1][0], zeroreg)
41    
42          switch( MZFqwc & 0x07 )          switch( MZFqwc & 0x07 )
43          {          {
# Line 151  struct decoder_t { Line 151  struct decoder_t {
151          uint ipu0_data;         // amount of data in the output macroblock (in QWC)          uint ipu0_data;         // amount of data in the output macroblock (in QWC)
152          uint ipu0_idx;          uint ipu0_idx;
153    
154          /* bit parsing stuff */          int quantizer_scale;
         //u32 bitstream_buf;            /* current 32 bit working set */  
         //int bitstream_bits;                   /* used bits in working set */  
   
         int quantizer_scale;    /* remove */  
         int dmv_offset;         /* remove */  
155    
156          /* now non-slice-specific information */          /* now non-slice-specific information */
157    
# Line 191  struct decoder_t { Line 186  struct decoder_t {
186          int dte;          int dte;
187          // Output Format          // Output Format
188          int ofm;          int ofm;
         // Macroblock count  
         int mbc;  
189          // Macroblock type          // Macroblock type
190          int macroblock_modes;          int macroblock_modes;
191          // DC Reset          // DC Reset
# Line 205  struct decoder_t { Line 198  struct decoder_t {
198          /* the zigzag scan we're supposed to be using, true for alt, false for normal */          /* the zigzag scan we're supposed to be using, true for alt, false for normal */
199          bool scantype;          bool scantype;
200    
         int second_field;  
   
201          int mpeg1;          int mpeg1;
202    
203          template< typename T >          template< typename T >
# Line 225  struct decoder_t { Line 216  struct decoder_t {
216                    
217          void AdvanceIpuDataBy(uint amt)          void AdvanceIpuDataBy(uint amt)
218          {          {
219                  pxAssumeDev(ipu0_data>=amt, "IPU FIFO Overflow on advance!" );                  pxAssumeMsg(ipu0_data>=amt, "IPU FIFO Overflow on advance!" );
220                  ipu0_idx += amt;                  ipu0_idx += amt;
221                  ipu0_data -= amt;                  ipu0_data -= amt;
222          }          }
           
         __fi bool ReadIpuData(u128* out);  
223  };  };
224    
225  struct mpeg2_scan_pack  struct mpeg2_scan_pack
# Line 248  extern s32 SBITS(uint bits); Line 237  extern s32 SBITS(uint bits);
237  extern void mpeg2_idct_copy(s16 * block, u8* dest, int stride);  extern void mpeg2_idct_copy(s16 * block, u8* dest, int stride);
238  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);
239    
 #define IDEC    0  
 #define BDEC    1  
   
240  extern bool mpeg2sliceIDEC();  extern bool mpeg2sliceIDEC();
241  extern bool mpeg2_slice();  extern bool mpeg2_slice();
242  extern int get_macroblock_address_increment();  extern int get_macroblock_address_increment();

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

  ViewVC Help
Powered by ViewVC 1.1.22