User manual
RC200/203 Manual
www.celoxica.com Page 58
• RC200VideoInReadPixelPairRGB() reads a pair of RGB pixels.
•
RC200VideoInReadPixelRGB() reads a single RGB pixel.
Before you use one of these macros you need to:
1. Call
RC200VideoInRun() in parallel with the rest of the video input code.
2. Select the type of video input using
RC200VideoInSetInput(). If you do not
set the input, Composite (CVBS) input will be used as a default
3. Select the colour–encoding standard using
RC200VideoInSetStandard(). If
you do not set the standard PAL/NTSC will be used by default.
5.12.1 Video input management tasks
extern macro proc RC200VideoInRun (ClockRate);
Parameters:
ClockRate: Clock rate of the clock domain of the call to
this macro, in Hz.
Timing: Does not terminate in normal use.
Description:
Runs the device management tasks for video input. You
must run this macro in parallel with accesses to the video
input device.
5.12.2 Selecting the video input
extern macro proc RC200VideoInSetInput (Input);
Parameters: Input: A code selecting the video input. Possible values:
RC200VideoInInputComposite
RC200VideoInInputCamera
RC200VideoInInputSVideo
These codes correspond to the following inputs: Composite
(CVBS) input; Camera input; S-Video input. The default value
is
RC200VideoInInputComposite.
Timing: 1 or more clock cycles.
Description: Selects one of the three video inputs to sample.
5.12.3 Selecting the colour-encoding standard
extern macro proc RC200VideoInSetStandard (Standard);