Y/C Fifo Packing; Bt.656 And Y/C Mode Field And Frame Operation; Bit Y/C Fifo Packing - Texas Instruments TMS320DM648 User Manual

Video port/vcxo interpolated control (vic) port
Hide thumbs Also See for TMS320DM648:
Table of Contents

Advertisement

www.ti.com
For the Y/C video capture mode, the FIFO buffer is divided into three sections (three buffers). One section
is 2560 bytes deep and is dedicated for storage of Y data samples. The other two sections are dedicated
for storage of Cb and Cr data samples, respectively. The buffers for Cb and Cr samples are each 1280
bytes deep. The incoming video data stream is separated into Y, Cb, and Cr data streams, scaled (if
selected) and the Y, Cb, and Cr buffers are filled. Each of the three buffers has a memory-mapped
location associated with it; YSRC, CBSRC, and CRSRC. The YSRC, CBSRC, and CRSRC locations are
read only and are used by EDMAs to access video data samples stored in the FIFOs. Reads must always
be 64 bits.
If video capture is enabled, pixels in the capture window are captured in the Y, Cb, and Cr buffers. The
video capture module uses the YEVT, CbEVT, and CrEVT events to notify the EDMA controller to copy
data from the capture buffers to the DSP memory. The number of pixels required to generate the events is
set by the VCTHRLDn bits in VCxCTL (the VCTHRLDn value must be an even number for Y/C mode).
The capture module generates the events after VCTHRLD new pixels have been received. On every
YEVT, the EDMA should move data from the Y buffer to DSP memory using the YSRC register as the
source address. On every CbEVT, the EDMA should move data from the Cb buffer to DSP memory using
the CBSRC register as the source address. On every CrEVT, the EDMA should move data from the Cr
buffer to DSP memory using the CRSRC register as the source address. Note that transfer size from the
Cb and Cr buffers is half of the transfer size from the Y buffer since for every four Y samples, there are
two Cb and two Cr samples.
The three EDMA events are generated simultaneously when VCTHRLD is reached. Each event is
reenabled when the first read of the respective FIFO by the requested EDMA begins.

3.3.4 Y/C FIFO Packing

Captured data is always packed into 64 bits before being written into the capture FIFO(s). By default, data
is packed into the FIFO from right to left.
The 8-bit Y/C mode uses three FIFOs for color separation. Samples are packed into each word as shown
in
Figure
3-3.
VCLKINA
VDIN[9−2]
VDIN[19−12]
63
Y 31
Y 23
Y 15
Y 7
Y FIFO
63
Cb 15
Cb 7
Cb FIFO
63
Cr 15
Cr 7
Cr FIFO
3.4

BT.656 and Y/C Mode Field and Frame Operation

Because EDMAs are used to transfer data from the capture FIFOs to memory, there is a large amount of
flexibility in the way that capture fields and frames are transferred and stored in memory. In some cases,
for example a EDMA structure can be created to provide a set of ping-pong or round-robin memory buffers
SPRUEM1 – May 2007
Submit Documentation Feedback
Figure 3-3. 8-Bit Y/C FIFO Packing
Y 0
Y 1
Y 2
Cb 0
Cr 0
Cb 1
56
55
48 47
40
39
Y 30
Y 29
Y 22
Y 21
Y 14
Y 13
Y 6
Y 5
56
55
48 47
40
39
Cb 14
Cb 13
Cb 6
Cb 5
56
55
48
47
40
39
Cr 14
Cr 13
Cr 6
Cr 5

BT.656 and Y/C Mode Field and Frame Operation

Y 3
Y 4
Y 5
Y 6
Y 7
Cr 1
Cb 2
Cr 2
Cb 3
Cr 3
32 31
24
23
Y 28
Y 27
Y 20
Y 19
Y 12
Y 11
Y 4
Y 3
32 31
24
23
Cb 12
Cb 11
Cb 10
Cb 4
Cb 3
32 31
24
23
Cr 12
Cr 11
Cr 10
Cr 4
Cr 3
Little-Endian Packing
Y 8
Y 9
Y 10
Y 11
Cb 4
Cb 4
Cb 5
Cr 5
16
15
8 7
Y 26
Y 25
Y 24
Y 18
Y 17
Y 16
Y 10
Y 9
Y 8
Y 2
Y 1
Y 0
16
15
8 7
Cb 9
Cb 8
Cb 2
Cb 1
Cb 0
16
15
8
7
Cr 9
Cr 8
Cr 2
Cr 1
Cr 0
Video Capture Port
0
0
0
51

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tms320dm647

Table of Contents