![](http://datasheet.mmic.net.cn/100000/ID80C32E-L16SHXXX_datasheet_3493627/ID80C32E-L16SHXXX_1102.png)
1102
SAM9X35 [DATASHEET]
11055E–ATARM–10-Mar-2014
46.6.6.1 Chrominance Upsampling Algorithm
1.
Read line n from chrominance cache and interpolate [x/2,0] chrominance component filling the 1 x 2 kernel with
line n. If the chrominance cache is empty, then fetch the first line from external memory and interpolate from the
external memory. Duplicate the last chrominance at the end of line.
2.
Fetch line n+1 from external memory, write line n + 1 to chrominance cache, read line n from the chrominance
cache. interpolate [0,y/2], [x/2,y/2] and [x, y/2] filling the 2x2 kernel with line n and n+1. Duplicate the last chromi-
nance line to generate the last interpolated line.
3.
Repeat step 1 and step 2.
46.6.7 Line and Pixel Striding
The LCD module includes a mechanism to increment the memory address from a programmable amount when the end
of line has been reached, this offset is referred as XSTRIDE and is defined on a per overlay basis. It also contains a
PSTRIDE field that allows a programmable jump at the pixel level. Pixel stride is the value from one pixel to the next.
46.6.7.1 Line Striding
When the end of line has been reached, the DMA address counter points to the next pixel address. The channel DMA
address register is added to the XSTRIDE field, and then updated. If XSTRIDE is set to zero, the DMA address register
remains unchanged. The XSTRIDE field of the channel configuration register is aligned to the pixel size boundary. The
XSTRIDE field is a two’s complement number.
46.6.7.2 Pixel Striding
The DMA channel engine may optionally fetch non contiguous pixels. The channel DMA address register is added to the
PSTRIDE field and then updated. If PSTRIDE is set to zero, the DMA address register remains unchanged and pixels
are contiguous. The PSTRIDE field of the channel configuration register is aligned to the pixel size boundary. The
PSTRIDE is a two’s complement number.
46.6.8 Color Space Conversion Unit
The color space conversion unit converts Luminance Chrominance color space into the Red Green Blue color space.
The conversion matrix is defined below and is fully programmable through the LCD user interface
Color space conversion coefficients are defined with the following equation:
Color space conversion coefficients are defined with one sign bit, 2 integer bits and 7 fractional bits. The range of the
CSC coefficients is defined below with a step of 1/128.
Note:
CSC values for all matrix coefficients.
Additionally a set scaling factor {Yoff, Cboff, Croff} can be applied.
R
G
B
CSCRY CSCRU CSCRV
CSCGY CSCGU CSCGV
CSCBY CSCBU CSCBV
YYoff
–
Cb Cboff
–
Cr Croff
–
=
CSC Note
()
1
2
7
------
2
–
9
c
9
cn 2
n
n
0
=
8
+
=
4
–
CSC Note
()
3.9921875
≤≤