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. // Module name: PL16x8_PL8x4.asm
  12. //----------------------------------------------------------------
  13.  
  14. #include "common.inc"
  15.  
  16. #ifndef DEST_U  //DEST_U, DEST_V not defined
  17.  
  18.         #if (nSRC_REGION==nREGION_1)
  19.                 #define DEST_Y          uwTOP_Y
  20.                 #define DEST_U          uwTOP_U
  21.                 #define DEST_V          uwTOP_V
  22.         #elif (nSRC_REGION==nREGION_2)
  23.                 #define DEST_Y          uwBOT_Y
  24.                 #define DEST_U          uwBOT_U
  25.                 #define DEST_V          uwBOT_V
  26.         #endif
  27.        
  28. #endif
  29.  
  30. //Convert 444 from sampler to 422
  31. $for (0, 0; <8; 2, 1) {
  32.         mov     (8)     DEST_U(0,%2*8)<1>       DEST_U(%1)<16;8,2>
  33.         mov     (8)     DEST_V(0,%2*8)<1>       DEST_V(%1)<16;8,2>     
  34. }
  35.  
  36. // Re-define new number of lines
  37. #undef nUV_NUM_OF_ROWS
  38. #define nUV_NUM_OF_ROWS     4
  39.