I'm thinking about building a RGB to YPbPr converter, and I want to know if it is - at least theoretically - possible to do it with an Arduino, preferably the Uno.
I have a video chip (sitting in an old SEGA Master System) that outputs red, green, blue, sync and composite signals. Could I read these signals into the Arduino, write a sketch to process the conversion math, and then output Y, Pb, Pr?
Would the Arduino be fast enough for this? I know this 'should'/could be done with transistors, op-amps and stuff like that, but can it also be done with the Arduino?
--- From Wikipedia:
YPBPR is converted from the RGB video signal, which is split into three components: Y, PB, and PR.
Y carries luma (brightness or luminance) and synchronization (sync) information. Y = 0.2126 R + 0.7152 G + 0.0722 B Before the advent of color television, the Y axis on an oscilloscope display of a video waveform represented the intensity of the scan line. With color, Y still represents intensity but it is a composite of the component colors.
PB carries the difference between blue and luma (B − Y).
PR carries the difference between red and luma (R − Y).