Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | RSS feed

  1. /*
  2.  * Save Intra_4x4 decoded Y picture data to frame buffer
  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. #if !defined(__SAVE_4X4_Y__)            // Make sure this is only included once
  11. #define __SAVE_4X4_Y__
  12.  
  13. // Module name: save_4x4_Y.asm
  14. //
  15. // Save Intra_4x4 decoded Y picture data to frame buffer
  16. // Note: Each 4x4 block is stored in 1 GRF register in the order of block raster scan order,
  17. // i.e. 0, 1, 4, 5, 2, 3, 6, 7, 8, 9, 12, 13, 10, 11, 14, 15
  18.  
  19. save_4x4_Y:
  20.  
  21.     mov (1) MSGSRC.2:ud         0x000F000F:ud {NoDDClr}         // Block width and height (16x16)
  22.     mov (2) MSGSRC.0:ud         I_ORIX<2;2,1>:w {NoDDChk}       // X, Y offset
  23. #ifdef DEV_ILK
  24.     add (1)             MSGDSC  MSGDSC MSG_LEN(8)+DWBWMSGDSC_WC-DWBRMSGDSC_RC-0x00200000:ud  // Set message descriptor
  25. #else
  26.     add (1)             MSGDSC  MSGDSC MSG_LEN(8)+DWBWMSGDSC_WC-DWBRMSGDSC_RC-0x00020000:ud  // Set message descriptor
  27. #endif  // DEV_ILK
  28.  
  29.     $for(0; <8; 2) {
  30.         mov (16)        MSGPAYLOAD(%1)<1>               DEC_Y(%1)<16;4,1>
  31.         mov (16)        MSGPAYLOAD(%1,16)<1>    DEC_Y(%1,4)<16;4,1>
  32.         mov (16)        MSGPAYLOAD(%1+1)<1>             DEC_Y(%1,8)<16;4,1>
  33.         mov (16)        MSGPAYLOAD(%1+1,16)<1>  DEC_Y(%1,12)<16;4,1>
  34.     }
  35.  
  36. //  Update message descriptor based on previous read setup
  37. //
  38.     send (8)    REG_WRITE_COMMIT_Y<1>:ud        MSGHDR  MSGSRC<8;8,1>:ud        DAPWRITE        MSGDSC
  39.  
  40.     RETURN
  41. // End of save_4x4_Y
  42.  
  43. #endif  // !defined(__SAVE_4X4_Y__)
  44.