YUV Amplifier
This document is still in progress, may contain errors, and is for preview only.


YUV Amplifier applying independent per-channel gain, offset, and inversion across Y/U/V with fade-to-color interpolation.
Overview
Every broadcast facility has a processing amplifier — a "proc amp" — sitting between source and destination, adjusting signal levels so that everything arriving downstream is correctly calibrated. YUV Amplifier brings that same utility to Videomancer, providing independent gain and offset controls for each of the three YUV channels plus per-channel inversion and a fade-to-color output stage.
The architecture is deliberately straightforward: three parallel proc_amp_u instances (one per channel) apply contrast-style gain and brightness-style offset, followed by three interpolator_u instances that fade the processed result toward a selectable target color. The name follows broadcast convention — "proc amp" is standard video engineering shorthand for processing amplifier.
At default settings (all knobs at noon, fader fully up), the signal passes through unchanged. Small adjustments produce the level corrections and color shifts familiar to anyone who has used a hardware TBC or color corrector. Extreme settings push the signal into clipping, inversion, and full-field color washes that go well beyond calibration into creative territory.
Quick Start
- Defaults are transparent: At noon on all knobs and fader fully up, the signal passes through bit-identical. YUV Amplifier is safe to leave in the chain as a calibration point.
- Gain before offset: The proc amp applies gain then offset internally. To achieve a specific target level, set gain first for the desired contrast, then fine-tune offset.
- Fade is not mix: The fader does not crossfade between processed and original — it fades toward a fixed color. For a true dry/wet blend, use a downstream mixer program.
Background
The Processing Amplifier in Broadcast Video
The processing amplifier is one of the oldest and most fundamental tools in video engineering. In analog television, signals degrade as they pass through cables, switchers, and distribution amplifiers — brightness drifts, contrast compresses, color shifts. The proc amp sits at the receiving end and applies corrective gain and offset to bring the signal back into specification. YUV Amplifier implements this concept digitally, operating on the Y, U, and V channels independently with 10-bit precision.
Gain and Offset in the YUV Domain
Each channel's proc_amp_u computes: result = (input − 512) × gain + offset, where gain ranges from 0× to approximately 2× and offset ranges from −512 to +512 counts. The midpoint subtraction centers the multiplication around mid-scale so that gain changes expand or compress the signal symmetrically around 50% rather than scaling from zero. This is identical to the contrast/brightness model used in broadcast color correctors, where "contrast" is gain around the pedestal and "brightness" is a DC offset.
Per-Channel Color Control
Operating on Y, U, and V independently rather than using combined "saturation" and "hue" controls gives full access to the signal structure. Increasing U gain while reducing V gain shifts the color balance toward blue-cyan. Offsetting U and V in opposite directions creates color tints that wouldn't be possible with a single saturation knob. This per-channel approach is more granular than traditional proc amps but also more powerful for creative color manipulation.
Fade-to-Color
The output stage uses three interpolator_u instances to crossfade between the processed signal and a fixed target color. For the Y channel, the target is either black (0) or white (1023), selected by the Fade Color toggle. For U and V, the target is always 512 (neutral chroma), regardless of the Fade Color setting. This means the fade always desaturates toward monochrome, converging on either pure black or pure white. This is distinct from a wet/dry mix — a wet/dry mix would crossfade between the processed and the original signal, whereas fade-to-color crossfades between processed and a fixed color value.
Signal Flow
Y Channel → U Channel → V Channel → Sync Signals → Bypass
Input Video (YUV 4:4:4)
│
├── Y Channel ──────────────────────────────────────────────────
│ ├─ 1. Invert Y (optional bitwise NOT) [1 clk]
│ ├─ 2. Proc Amp Y (gain + offset via proc_amp_u) [9 clk]
│ └─ 3. Fade-to-Color Y (interpolator_u → black/white) [4 clk]
│
├── U Channel ──────────────────────────────────────────────────
│ ├─ 1. Invert U (optional bitwise NOT) [1 clk]
│ ├─ 2. Proc Amp U (gain + offset via proc_amp_u) [9 clk]
│ └─ 3. Fade-to-Color U (interpolator_u → 512) [4 clk]
│
├── V Channel ──────────────────────────────────────────────────
│ ├─ 1. Invert V (optional bitwise NOT) [1 clk]
│ ├─ 2. Proc Amp V (gain + offset via proc_amp_u) [9 clk]
│ └─ 3. Fade-to-Color V (interpolator_u → 512) [4 clk]
│
├── Sync Signals ───────────────────────────────────────────────
│ └─ 14-stage delay (hsync, vsync, field, Y/U/V bypass copy)
│
└── Bypass ─────────────────────────────────────────────────────
└─ Select original (delayed) or processed signal
All three channels are processed in parallel through identical pipelines, but each with independent gain, offset, and inversion settings. The key architectural detail is the fade-to-color stage at the end: the Y interpolator crossfades between the processed Y and a fixed target (0 or 1023), while the U and V interpolators always crossfade toward 512 (neutral chroma). This means lowering the Fade Amount fader simultaneously dims (or brightens) and desaturates the image, converging on a flat monochrome field. The bypass path uses a 14-clock delay line to keep the dry signal time-aligned with the processed result.
Parameter Reference
Videomancer's front panel with YUV Amplifier active. Knobs 1–6 (top two rows of left cluster), Toggle switches 7–11 (bottom row of left cluster), Fader 12 (right side).
Rotary Potentiometers (Knobs 1–6)
Knob 1 — Y Gain
| Property | Value |
|---|---|
| Range | 0.0% – 200.0% |
| Default | 100.1% |
| Suffix | % |
Controls the Y channel gain (contrast). The proc_amp_u centers the input around mid-scale (512) before applying gain, so this control expands or compresses the luminance range symmetrically. At noon (512), gain is unity — no change. Fully counter-clockwise crushes all luminance to a flat field at the offset level. Fully clockwise doubles the contrast, pushing highlights and shadows toward the extremes with hard clipping at 0 and 1023.
Knob 2 — U Gain
| Property | Value |
|---|---|
| Range | 0.0% – 200.0% |
| Default | 100.1% |
| Suffix | % |
Controls the U channel gain. Because U carries blue-yellow color difference information, increasing U gain intensifies blue and yellow components while reducing it desaturates toward the red-cyan axis. At unity (noon), color reproduction is unaltered. At zero, U is crushed to the offset value, effectively killing blue-yellow information.
Knob 3 — V Gain
| Property | Value |
|---|---|
| Range | 0.0% – 200.0% |
| Default | 100.1% |
| Suffix | % |
Controls the V channel gain. V carries the red-cyan color difference, so boosting V gain intensifies reds and cyans. Combined with U gain, these two knobs provide full control over chroma intensity and color axis balance — a more granular alternative to a single saturation control.
Knob 4 — Y Offset
| Property | Value |
|---|---|
| Range | -100.0% – 100.0% |
| Default | 0.1% |
| Suffix | % |
Y channel offset (brightness). Adds a DC shift to the luminance after gain scaling. At noon (512), offset is zero. Counter-clockwise darkens the image by subtracting from all luminance values; clockwise brightens it. When gain is set to zero, this knob alone determines the flat luminance level of the output.
Knob 5 — U Offset
| Property | Value |
|---|---|
| Range | -100.0% – 100.0% |
| Default | 0.1% |
| Suffix | % |
U channel offset. Shifts the U component by a constant amount, producing a global color tint along the blue-yellow axis. Positive offset (clockwise) tints toward blue; negative (counter-clockwise) tints toward yellow. This is useful for deliberate color casts or correcting source material with a blue/yellow imbalance.