1/* 2 * Copyright © 2008 Intel Corporation 3 * 4 * Permission is hereby granted, free of charge, to any person obtaining a 5 * copy of this software and associated documentation files (the "Software"), 6 * to deal in the Software without restriction, including without limitation 7 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 8 * and/or sell copies of the Software, and to permit persons to whom the 9 * Software is furnished to do so, subject to the following conditions: 10 * 11 * The above copyright notice and this permission notice (including the next 12 * paragraph) shall be included in all copies or substantial portions of the 13 * Software. 14 * 15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 18 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 * SOFTWARE. 22 * 23 * Author: 24 * Zou Nan hai <nanhai.zou@intel.com> 25 * Zhang Hua jun <huajun.zhang@intel.com> 26 * Xing Dong sheng <dongsheng.xing@intel.com> 27 * 28 */ 29mov (1) g2.8<1>UD 0x007001FUD {align1}; 30send (16) 0 g98.0<1>UW g2<8,8,1>UW read(input_surface, 2, 0, 2) mlen 1 rlen 8 {align1}; 31add (1) g2.4<1>UD g2.4<1,1,1>UD 8UD {align1}; 32send (16) 0 g106.0<1>UW g2<8,8,1>UW read(input_surface, 2, 0, 2) mlen 1 rlen 8 {align1}; 33 34and (1) g2.24<1>UD g2.0<1,1,1>UD 3UD {align1}; 35mul(1) g2.24<1>UD g2.24<1,1,1>UD 17UD {align1}; 36jmpi g2.24<1,1,1>D; 37 38mov (16) g28.0<1>UW g98.0<16,16,1>UB {align1}; 39mov (16) g29.0<1>UW g99.0<16,16,1>UB {align1}; 40mov (16) g30.0<1>UW g100.0<16,16,1>UB {align1}; 41mov (16) g31.0<1>UW g101.0<16,16,1>UB {align1}; 42mov (16) g32.0<1>UW g102.0<16,16,1>UB {align1}; 43mov (16) g33.0<1>UW g103.0<16,16,1>UB {align1}; 44mov (16) g34.0<1>UW g104.0<16,16,1>UB {align1}; 45mov (16) g35.0<1>UW g105.0<16,16,1>UB {align1}; 46mov (16) g36.0<1>UW g106.0<16,16,1>UB {align1}; 47mov (16) g37.0<1>UW g107.0<16,16,1>UB {align1}; 48mov (16) g38.0<1>UW g108.0<16,16,1>UB {align1}; 49mov (16) g39.0<1>UW g109.0<16,16,1>UB {align1}; 50mov (16) g40.0<1>UW g110.0<16,16,1>UB {align1}; 51mov (16) g41.0<1>UW g111.0<16,16,1>UB {align1}; 52mov (16) g42.0<1>UW g112.0<16,16,1>UB {align1}; 53mov (16) g43.0<1>UW g113.0<16,16,1>UB {align1}; 54jmpi out; 55 56mov (16) g28.0<1>UW g98.1<16,16,1>UB {align1}; 57mov (16) g29.0<1>UW g99.1<16,16,1>UB {align1}; 58mov (16) g30.0<1>UW g100.1<16,16,1>UB {align1}; 59mov (16) g31.0<1>UW g101.1<16,16,1>UB {align1}; 60mov (16) g32.0<1>UW g102.1<16,16,1>UB {align1}; 61mov (16) g33.0<1>UW g103.1<16,16,1>UB {align1}; 62mov (16) g34.0<1>UW g104.1<16,16,1>UB {align1}; 63mov (16) g35.0<1>UW g105.1<16,16,1>UB {align1}; 64mov (16) g36.0<1>UW g106.1<16,16,1>UB {align1}; 65mov (16) g37.0<1>UW g107.1<16,16,1>UB {align1}; 66mov (16) g38.0<1>UW g108.1<16,16,1>UB {align1}; 67mov (16) g39.0<1>UW g109.1<16,16,1>UB {align1}; 68mov (16) g40.0<1>UW g110.1<16,16,1>UB {align1}; 69mov (16) g41.0<1>UW g111.1<16,16,1>UB {align1}; 70mov (16) g42.0<1>UW g112.1<16,16,1>UB {align1}; 71mov (16) g43.0<1>UW g113.1<16,16,1>UB {align1}; 72jmpi out; 73 74mov (16) g28.0<1>UW g98.2<16,16,1>UB {align1}; 75mov (16) g29.0<1>UW g99.2<16,16,1>UB {align1}; 76mov (16) g30.0<1>UW g100.2<16,16,1>UB {align1}; 77mov (16) g31.0<1>UW g101.2<16,16,1>UB {align1}; 78mov (16) g32.0<1>UW g102.2<16,16,1>UB {align1}; 79mov (16) g33.0<1>UW g103.2<16,16,1>UB {align1}; 80mov (16) g34.0<1>UW g104.2<16,16,1>UB {align1}; 81mov (16) g35.0<1>UW g105.2<16,16,1>UB {align1}; 82mov (16) g36.0<1>UW g106.2<16,16,1>UB {align1}; 83mov (16) g37.0<1>UW g107.2<16,16,1>UB {align1}; 84mov (16) g38.0<1>UW g108.2<16,16,1>UB {align1}; 85mov (16) g39.0<1>UW g109.2<16,16,1>UB {align1}; 86mov (16) g40.0<1>UW g110.2<16,16,1>UB {align1}; 87mov (16) g41.0<1>UW g111.2<16,16,1>UB {align1}; 88mov (16) g42.0<1>UW g112.2<16,16,1>UB {align1}; 89mov (16) g43.0<1>UW g113.2<16,16,1>UB {align1}; 90jmpi out; 91 92mov (16) g28.0<1>UW g98.3<16,16,1>UB {align1}; 93mov (16) g29.0<1>UW g99.3<16,16,1>UB {align1}; 94mov (16) g30.0<1>UW g100.3<16,16,1>UB {align1}; 95mov (16) g31.0<1>UW g101.3<16,16,1>UB {align1}; 96mov (16) g32.0<1>UW g102.3<16,16,1>UB {align1}; 97mov (16) g33.0<1>UW g103.3<16,16,1>UB {align1}; 98mov (16) g34.0<1>UW g104.3<16,16,1>UB {align1}; 99mov (16) g35.0<1>UW g105.3<16,16,1>UB {align1}; 100mov (16) g36.0<1>UW g106.3<16,16,1>UB {align1}; 101mov (16) g37.0<1>UW g107.3<16,16,1>UB {align1}; 102mov (16) g38.0<1>UW g108.3<16,16,1>UB {align1}; 103mov (16) g39.0<1>UW g109.3<16,16,1>UB {align1}; 104mov (16) g40.0<1>UW g110.3<16,16,1>UB {align1}; 105mov (16) g41.0<1>UW g111.3<16,16,1>UB {align1}; 106mov (16) g42.0<1>UW g112.3<16,16,1>UB {align1}; 107mov (16) g43.0<1>UW g113.3<16,16,1>UB {align1}; 108 109out: 110