Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Video and Image Processing Suite User Guide Avalon st video.pdf
Скачиваний:
81
Добавлен:
11.06.2015
Размер:
2.64 Mб
Скачать

Color Plane Sequencer IP Core

9

2015.01.23

UG-VIPSUITE

Subscribe

Send Feedback

The Color Plane Sequencer IP core changes how color plane samples are transmitted across the AvalonST interface.

You can configure the channel order in sequence or in parallel. The Color Plane Sequencer IP core rearranges the color pattern used to transmit Avalon-ST Video data packets over an Avalon-ST connection (stream). The Color Plane Sequencer can also split or duplicate a single Avalon-ST Video stream into two or, conversely, combine two input streams into a single stream.

A color pattern is a matrix that defines a repeating pattern of color samples

Combining Color Patterns

The Color Plane Sequencer IP core combines two Avalon-ST Video streams into a single stream.

In this mode of operation, the IP core combines two input color patterns (one for each input stream) and arranges to the output stream color pattern in a user-defined way, as long as it contains a valid combina tion of channels in sequence and parallel.

In addition to this combination and arrangement, color planes can also be dropped. Avalon-ST Video packets other than video data packets can be forwarded to the single output stream with the following options:

Packets from input stream 0 (port din0) and input stream 1 (port din1) forwarded, input stream 0 packets being transmitted last. (The last control packet received is the one an Avalon-ST Video compliant IP core uses.)

Packets from input stream 0 forwarded, packets from input stream 1 dropped.

Packets from input stream 1 forwarded, packets from input stream 0 dropped.

© 2015 Altera Corporation. All rights reserved. ALTERA, ARRIA, CYCLONE, ENPIRION, MAX, MEGACORE, NIOS, QUARTUS and STRATIX words and logos are trademarks of Altera Corporation and registered in the U.S. Patent and Trademark Office and in other countries. All other words and logos identified as trademarks or service marks are the property of their respective holders as described at www.altera.com/common/legal.html. Altera warrants performance of its semiconductor products to current specifications in accordance with Altera's standard warranty, but reserves the right to make changes to any products and services at any time without notice. Altera assumes no responsibility or liability arising out of the application or use of any information, product, or service described herein except as expressly agreed to in writing by Altera. Altera customers are advised to obtain the latest version of device specifications before relying on any published information and before placing orders for products or services.

www.altera.com

ISO 9001:2008 Registered

101 Innovation Drive, San Jose, CA 95134

9-2

Rearranging Color Patterns

UG-VIPSUITE

2015.01.23

 

 

Figure 9-1: Example of Combining Color Patterns

The figure shows an example of combining and rearranging two color patterns.

R G B

Color pattern of a video data packet on input stream 0

3 color plane samples in sequence

X

Y

Z

Color pattern of a video data packet on input stream 1

3 color plane samples in parallel

R X

Y G

Color pattern of a video data packet on the output stream

2 color plane samples in parallel and sequence

Z B

Planes unused between the input and output are dropped

Rearranging Color Patterns

The Color Plane Sequencer IP core can rearrange the color pattern of a video packet and drop color planes.

The Color Plane Sequencer IP core rearranges the color pattern of a video data packet in any valid combination of channels in sequence and parallel. The IP core also drops color planes. Avalon-ST Video packets of types other than video data packets are forwarded unchanged.

Figure 9-2: Example of Rearranging Color Patterns

The figure shows an example that rearranges the color pattern of a video data packet which transmits color planes in sequence to transmit color planes in parallel.

R G B

Color pattern of a video data packet on the input stream

3 color plane samples in sequence

R

G

B

Color pattern of a video data packet on the output stream

3 color plane samples in parallel

Note: When the color pattern of a video data packet changes from the input to the output side of a block, the Color Plane Sequencer IP core adds padding to the end of non-video data packets with extra

Altera Corporation

Color Plane Sequencer IP Core

 

 

Send Feedback

UG-VIPSUITE

Splitting and Duplicating

9-3

2015.01.23

 

 

data. Altera recommends that when you define a packet type where the length is variable and meaningful, you send the length at the start of the packet.

Splitting and Duplicating

The Color Plane Sequencer IP core splits a single Avalon-ST Video input stream into two Avalon-ST Video output streams..

In this mode of operation, the IP core arranges the color patterns of video data packets on the output streams in a user-defined way using any of the color planes of the input color pattern.

The color planes of the input color pattern are available for use on either, both, or neither of the outputs. This allows for splitting of video data packets, duplication of video data packets, or a mix of splitting and duplication. The output color patterns are independent of each other, so the arrangement of one output stream's color pattern places no limitation on the arrangement of the other output stream's color pattern.

The Color Plane Sequencer IP core duplicates Avalon-ST Video packets, other than video data packets, to both outputs.

Figure 9-3: Example of Splitting and Duplicating Color Patterns

The figure shows an example of partially splitting and duplicating an input color pattern.

R G B

Color pattern of a video data packet on input stream 0

3 color plane samples in sequence

X

Y

Z

Color pattern of a video data packet on input stream 1

3 color plane samples in parallel

R X

Y G

Color pattern of a video data packet on the output stream

2 color plane samples in parallel and sequence

Z B

Planes unused between the input and output are dropped

Caution: A deadlock may happen when the sequencer splits, processes independently and then joins back the color planes, or when the sequencer splits the color planes in front of another Video Image Processing IP core. To avoid this issue, add small FIFO buffers at the output of the Color Plane Sequencer IP core that are configured as splitters.

Color Plane Sequencer IP Core

Altera Corporation

 

 

Send Feedback

9-4

Subsampled Data

UG-VIPSUITE

2015.01.23

 

 

Subsampled Data

In addition to fully sampled color patterns, the Color Plane Sequencer IP core also supports 4:2:2 subsampled data.

For the Color Plane Sequencer IP core to support 4:2:2 subsampled data, you can configure the IP core with two color patterns in sequence, so that subsampled planes can be specified individually.

When splitting subsampled planes from fully-sampled planes, the Avalon-ST Video control packet for the subsampled video data packet can have its width value halved, so that the subsampled planes can be processed by other IP cores as if fully sampled. This halving can be applied to control packets on port dout0 and port dout1, or control packets on port dout0 only.

Color Plane Sequencer Parameter Settings

Table 9-1: Color Plane Sequencer Parameter Settings

 

 

Parameter

 

 

Value

 

Description

 

 

 

 

 

 

 

 

 

 

Bits per pixel per color plane

 

4-20, Default = 8

 

Select the number of bits per pixel (per color

 

 

 

 

 

 

 

plane).

 

 

 

 

 

 

 

 

Two pixels per port

 

On or Off

 

Turn on to enable two pixels on each port.

 

 

 

 

 

 

 

 

• Turn on this parameter if you want to

 

 

 

 

 

 

 

 

treat Cb and Cr separately because it

 

 

 

 

 

 

 

 

requires two pixels worth of data.

 

 

 

 

 

 

 

 

• Alternatively, you can turn off this

 

 

 

 

 

 

 

 

parameter and use channel names C, Y

 

 

 

 

 

 

 

 

instead of Cb, Y, Cr, Y.

 

 

 

 

 

 

 

 

 

 

din0: Color planes in sequence

 

1, 2, 3, 4

 

Select the number of color planes in sequence

 

 

 

 

 

 

 

for input port din0.

 

 

 

 

 

 

 

 

din0: Color planes in parallel

 

1, 2, 3, 4

 

Select the number of color planes in parallel

 

 

 

 

 

 

 

 

for input port din0.

 

 

din1: Port enabled

 

On or Off

 

Turn on to enable input port din1.

 

 

 

 

 

 

 

 

 

din1: Color planes in sequence

 

1, 2, 3, 4

 

Select the number of color planes in sequence

 

 

 

 

 

 

 

 

for input port din1.

 

 

din1: Color planes in parallel

 

1, 2, 3, 4

 

Select the number of color planes in parallel

 

 

 

 

 

 

 

 

for input port din1.

 

 

 

 

 

 

 

 

 

dout0: Non-image packet source

 

din 0

 

Select the source port(s) that are enabled for

 

 

 

 

 

din 1

 

non-image packets for output port dout0.

 

 

 

 

 

 

 

 

 

 

 

 

• din 0 and din 1

 

 

 

 

 

 

 

 

 

 

 

 

dout0: Color planes in sequence

 

1, 2, 3, 4

 

Select the number of color planes in sequence

 

 

 

 

 

 

 

for input port dout0.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Altera Corporation

 

 

 

 

 

Color Plane Sequencer IP Core

 

 

 

 

 

 

 

Send Feedback

UG-VIPSUITE

 

 

 

 

Color Plane Sequencer Parameter Settings

9-5

2015.01.23

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Parameter

 

 

Value

 

Description

 

 

 

 

 

 

 

 

 

dout0: Color planes in parallel

 

1, 2, 3, 4

 

Select the number of color planes in parallel

 

 

 

 

 

 

 

for input port dout0.

 

 

dout0: Halve control packet

 

On or Off

 

Turn on to halve the Avalon-ST Video

 

 

width

 

 

 

 

control packet width for output port dout0.

 

 

 

 

 

 

 

Turn on this parameter when stream contains

 

 

 

 

 

 

two subsampled channels.

 

 

 

 

 

 

 

Note: For other IP cores to be able to

 

 

 

 

 

 

 

treat these channels as two fully

 

 

 

 

 

 

 

sampled channels in sequence, the

 

 

 

 

 

 

 

control packet width must be

 

 

 

 

 

 

 

halved.

 

 

 

 

 

 

 

This option can be useful if you want to split

 

 

 

 

 

 

a subsampled color plane from a fully

 

 

 

 

 

 

 

sampled color plane. The subsampled color

 

 

 

 

 

 

 

plane can then be processed by other

 

 

 

 

 

 

 

functions as if fully sampled.

 

 

 

 

 

 

 

 

 

dout1: Port enabled

 

On or Off

 

Turn on to enable input port dout1.

 

 

 

 

 

 

 

 

 

 

dout1: Non-image packet source

 

din 0

 

Select the source port(s) that are enabled for

 

 

 

 

din 1

 

non-image packets for output port dout1.

 

 

 

 

 

 

 

 

 

 

• din 0 and din 1

 

 

 

 

 

 

 

 

 

 

dout1: Color planes in sequence

 

1, 2, 3, 4

 

Select the number of color planes in sequence

 

 

 

 

 

 

for input port dout1.

 

 

dout1: Color planes in parallel

 

1, 2, 3, 4

 

Select the number of color planes in parallel

 

 

 

 

 

 

 

for input port dout1.

 

 

 

 

 

 

 

 

 

dout1: Halve control packet

 

On or Off

 

Turn on to halve the Avalon-ST Video

 

 

width

 

 

 

 

control packet width for output port dout1.

 

 

 

 

 

 

 

This option can be useful if you want to split

 

 

 

 

 

 

a subsampled color plane from a fully

 

 

 

 

 

 

 

sampled color plane. The subsampled color

 

 

 

 

 

 

 

plane can then be processed by other

 

 

 

 

 

 

 

functions as if fully sampled.

 

 

 

 

 

 

 

 

 

Color Plane Sequencer IP Core

Altera Corporation

 

 

Send Feedback

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]