Jump to main content

Jump to main menu

Henryk Richter

Details / Features

YUV Player (and converter) for MacOS X

You are here: Homepage » Projects » GLYUVPlay » Details / Features 

Features

  • displays either one or two sequences side-by-side
  • automatic correlation based guessing of width/height and chroma subsampling format for common resolutions (QCIF,SIF,CIF,720p,1080p,..., 4:2:0 8 Bit planar, 4:2:2 8 Bit planar)
  • loading of one-file and multi-file (segmented) sequences, automatic calculation of total frame number
  • loading of SGI file format sequences (8/16 Bit)
  • PSNR calculation, picture match indication (*)
  • SSIM (structural similarity) calculation, similarity map display (*)
  • difference visualization with optional contrast/saturation boost (*)
  • selective display of Y, U, V channels and top/bottom field
  • Macroblock raster display and magnification of highlighted Macroblock for FRAME, FIELD and MBAFF Modes
  • comparison result (PSNR or matching frame) shown in the frame slider
  • export as QuickTime supported movie (MOV,AVI,MP4,...)
  • export as RAW sequence (8/10 bit, 4:2:0, 4:2:2)
  • optional scaling in RAW export
  • copy current image into paste board
  • (*) Only in case that both sequences are of the same size.

Keyboard shortcuts

  • left/right arrow: next/previous frame
  • 'd': sequence difference on/off
  • 'y': Y plane on/off
  • 'u': U plane on/off
  • 'v': V plane on/off
  • 't': top field on/off
  • b': bottom field on/off
  • 'f': fullscreen display on/off
  • '.': options drawer on/off
  • '+': zoom in
  • '-': zoom out
  • 'Page up': 10 frames backward
  • 'Page down': 10 frames forward
  • 'Home': start of sequence
  • 'End': end of sequence
  • 'Mousewheel': zoom in/out
  • '1','2','3': switch display modes between 1:1, fit, zoom

Known bugs and limitations

  • YCbCr4:4:4 support has not been re-implemented yet
  • tagged YUV sequences (YUV4MPEG style) are unsupported
  • True application level file support, drag'n'drop and other OSX specialities are not implemented yet

Notes

The RAW export process is outlined in the export dialog itself.

All internal calculations are in double precision floating point accuracy. The input data is normalized to the range 0..1 (for 8 bit: 0=0.;255=1.) for RGB and luma components and -0.5...0.5 for chroma components, respectively.

If the YCbCr input was defined as having head and footroom, the normalization assigns 0. and 1. to the maximum defined range (16=0.,235=1. in 8 Bit).

RGB to YCbCr color conversion is done using the ITU-R BT.601 or ITU-R BT.709 transfer matrices. Please note that primary color conversion is beyond the scope of this program, hence YCbCr BT.601 to YCbCr BT.709 conversion is not implemented here (and possibly never will be).

Therefore this program assumes the RGB input already consisting of the proper color primaries. After color transform, the resulting YCbCr pixels are clipped and scaled according to the bit depth (n) and presence of head/footroom in the output. The bit depth dependent scaling and clipping ranges with head/footroom are calculated as follows for a bit depth (n) between 8 and 16 bit:

Y = ((220*2^(n-8)-1) * E'Y ) + 2^(n-4) -> equals 16..235 for 8 Bit

Cb=((225*2^(n-8)-1) * E'PB)+ 2^(n-1) -> equals 16..240 for 8 Bit

Cr =((225*2^(n-8)-1) * E'PR)+ 2^(n-1) -> equals 16..240 for 8 Bit

YCbCr chroma subsampling is carried out with a 16 Tap FIR filter (see images.c, coefficients originating from G. Sullivan, roughly estimating a kaiser windowed 4 lobed sinc). The filter is initially executed for horizontal subsampling, afterwards for vertical subsampling. The chroma pel reference position (hence the phase for vertical subsampling filter taps) is tailored to match the 4:2:0 vertical chroma pel position for MPEG-2 onwards.

The color conversion and chroma subsampling process closely matches the workflow in the sgi2yuv and subsampling utilities by Tobias Oelbaum. This way, the sequences generated by the RAW export mode of this utility should be of similar quality, barring minor differences introduced by rounding.

Please note that scaling with respect to interlace input material is not implemented yet.