fsphil / hacktv

Analogue TV transmitter for the HackRF

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

how is hackTV able to generate colorbars by using only one array

veso266 opened this issue · comments

Hi there, this my seam a stupid question, but I was checking the colorbars generation in test.c and noticied that it seams it is able to generate colorbars by using only one array

Don't you need 3 arrays or one matrix with 3 columns (red,green,blue) to put 3 channels into?

I know its in the code, I just cannot figure out how is this done 😄

Thanks for anwsering

The RGB values are packed into a single 24-bit* integer: 0xRRGGBB
Eg. 0xBF0000 is 0xBF for red, 0x00 for green, 0x00 for blue.

  • Technically 32-bit, but the upper 8 bits are not used.