imageprocessingonthetms320c6xvliwdsp内容摘要:

, zero fill || LDBU .D2 *B6[B2],B6。 load x(n1m1,n2m2) || MPYU .M1X A6,B6,A3。 A3=a(m1,m2) x(n1m1,n2m2) || ADD .L1 A3,A4,A4。 y(n1,n2) += A3 || B2,B7,B1。 need to go to next row? || ADD .S2 B2,1,B2。 incr offset into image [!B1] ADD .L2 B2,B9,B2。 move offset to next row ||[A2] SUB .S1 A2,1,A2。 decrement loop counter ||[A2] B .S2 fir2。 if A2 != 0, then branch。 A4=y(n1,n2) 10 2D FIR Implementation 3 on C6x。 registers: A5=amp。 a(0,0) B5=amp。 x(n1,n2) A2=M B7=M2 B8=N2 fir2d3 ZERO .D1 A4。 initialize accumulator 1 || SUB .D2 B8,B7,B9。 index offset between rows || ZERO .L2 B2。 offset into image data || MVKH .S1 0xFF,A8。 mask to get lowest 8 bits || SHR .S2 B7,1,B7。 divide by 2: 16bit address ZERO .D2 B4。 initialize accumulator 2 || ZERO .L1 A6。 current coefficient value || ZERO .L2 B6。 current image value || SHR .S1 A2,1,A2。 divide by 2: 16bit address || SHR .S2 B9,1,B9。 divide by 2: 16bit address Initialization 11 2D FIR Implementation 3 on C6x (cont.) fir3 LDHU .D1 *A5++,A6。 load a(m1,m2) a(m1+1,m2+1) || LDHU .D2 *B6[B2],B6。 load two pixels of image x || B2,B7,B1。 need to go to next row? || ADD .S2 B2,1,B2。 incr offset into image AND .L1 A6,A8,A6。 extract a(m1,m2) || AND .L2 B6,A8,B6。 extract x(n1m1,n2m2) || EXTU .S1 A6,0,8,A9。 extract a(m1+1,m2+1) || EXTU .S2 B6,0,8,B9。 extract x(n1m1+1,n2m2+1) MPYHU .M1X A6,B6,A3。 A3=a(m1,m2) x(n1m1,n2m2) || MPYHU .M2X A9,B9,B3。 B3=a*x offset by 1 index || ADD .L1 A3,A4,A4。 y(n1,n2) += A3 || ADD .L2 B3,B4,B4。 y(n1+1,n2+1) += B3 ||[!B1]ADD .D2 B2,B9,B2。 move offset to next row ||[A2] SUB .S1 A2,1,A2。 decrement loop counter ||[A2] B .S2 fir3。 if A2 != 0, then branch。 A4=y(n1,n2) and B4=y(n1+1,n2+1) Main Loop 12 JPEG  Encoder  Breaks image into 8 x 8 blocks  Computes DCT on each block  Quantizes DCT coefficients  Huffman encoding of coefficie。
阅读剩余 0%
本站所有文章资讯、展示的图片素材等内容均为注册用户上传(部分报媒/平媒内容转载自网络合作媒体),仅供学习参考。 用户通过本站上传、发布的任何内容的知识产权归属用户或原始著作权人所有。如有侵犯您的版权,请联系我们反馈本站将在三个工作日内改正。