about summary refs log tree commit diff
path: root/test/yuv-roundtrip.test
blob: 68f459e81699ed21cd2736c9bcb35a5e3b0b8fc9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
#! /bin/sh
# This script tests: ppmtoyuv yuvtoppm
# Also requires: pamgradient


# Should produce 1904478375 253455

pamgradient rgb:00/ff/ff rgb:ff/ff/00 \
                            rgb:ff/00/00 rgb:00/ff/00 352 240 | \
    ppmtoyuv | yuvtoppm 352 240 | cksum