English
Language : 

SAF7118 Datasheet, PDF (62/173 Pages) NXP Semiconductors – Multistandard video decoder with adaptive comb filter and component video input
Philips Semiconductors
Multistandard video decoder with adaptive
comb filter and component video input
Product specification
SAF7118
8.6.1
SCALER OUTPUT FORMATTER
(SUBADDRESSES 93H AND C3H)
The output formatter organizes the packing into the output
FIFO. The following formats are available:
Y-CB-CR 4 : 2 : 2, Y-CB-CR 4 : 1 : 1, Y-CB-CR 4 : 2 : 0,
Y-CB-CR 4 : 1 : 0 and Y only (e.g. for raw samples). The
formatting is controlled by FSI[2:0] 93H[2:0], FOI[1:0]
93H[4:3] and FYSK[93H[5]].
The data formats are defined on Dwords, or multiples, and
are similar to the video formats as recommended for PCI
multimedia applications (compares to SAA7146A), but
planar formats are not supported.
FSI[2:0] defines the horizontal packing of the data,
FOI[1:0] defines how many Y only lines are expected,
before a Y/C line will be formatted. If FYSK is set to logic 0
preceding Y only lines will be skipped, and the output will
always start with a Y/C line.
Additionally the output formatter limits the amplitude range
of the video data (controlled by ILLV[85H[5]]); see
Table 18.
Table 16 Byte stream for different output formats
OUTPUT FORMAT
Y-CB-CR 4 : 2 : 2
Y-CB-CR 4 : 1 : 1
Y only
BYTE SEQUENCE FOR 8-BIT OUTPUT MODES
CB0 Y0 CR0 Y1 CB2 Y2 CR2 Y3 CB4 Y4 CR4 Y5 CB6 Y6
CB0 Y0 CR0 Y1 CB4 Y2 CR4 Y3 Y4 Y5 Y6 Y7 CB8 Y8
Y0 Y1 Y2 Y3 Y4 Y5 Y6 Y7 Y8 Y9 Y10 Y11 Y12 Y13
Table 17 Explanation to Table 16
NAME
CBn
Yn
CRn
EXPLANATION
CB (B − Y) colour difference component, pixel number n = 0, 2, 4 to 718
Y (luminance) component, pixel number n = 0, 1, 2, 3 to 719
CR (R − Y) colour difference component, pixel number n = 0, 2, 4 to 718
Table 18 Limiting range on I port
LIMIT STEP
ILLV[85H[5]]
0
1
VALID RANGE
DECIMAL VALUE HEXADECIMAL VALUE
1 to 254
8 to 247
01 to FE
08 to F7
SUPPRESSED CODES (HEXADECIMAL VALUE)
LOWER RANGE
UPPER RANGE
00
00 to 07
FF
F8 to FF
8.6.2 VIDEO FIFO (SUBADDRESS 86H)
The video FIFO at the scaler output contains 32 Dwords.
That corresponds to 64 pixels in 16-bit Y-CB-CR 4 : 2 : 2
format. But as the entire scaler can act as a pipeline buffer,
the actual available buffer capacity for the image port is
much higher, and can exceed beyond a video line.
The image port, and the video FIFO, can operate with the
video source clock (synchronous mode) or with an
externally provided clock (asynchronous and burst mode),
as appropriate for the VGA controller or attached frame
buffer.
The video FIFO provides 4 internal flags, reporting to what
extent the FIFO is actually filled.
These are:
• The FIFO Almost Empty (FAE) flag
• The FIFO Combined Flag (FCF) or FIFO filled, which is
set at almost full level and reset, with hysteresis, only
after the level crosses below the almost empty mark
• The FIFO Almost Full (FAF) flag
• The FIFO Overflow (FOVL) flag.
The trigger levels for FAE and FAF are programmable by
FFL[1:0] 86H[3:2] (16, 24, 28, full) and FEL[1:0] 86H[1:0]
(16, 8, 4, empty).
The state of this flag can be seen on the pins IGP0 or
IGP1. The pin mapping is defined by subaddresses
84H and 85H; see Section 9.6.
2004 Jul 22
62