PAL video: Difference between revisions

From NESdev Wiki
Jump to navigationJump to search
(reference thread for the distortion on PAL)
(compare increased color resolution. hue shift description is too simple, letting it fall through into phase distortion description)
Line 6: Line 6:
:The phase of the V subcarrier inverts between each scanline and the next. The color burst is ideally at 135 degrees relative to the [[wikipedia:YUV|UV plane]], not 180. This allows the TV to detect the phase of the V subcarrier by comparing the phase of color burst to that of the previous line. The PAL NES outputs a somewhat nonstandard 120 degree color burst.
:The phase of the V subcarrier inverts between each scanline and the next. The color burst is ideally at 135 degrees relative to the [[wikipedia:YUV|UV plane]], not 180. This allows the TV to detect the phase of the V subcarrier by comparing the phase of color burst to that of the previous line. The PAL NES outputs a somewhat nonstandard 120 degree color burst.
;Higher color subcarrier frequency
;Higher color subcarrier frequency
:Pixels are 5 master clock cycles long (5/6 of a pixel), rather than 4.
:Pixels are 5 master clock cycles long (5/6 of a pixel), rather than 4 (4/6), increasing the chroma resolution slightly.
;50 Hz
;50 Hz
:Each field contains 312 lines, not 262, producing vertical [[Overscan|underscan]] and a pixel aspect ratio close to 1.386:1, which is wider than 1.143:1 of NTSC.
:Each field contains 312 lines, not 262, producing vertical [[Overscan|underscan]] and a pixel aspect ratio close to 1.386:1, which is wider than 1.143:1 of NTSC.
Line 14: Line 14:
:The border, including the area outside the picture, is always black rather than using the background color at $3F00, and it covers the top scanline and the left and right 2 pixels of each remaining scanline.
:The border, including the area outside the picture, is always black rather than using the background color at $3F00, and it covers the top scanline and the left and right 2 pixels of each remaining scanline.
;Hue shift
;Hue shift
:The color hue is shifted by 15 degrees relative to NTSC. (See: [[PPU palettes]])
:The color hue is slightly different relative to NTSC. There is a 15 degree shift due to the color burst effectively using color phase "7.5" instead of 8, but this difference may be mitigated for brighter colors by PAL's cancellation of differential phase distortion effects (see below), which on NTSC appear to cause a similar shift but only for brighter colors.
;Differential phase distortion
;Differential phase distortion
:The output is subject to differential phase distortion like the NTSC PPU, and on individual scanlines the effect may be even more severe on PAL<ref>[//forums.nesdev.org/viewtopic.php?p=133640#p133640 Re: PAL chroma merging?] TheFox observes a ~60° hue difference between even and odd scanlines.</ref>, but because the alternating-line mechanism causes the hue distortion to be opposite on consecutive lines, the color error can cancel out vertically when it's not on isolated rows. (See: [[NTSC video#Color phases|NTSC video: Color phases]])
:The output is subject to differential phase distortion like the NTSC PPU, and on individual scanlines the effect may be even more severe on PAL<ref>[//forums.nesdev.org/viewtopic.php?p=133640#p133640 Re: PAL chroma merging?] TheFox observes a ~60° hue difference between even and odd scanlines.</ref>, but because the alternating-line mechanism causes the hue distortion to be opposite on consecutive lines, the color error can cancel out vertically when it's not on isolated rows. (See: [[NTSC video#Color phases|NTSC video: Color phases]])

Revision as of 23:23, 7 April 2023

The 2C07 PPU in the PAL NES and the 6538 PPU in PAL famiclones generate composite PAL video in much the same way that the 2C02 generates NTSC video: as a square wave between "high" and "low" levels, offset by 0 to 5.5 master clock cycles from the phase of color burst.

PAL NES video has several key differences from NTSC NES video:

Phase Alternating Line
The phase of the V subcarrier inverts between each scanline and the next. The color burst is ideally at 135 degrees relative to the UV plane, not 180. This allows the TV to detect the phase of the V subcarrier by comparing the phase of color burst to that of the previous line. The PAL NES outputs a somewhat nonstandard 120 degree color burst.
Higher color subcarrier frequency
Pixels are 5 master clock cycles long (5/6 of a pixel), rather than 4 (4/6), increasing the chroma resolution slightly.
50 Hz
Each field contains 312 lines, not 262, producing vertical underscan and a pixel aspect ratio close to 1.386:1, which is wider than 1.143:1 of NTSC.
No short line
The dot at the end of pre-render scanline is never skipped. This combined with the fact that 312 is a multiple of 6 causes the chroma dot pattern not to vary from one field to the next, producing dirty stills but OK movement.
Larger border
The border, including the area outside the picture, is always black rather than using the background color at $3F00, and it covers the top scanline and the left and right 2 pixels of each remaining scanline.
Hue shift
The color hue is slightly different relative to NTSC. There is a 15 degree shift due to the color burst effectively using color phase "7.5" instead of 8, but this difference may be mitigated for brighter colors by PAL's cancellation of differential phase distortion effects (see below), which on NTSC appear to cause a similar shift but only for brighter colors.
Differential phase distortion
The output is subject to differential phase distortion like the NTSC PPU, and on individual scanlines the effect may be even more severe on PAL[1], but because the alternating-line mechanism causes the hue distortion to be opposite on consecutive lines, the color error can cancel out vertically when it's not on isolated rows. (See: NTSC video: Color phases)

The 2C07 and 6538 additionally have minor timing differences related to post-render length and OAM refresh; see Clock rate.

There are two different ways that a TV can decode PAL video. The simple way treats PAL as if it were NTSC, modulo the five differences above. If the television signal is subject to phase distortion, this produces an artifact called Hanover bars. The other way is a comb filter: average the received scanline's chroma (U and V channels) with the chroma from the received scanline immediately above it in the same field and use that. This method, invented by an engineer at Telefunken, eliminates Hanover bars at the expense of a 64 microsecond quartz delay line, a royalty payable to Telefunken, and blurred vertical color detail. Less expensive PAL TVs used the simple method and relied on the change in color burst phase over time to cancel out the Hanover bars, though this technique may not be effective with the slightly nonstandard scanline length in the PAL signal from an NES.

Emulator developers planning to simulate PAL video decoding can use a signal captured from a 6538 to test the decoder:

Libraries

See Also

  1. Re: PAL chroma merging? TheFox observes a ~60° hue difference between even and odd scanlines.