Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | RSS feed

  1. /*
  2.  * All Video Processing kernels
  3.  * Copyright © <2010>, Intel Corporation.
  4.  *
  5.  * This program is licensed under the terms and conditions of the
  6.  * Eclipse Public License (EPL), version 1.0.  The full text of the EPL is at
  7.  * http://www.opensource.org/licenses/eclipse-1.0.php.
  8.  *
  9.  */
  10.  
  11. //------------------------------------------------------------------------------
  12. // AVS_SetupSecondBlock.asm
  13. //------------------------------------------------------------------------------
  14.        
  15.     //NLAS calculations for 2nd block of Media Sampler 8x8:
  16.     // X(i) = X0 + dx*i + ddx*i*(i-1)/2   ==>  X(8) = X0 + dx*8 +ddx*28
  17.     // dx(i)= dx(0) + ddx*i               ==>  dx(8)= dx + ddx*8
  18.  
  19.     // Calculating X(8)
  20.     mov (1)   acc0.2<1>:f           fSRC_VID_H_ORI:f                        
  21.     mac (1)   acc0.2<1>:f           fVIDEO_STEP_X:f          8.0:f          
  22.     mac (1)   rAVS_PAYLOAD.2:f      fVIDEO_STEP_DELTA:f      28.0:f                    
  23.    
  24.     // Calculating dx(8)
  25.     mov (1)   acc0.1<1>:f           fVIDEO_STEP_X:f                        
  26.     mac (1)   rAVS_PAYLOAD.1:f      fVIDEO_STEP_DELTA:f      8.0:f
  27.                
  28.