zjchust / MacYUV

A Simple YUV&RGB viewer powered by MediaFramework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MacYUV

A YUV/RGB raw image player powered by MediaFramework.

Features

  1. Supported YUVs: 420p/422p/444p/nv12/nv21/...
  2. Supported RGBs: RGB565/RGB888/ARGB/RGBA/...
  3. Play multiple raw images in the same file.
  4. Zoom in/output the raw image.
  5. Open a raw image by drag&drop.
  6. Open multiple raw images at the same time.
  7. Convert from YUV to RGB with color matrix.
  8. More features are comming...

Notes

About pixel formats

We use letters to represent pixel format in byte-order instead of word-order both for YUVs and RGBs, which is different from some libraries such as libyuv. Just like 'yuyv' means that Y'0 is the first byte, 'RGBA' means that the red component is the first byte. Therefore you may need to map these formats to your own.

About output format

We always output image frame as RGBA, which uses color converter to achieve it.

Get Started

  1. Open raw image files with extensions yuv/rgb/raw:
    • Double click the file in Finder.
    • Application menu: Open - File.
    • Drag the file into application and drop.
  2. Set the right image format in property box.
  3. Zoom in or out with mouse wheel, reset by mouse right key.
  4. Play multiple raw images in the same file by left/right arrow key.

About

A Simple YUV&RGB viewer powered by MediaFramework

License:BSD 2-Clause "Simplified" License


Languages

Language:C++ 78.5%Language:Swift 13.1%Language:C 8.3%Language:Shell 0.1%