Skip to content

Instantly share code, notes, and snippets.

@commshare
Last active October 21, 2015 02:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save commshare/de8f8cd8ddf5524877a4 to your computer and use it in GitHub Desktop.
Save commshare/de8f8cd8ddf5524877a4 to your computer and use it in GitHub Desktop.
omxenctest usage print
/*
print_usage
*/
void print_usage(OMX_STRING swname)
{
printf("usage: %s [options]\n"
"\n"
" Available options:\n"
#if !defined (ENC8290) && !defined (ENCH1) 可以编码为avc 或者jpeg
" -O, --outputFormat Compression format; 'avc', 'mpeg4', 'h263' or 'jpeg'\n"
#else
" -O, --outputFormat Compression format; 'avc', "
#ifdef ENCH1
"'vp8', 'webp' "
#endif
"or 'jpeg'\n"
#endif
" -l, --inputFormat Color format for output\n" 支持的输入的yuv格式
" 0 yuv420packedplanar 1 yuv420packedsemiplanar\n"
" 2 ycbycr 3 cbycry\n"
" 4 rgb565 5 bgr565\n"
" 6 rgb555 8 rgb444\n"
#if !defined (ENC8290) && !defined (ENCH1)
" 10 yuv422planar\n\n"
#else
" 10 rgb888\n\n"
#endif
" -o, --output File name of the output\n" 输出文件名
" -i, --input File name of the input\n"
" -e, --error-concealment Use error concealment\n"
" -w, --lumWidthSrc Width of source image\n" 源图片的宽度和高度
" -h, --lumHeightSrc Height of source image\n"
" -x, --height Height of output image\n" 输出图片的高速和宽度
" -y, --width Width of output image\n"
" -X, --horOffsetSrc Output image horizontal offset. [0]\n" 输出图片的水平和垂直偏移
" -Y, --verOffsetSrc Output image vertical offset. [0]\n"
" -j, --inputRateNumer Frame rate used for the input\n" 输入的帧率
" -f, --outputRateNumer Frame rate used for the output\n" 输出的帧率
" -B, --bitsPerSecond Bit-rate used for the output\n" 输出的比特率
" -v, --input-variance-file File containing variance numbers separated with newline\n"
" -a, --firstVop First vop of input file [0]\n" 输入文件的第一个VOP
" -b, --lastVop Last vop of input file [EOF]\n" 输入文件的最后一个VOP
" -s, --buffer-size Size of allocated buffers (default provided by component) \n" 已分配的buffers大小(组件默认提供)
" -c, --buffer-count count of buffers allocated for each port (30)\n" 每个port分配的buffers的数量(默认30?)
"\n"
" -r, --rotation Rotation value, angle in degrees\n"
" -Z, --videostab Use frame stabilization\n"
" -T, --write-frames Write each frame additionally to a separate file\n"
" -D, --write-buffers Write each buffer additionally to a separate\n"
" file (overrides -T)\n"
"\n", swname);
print_avc_usage();
#if !defined (ENC8290) && !defined (ENCH1)
print_mpeg4_usage();
print_h263_usage();
#endif
#ifdef ENCH1
print_vp8_usage();
print_webp_usage();
#endif
print_jpeg_usage();
printf(" Return value:\n"
" 0 = OK; failures indicated as OMX error codes\n" "\n");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment