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