diff --git a/tools/ld-chroma-decoder/outputwriter.cpp b/tools/ld-chroma-decoder/outputwriter.cpp index fb7d7e919..68c0fe81a 100644 --- a/tools/ld-chroma-decoder/outputwriter.cpp +++ b/tools/ld-chroma-decoder/outputwriter.cpp @@ -155,18 +155,19 @@ QByteArray OutputWriter::getStreamHeader() const } // Pixel aspect ratio - // XXX Can this be computed, in case the width has been adjusted? + // Follows EBU R92 and SMPTE RP 187 except that values are scaled from + // BT.601 sampling (13.5 MHz) to 4fSC if (videoParameters.system == PAL) { if (videoParameters.isWidescreen) { - str << " A512:461"; // (16 / 9) * (576 / 922) + str << " A865:779"; // (16 / 9) * (576 / (702 * 4*fSC / 13.5)) } else { - str << " A384:461"; // (4 / 3) * (576 / 922) + str << " A259:311"; // (4 / 3) * (576 / (702 * 4*fSC / 13.5)) } } else { if (videoParameters.isWidescreen) { - str << " A194:171"; // (16 / 9) * (485 / 760) + str << " A25:22"; // (16 / 9) * (480 / (708 * 4*fSC / 13.5)) } else { - str << " A97:114"; // (4 / 3) * (485 / 760) + str << " A352:413"; // (4 / 3) * (480 / (708 * 4*fSC / 13.5)) } }