09.11.2012 Views

Video and Image Processing Up Conversion Example Design

Video and Image Processing Up Conversion Example Design

Video and Image Processing Up Conversion Example Design

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Figure 8. Data Stream Adapter Block Diagram<br />

Functional Description<br />

The video up conversion data path performs all of the video processing<br />

required to convert from an NTSC format input to a 1024×768 VGA<br />

output. It is composed entirely of Altera <strong>Video</strong> <strong>and</strong> <strong>Image</strong> <strong>Processing</strong><br />

MegaCore functions <strong>and</strong> is assembled in DSP Builder, where it can be<br />

simulated independently of the rest of the system (see “Simulate the Data<br />

Path Component in DSP Builder” on page 30). The entire data path is<br />

exported from DSP Builder as a single SOPC Builder component, with<br />

st<strong>and</strong>ard Avalon-ST input <strong>and</strong> output interfaces <strong>and</strong> two Avalon-MM<br />

master ports.<br />

The data path makes use of four MegaCore functions connected in<br />

sequence to perform conversion. First a Deinterlacer converts from 60 Hz<br />

interlaced to 30 Hz progressive. Next a Chroma Resampler interpolates to<br />

convert from 4:2:2 subsampled color data to full 4:4:4 color data. This is<br />

followed by a Color Space Converter which transforms between the<br />

YCbCr <strong>and</strong> RGB color spaces. Finally a Scaler scales the 640×480 input<br />

image up to 1024×768 using bicubic interpolation.<br />

Timing <strong>and</strong> Data Format Adapters<br />

The next set of components in the data path is a set of adapters. The video<br />

up conversion subsystem processes an 8-bit wide data stream, one color<br />

plane every sample, but the frame buffer expects a 24-bit wide data<br />

stream, one pixel every sample.<br />

An Avalon-ST Data Format Adapter SOPC Builder block is used to<br />

transform the incoming 1×8-bit stream, into a 3×8-bit stream. The Avalon-<br />

ST Data Format Adapter block is a ready-latency 0 block whereas the rest<br />

of the data path is built with ready-latency 1 components. The Avalon-ST<br />

Data Format Adapter block is therefore connected using two Avalon-ST<br />

Timing Adapter blocks that convert between the ready-latency 1 stream<br />

<strong>and</strong> ready-latency 0 streams as shown in Figure 8.<br />

Ready<br />

Ready<br />

Ready<br />

Ready<br />

Avalon-ST<br />

Avalon-ST<br />

Avalon-ST<br />

Valid<br />

Valid<br />

Valid<br />

Valid<br />

Timing<br />

Data Format<br />

Timing<br />

Data<br />

Data<br />

Data<br />

Data<br />

Adapter<br />

Adapter<br />

Adapter<br />

8 8 24<br />

24<br />

ready-latency 1<br />

rules<br />

ready-latency 0<br />

rules<br />

ready-latency 0<br />

rules<br />

ready-latency 1<br />

rules<br />

Altera Corporation 11<br />

Preliminary

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!