⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fame_init.3

📁 一个很好用的MPEG1/4的开源编码器
💻 3
字号:
.TH fame_init 3 "July 29, 2001" "libfame" "fame_init".SH NAMEfame_init \- initialize the fame library.SH SYNOPSIS.nf.B #include <fame.h>.sp.BI "fame_context_t * fame_init(fame_context_t *" context ", fame_parameters_t *" parameters ", unsigned char *" buffer ", unsigned int " size ");");.fi.SH DESCRIPTIONThe.B fame_init()call is used to open and initialize the fame library..PP.I contextis the context handle previously returned by .I fame_open.PP.I parametersis a fame_parameters_t structure as specified in fame.h:.sp.nftypedef struct _fame_parameters_ {.in +2int width;                        /* width of the video sequence */int height;                       /* height of the video sequence */char const *coding;               /* coding sequence */int quality;                      /* video quality */int slices_per_frame;             /* number of slices per frame */unsigned int frames_per_sequence; /* number of frames per sequence */int frame_rate_num;               /* numerator of frames per second */int frame_rate_den;               /* denominator of frames per second */unsigned int shape_quality;       /* binary shape quality */unsigned int search_range;        /* motion estimation search range */unsigned char verbose;            /* verbosity */.in -2} fame_parameters_t;.fi.PP.sp.I widthand.I heightspecify the size of each frames of the video sequence. Both must be multiple of 16..I widthand.I heightmust be less than 4096x4096.PP.I codingis a string of I, P or B characters representing the sequence of frames the encoder must produce. I frames are intra-coded frames (similar to JPEG), whereas Pand B frames are motion compressed, respectively predicted from past reference (I or P) frame, or bidirectionally predicted from past and future reference frame..PP.I qualityis a percentage, which controls compression versus quality..PP.I slices_per_frameis the number of frame slices per frame. More slices provide better error recovery. There must be at least one slice per frame, and at most .I height/ 16.PP.I frames_per_sequenceis the maximum number of frames contained in a video sequence..PP.I frame_rate_num/frame_rate_denspecify the number of frames per second for playback..PP.I shape_qualityis percentage determing the average binary shape accuracy in video with arbitrary shape..PP.I search_rangespecifies the motion estimation search range in pixel unit. Small search ranges work best with slow motion videos, whereas larger search ranges are rather for fast motion videos..PP.I verbosewhen set to 1 outputs information on copyright, modules used and current frame on standard error..PP.I bufferis the buffer where encoded data will be written to. It must be large enough to contain a few frames..PP.I sizespecifies the length of the buffer..SH "RETURN VALUE".BR fame_initreturn a new context, or NULL if an error occurred..SH "BUGS".I buffermust be large enough to contain encoded data. There is no checking of buffer overflow as this would be too slow.Encoding of B frame is not yet supported..SH "SEE ALSO".BR fame_encode_frame (3),.BR fame_close (3)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -