Usage:

yuv_proc.exe [option] [input_file_name] [source_width] [source_height] [out_file_name] [file_type] [numBits] [numFrames]

It accepts 11 input options: <Run yuv_proc without any cmdline options to see full list of supoorted modes>

[file_type] accepts 0 for RGB32 raw file and 1 for YUV444 raw file. For frame packing (all modes), this argument gives the file type of the input file. For frame unpacking (all modes), it give the file type of the output file.

[numBits] can be set to 8 or 10 only. We only support 8-bit or 10-bit content as of now.

Several examples using the software:

YUV444ToRGB32: 
yuv_proc.exe 0 E:\data\sc_cg_twist_tunnel_1280x720_30_8bit_444.yuv 1280 720 e:\tunnel_rgb32.yuv 0
yuv_proc.exe 0 e:\tunnel_unpacked.yuv 1280 720 e:\tunnel_unpacked_rgb32.yuv 0
yuv_proc.exe 0 e:\tunnel_unpacked_bs.yuv 1280 720 e:\tunnel_unpacked_rgb32_bs.yuv 0
RGB32ToYUV444: 
yuv_proc.exe 1 e:\tunnel_rgb32.yuv 1280 720 e:\tunnel_444.yuv 0
FramePacking:
	RGB32 packing:
	yuv_proc.exe 2 e:\tunnel_rgb32.yuv 1280 720 e:\tunnel_packed.yuv 0
	YUV444 packing:
	yuv_proc.exe 2 E:\data\sc_cg_twist_tunnel_1280x720_30_8bit_444.yuv 1280 720 e:\tunnel_packed.yuv 1
FramePackingWithBandSeparation:
	RGB32 packing:
	yuv_proc.exe 3 e:\tunnel_rgb32.yuv 1280 720 e:\tunnel_packed_bs.yuv 0
	YUV444 packing:
	yuv_proc.exe 3 E:\data\sc_cg_twist_tunnel_1280x720_30_8bit_444.yuv 1280 720 e:\tunnel_packed_bs.yuv 1
FrameUnpacking:
	unpacking to RGB32:
	yuv_proc.exe 5 e:\tunnel_packed.yuv 1280 720 e:\tunnel_unpacked.yuv 0
	unpacking to YUV444:
	yuv_proc.exe 5 e:\tunnel_packed.yuv 1280 720 e:\tunnel_unpacked.yuv 1
FrameUnpackingWithBandSeparation:
	unpacking to RGB32:
	yuv_proc.exe 6 e:\tunnel_packed_bs.yuv 1280 720 e:\tunnel_unpacked_bs.yuv 0
	unpacking to YUV444:
	yuv_proc.exe 6 e:\tunnel_packed_bs.yuv 1280 720 e:\tunnel_unpacked_bs.yuv 1
ComputePSNR:
	yuv_proc.exe 11 e:\ref.yuv <wid> <hgt> e:\test.yuv 1
    
* The default color conversion is ITU-R BT.709. If color conversion ITU-R BT.601 is preferred, enable the macro BT601.