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