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

📄 fame_encode_frame.3

📁 一个很好用的MPEG1/4的开源编码器
💻 3
字号:
.TH fame_encode_frame 3 "Febrary 19, 2002" "libfame" "fame_encode_frame".SH NAMEfame_encode_frame \- encode a single frame (DEPRECATED).SH SYNOPSIS.nf.B #include <fame.h>.sp.BI "fame_frame_statistics_t *fame_encode_frame(fame_context_t *" context ", fame_yuv_t *" yuv ", unsigned char *" shape );.fi.SH DESCRIPTION.B fame_encode_frame()encodes a single uncompressed frame from .I yuvto a binary stream in  buffer, according to initialization parameters and optionnaly previously encoded frames. Note that in the case of video sequences containing B frames, it is up to the caller to present frames in the encoder order. Since B frames require both previous and next reference frames, they must be presented after both previous and next reference frames have been coded. For example, a "IBBPBBP" coding sequence must be presented in "IPBBPBB" order. This presentation order is also the order in which the frames should be stored in a file or sent to a network..PP.I contextis the context handle previously returned by .I fame_open.PP.I yuvis a pointer to the input frame. Currently, only YV12 planar format, also called YUV 4:2:0, is supported. The YV12 planar format consists in three plane, one for the Y (luminance) and two for the Cr and Cb (chrominance) components, the chrominance planes being subsampled by 2x2. These three planes are mapped linearly in memory:.sp.nf           widthyuv ->  +=========+        |         |        |    Y    | height        |         |        +====+====+        | Cr | height / 2        +====+        | Cb | height / 2        +====+       width / 2.fi.spThe process of converting RGB pictures to YUV12 will not be detailled here..PP.I shaperepresents the shape in case of video with arbitrary shape. It consists in a bitmap of .I widthx.I heightbytes, with 255 representing an opaque pixel and 0 representing a transparent pixel. Values between 0 and 255 are not supported yet.For rectangular video, this parameter must be set to NULL..SH "RETURN VALUE".BR fame_encode_framereturns a pointer to frame encoding statistics. These statistics include frame number, coding mode (I,P or B) for the frame, expected bits, actual bits used, spatial activity, and quantizer scale. The number of bytes written to the buffer is actual_bits/8..SH "BUGS"MMX arithmetic performs bad at quality > 95%.Encoding of B frames is not yet supported.Only works when slices_per_frame has been set to 1 in .I fame_init.SH "DEPRECATED"Usage of this function is deprecated. Use.I fame_start_frame,.I fame_encode_slice, and.I fame_end_frameinstead..SH "SEE ALSO".BR fame_open (3),.BR fame_init (3),.BR fame_close (3),.BR fame_encode_slice (3)

⌨️ 快捷键说明

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