UCI (Ultra Compact Image) 由 dwing编写,是一种基H.264/HEVC intra帧压缩算法和数据流格式的静态图像封装格式.而且不受图像宽高的一些限制,支持alpha透明通道等特性,与JPEG,JPEG2000,HD-Photo等静态图像压缩算法相比具有更高的压缩效率.
目前公开的命令行工具暂时只支持24/32位BMP与UCI格式的相互转换,编码工具只支持x264/x265作为编码内核,解码内核使用FFmpeg中的libavcodec解码器.
uci0525.7z下载:https://pan.baidu.com/s/1vN6Aq uci0601.7z(支持x265编码)下载:https://pan.baidu.com/s/1dFusajv
文件内容: ucienc.exe — 编码工具,支持BMP=>UCI的转换(需要在当前目录能够访问到x264.exe作为编码内核,可在x264.nl网站上下载到最新版本) ucidec.exe — 解码工具,支持UCI=>BMP的转换(需要ucidec.dll内核) ucidec.dll — 解码内核,可用于二次开发。改名为Xuci.usr并放入XnView的Plugins目录中即可作为XnView读取UCI图像的插件 imgdec.exe — 转换工具,支持BMP,TGA,PNG,JPG,GIF,TIF,PCX,PNM, JP2,JPC=>24/32-bitBMP的转换,内嵌CxImage图像库
UCI使用的两个例子: Eg1.
imgdec “work\076.png” -| ucienc - -o “work\076s.uci” -x “–crf 18.0 -b 0 -r 0 –subme 11 –me umh –no-mbtree -t 2 –aq-mode 2 –no-psy” -s
Eg2.
imgdec “work\076.png” -| ucienc - -o “work\076qQ.uci” -q 10.0 -Q 10.0
命令行详细内容: UCI (Ultra Compact Image) Encoder 0.525 [by dwing] 2013-06-21 Usage: ucienc <src_file.bmp> [options] Options:
-o set output file name, default: .uci -q set quality of RGB/YUV channel compression[0.0 ~ 51.0] (best ~ worst) default: 27 -Q set quality of alpha channel compression[0.0 ~ 51.0] (best ~ worst) default: same as -q -x “……” use custom detail x264 options for RGB/YUV channel,ignore -q/-Q, use carefully -X “……” use custom detail x264 options for alpha channel,ignore -q/-Q, use carefully, default: same as -x -p set x264 program file name, default: x264.exe -s encode by YUV 4:4:4, default YUV 4:2:0 -o420 set output format in YUV 4:2:0 (ignore alpha channel) -o444 set output format in YUV 4:4:4 (ignore alpha channel) -o10b set output format in YUV 10-bit, default: 8-bit -i420 set input format in YUV 4:2:0, ignore -s,-o420,-o444 -i444 set input format in YUV 4:4:4, ignore -s,-o420,-o444 -i10b set input format in YUV 10-bit, default: 8-bit -info reserve x264 mark and parameter info in UCI data -quiet suppress x264 message
Default: x264 option:
–crf 27 -b 0 -r 0 -m 11 -t 2 –aq-mode 2 –no-psy –threads 1
Notes: **input file must be a 24 or 32 bit uncompressed BMP format file specify - instead of filename to use stdin/stdout** Examples:
Image Decoder 0.4 [by dwing] 2009-05-30 Usage: imgdec <src_file> <dst_file> Options:
-o <filename> set output file name, default: <src_file>.bmpNotes: input file support BMP,TGA,PNG,JPG,GIF,TIF,PCX,PNM,JP2,JPC output file is a 24 or 32 bit uncompressed BMP format file specify - instead of filename to use stdin/stdout Examples: imgdec input.jpg output.bmp