This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
http_api [2024/04/05 14:20] cflintiii [Overlay] |
http_api [2024/04/05 14:22] cflintiii [Overlay] |
||
---|---|---|---|
Line 1650: | Line 1650: | ||
**Ambarella Specific** \\ | **Ambarella Specific** \\ | ||
**//rgn_idx//** Index to map overlay. The region index value can be in the range of 1 to 16 for the system(not per channel), all channels . Ambarella provides 16 total color look-up tables for Overlay, rgn_idx signifies which color look-up table(CLUT) is in use. | **//rgn_idx//** Index to map overlay. The region index value can be in the range of 1 to 16 for the system(not per channel), all channels . Ambarella provides 16 total color look-up tables for Overlay, rgn_idx signifies which color look-up table(CLUT) is in use. | ||
+ | <code> | ||
+ | TEXT type=text source=”Channel 1” instance=1 rgn_idx=1 | ||
+ | type=text source=”Channel 2” instance=2 rgn_idx=1 | ||
- | TEXT type=text source=”Channel 1” instance=1 rgn_idx=1\\ | + | </code> |
- | type=text source=”Channel 2” instance=2 rgn_idx=1 | + | |
- | The text will be correct on each individual channel as while using the (rgn_idx) at 1\\ | + | The text will be correct on each individual channel as while using the (rgn_idx) at 1\\ |
- | When changing the color of the text on the OVERLAY using the same rgn_idx=1 the last command issued will override both channels, The text will still be different but the color will be the same becasue they are using the same shared rgn_idx | + | When changing the color of the text on the OVERLAY using the same rgn_idx=1 the last command issued will override both channels, the text will still be different but the color will be the same becasue they are using the same shared rgn_idx |
- | PNG type=png source=”/opt/config/images/image.png” instance=1 rgn_idx=2\\ | + | <code> |
- | type=png source=”/opt/config/images/image.png” instance=2 rgn_idx=2 | + | PNG type=png source=”/opt/config/images/image.png” instance=1 rgn_idx=2 |
+ | type=png source=”/opt/config/images/image.png” instance=2 rgn_idx=2 | ||
- | PNG will work in the same way but you would only want to do this for 2 of the same PNGs\\ | + | </code> |
- | Using different PNGs would cause colors to go wonky (CLUT is now different at the rgn_idx) | + | |
+ | PNG will work in the same way but you would only want to do this for 2 of the same PNG\\ | ||
+ | Using different PNGs would cause colors to go wonky (CLUT is now different at the rgn_idx) | ||
This is because we write the entire CLUT at the rgn_idx with each overlay cmd | This is because we write the entire CLUT at the rgn_idx with each overlay cmd |