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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Figure 14. <strong>Video</strong> Source Block<br />

Review <strong>and</strong> Simulate the <strong>Example</strong> <strong>Design</strong><br />

The <strong>Video</strong> Source block extracts video frames from a multimedia file<br />

(vip_car.avi) <strong>and</strong> transmits them using the image streaming protocol<br />

described in the <strong>Video</strong> <strong>and</strong> <strong>Image</strong> <strong>Processing</strong> Suite User Guide.<br />

f For more information on the <strong>Video</strong> Source block, refer to the DSP Builder<br />

Reference Manual.<br />

The <strong>Video</strong> Source block has one input signal <strong>and</strong> two output signals:<br />

■ Input: ready<br />

■ Data output: data<br />

■ Valid output: valid<br />

The block produces valid output data one clock cycle after the ready<br />

input signal is driven high. The valid output signal is driven high when<br />

the clock is valid.<br />

In this example, the <strong>Video</strong> Source block is configured to output 8-bit wide<br />

data in sequence, one color plane every clock cycle, over the data output<br />

port as shown in Figure 15.<br />

Figure 15. YCbCr Format Pixel Data at a 4:2:2 Sampling Rate<br />

Y Cb Y Cr Y Cb Y Cr<br />

1 The file name <strong>and</strong> location of the input file is a parameter of the<br />

<strong>Video</strong> Source block. Before running the simulation, you should<br />

check that the input file vip_car.avi is in the current MATLAB<br />

directory. Alternatively, you can change the Input file name<br />

parameter of the <strong>Video</strong> Source block to the absolute path of the<br />

multimedia file of your choice. The <strong>Video</strong> Source block can<br />

extract video frames from a wide range of multimedia file types,<br />

including still bitmap pictures, provided that the proper codecs<br />

are installed on your system.<br />

Altera Corporation 19<br />

Preliminary

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

Saved successfully!

Ooh no, something went wrong!