| Electronic Components Datasheet Search |
|
AT32AP7002 Datasheet(PDF) 60 Page - ATMEL Corporation |
|
|
|||||||||||||||||||||||||||||
AT32AP7002 Datasheet(HTML) 60 Page - ATMEL Corporation |
|
60 / 896 page ![]() 60 32054F–AVR32–09/09 AT32AP7002 Syntax: I. picovmul OUTd, INx, INy, INz Operands: I. d ∈ {0, 1, 2, 3} x, y, z ∈ {0, 1, ... , 11} Opcode: Example: /* Excerpt from inner loop of YCrCb 4:2:2 planar format to RGB packed format image color conversion. The coefficients of the transform is already set before this code is executed. In transforms like this, the inputs Y, Cr and Cb are often offsetted with a given amount. This offset can be factored out and included in the offsets like this: 1.164*(Y - 16) = 1.164*Y - 18.625. The pointer to the Y component is in r12, the pointer to the Cr component in r11 and the pointer to the Cb component in r10. The pointer to the RGB output image is in r9. The Input Selection Mode is set to Transform Mode while the Output Insertion Mode is set to Packed Insertion Mode. It is assumed that all the input and output pointers are word aligned. Four RGB triplets are computed in this example. */ ... picold.w INPIX0, r12++ /* INPIX0= { Y[0], Y[1], Y[2], Y[3] }*/ picold.w INPIX1, r11++ /* INPIX1= { Cr[0], Cr[1], Cr[2], Cr[3] }*/ picold.w INPIX2, r10++ /* INPIX2= { Cb[0], Cb[1], Cb[2], Cb[3] }*/ picovmul OUT0, IN0, IN4, IN8 /* OUT0 = r[0], OUT1 = g[0], OUT2 = b[0] */ picovmul OUT1, IN1, IN4, IN8 /* OUT3 = r[1], OUT4 = g[1], OUT5 = b[1] */ picovmul OUT2, IN2, IN5, IN9 /* OUT6 = r[2], OUT7 = g[2], OUT8 = b[2] */ picovmul OUT3, IN3, IN5, IN9 /* OUT9 = r[3], OUT10 = g[3], OUT11 = b[3] */ picostm r9, OUTPIX2, OUTPIX1, OUTPIX0/* RGB = {r[0],g[0],b[0],r[1],g[1],b[1],r[2],g[2],b[2],r[3],g[3],b[3]} */ ... 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 1 1 10 00 01 10 10 00 0 OUT d[1] 15 14 13 12 11 10 98 76 54 32 10 PICO CP# OUT d[0] INx INy INz |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |