1 <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
\r
5 RGB32 (8 bits/serial) to grayscale
\r
7 <category ids="4" />
\r
10 This block does a conversion of an RGB32 pixel (8 bits/serial) into a grayscale value (8 bits).
\r
13 This block does a conversion of an RGB32 pixel into a grayscale value.
\r
14 A RGB32 pixel is composed of 4 components: red, green, blue, transparency, each on 8 bits.
\r
15 They are stored as in little-endian arch. which means that components must enter in the block
\r
16 in the following order : transparency, blue, green, red.
\r
17 The block does a simple average over the three values to obtain a grayscale pixel.
\r
18 It also outputs the transparency component, in case of it should be used after.
\r
28 <input name="clk" type="boolean" width="1" purpose="clock" />
\r
29 <input name="rst" type="boolean" width="1" purpose="reset" />
\r
31 <input name="compo_i" type="natural" width="8" />
\r
32 <control iface="compo_i" />
\r
35 <output name="pix_o" type="natural" width="8" multiplicity="1"/>
\r
36 <output name="transparency_o" type="natural" width="8" multiplicity="1"/>
\r
37 <control iface="pix_o" />
\r
38 <control iface="transparency_o" />
\r