Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
小白菜888
Ffmpeg
提交
469c62d0
F
Ffmpeg
项目概览
小白菜888
/
Ffmpeg
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
F
Ffmpeg
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
469c62d0
编写于
12月 11, 2011
作者:
A
Anton Khirnov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
lavf doxy: add core functions to a doxy group.
上级
1be32305
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
99 addition
and
88 deletion
+99
-88
libavformat/avformat.h
libavformat/avformat.h
+99
-88
未找到文件。
libavformat/avformat.h
浏览文件 @
469c62d0
...
...
@@ -62,21 +62,6 @@
*
*/
/**
* Return the LIBAVFORMAT_VERSION_INT constant.
*/
unsigned
avformat_version
(
void
);
/**
* Return the libavformat build-time configuration.
*/
const
char
*
avformat_configuration
(
void
);
/**
* Return the libavformat license.
*/
const
char
*
avformat_license
(
void
);
#include <time.h>
#include <stdio.h>
/* FILE */
#include "libavcodec/avcodec.h"
...
...
@@ -1110,6 +1095,60 @@ typedef struct AVPacketList {
struct
AVPacketList
*
next
;
}
AVPacketList
;
/**
* @defgroup lavf_core Core functions
* @ingroup libavf
*
* Functions for querying libavformat capabilities, allocating core structures,
* etc.
* @{
*/
/**
* Return the LIBAVFORMAT_VERSION_INT constant.
*/
unsigned
avformat_version
(
void
);
/**
* Return the libavformat build-time configuration.
*/
const
char
*
avformat_configuration
(
void
);
/**
* Return the libavformat license.
*/
const
char
*
avformat_license
(
void
);
/**
* Initialize libavformat and register all the muxers, demuxers and
* protocols. If you do not call this function, then you can select
* exactly which formats you want to support.
*
* @see av_register_input_format()
* @see av_register_output_format()
* @see av_register_protocol()
*/
void
av_register_all
(
void
);
void
av_register_input_format
(
AVInputFormat
*
format
);
void
av_register_output_format
(
AVOutputFormat
*
format
);
/**
* Do global initialization of network components. This is optional,
* but recommended, since it avoids the overhead of implicitly
* doing the setup for each session.
*
* Calling this function will become mandatory if using network
* protocols at some major version bump.
*/
int
avformat_network_init
(
void
);
/**
* Undo the initialization done by avformat_network_init.
*/
int
avformat_network_deinit
(
void
);
/**
* If f is NULL, returns the first registered input format,
* if f is non-NULL, returns the next registered input format after f
...
...
@@ -1124,17 +1163,55 @@ AVInputFormat *av_iformat_next(AVInputFormat *f);
*/
AVOutputFormat
*
av_oformat_next
(
AVOutputFormat
*
f
);
/**
* Allocate an AVFormatContext.
* avformat_free_context() can be used to free the context and everything
* allocated by the framework within it.
*/
AVFormatContext
*
avformat_alloc_context
(
void
);
/**
* Free an AVFormatContext and all its streams.
* @param s context to free
*/
void
avformat_free_context
(
AVFormatContext
*
s
);
/**
* Get the AVClass for AVFormatContext. It can be used in combination with
* AV_OPT_SEARCH_FAKE_OBJ for examining options.
*
* @see av_opt_find().
*/
const
AVClass
*
avformat_get_class
(
void
);
/**
* Add a new stream to a media file.
*
* When demuxing, it is called by the demuxer in read_header(). If the
* flag AVFMTCTX_NOHEADER is set in s.ctx_flags, then it may also
* be called in read_packet().
*
* When muxing, should be called by the user before avformat_write_header().
*
* @param c If non-NULL, the AVCodecContext corresponding to the new stream
* will be initialized to use this codec. This is needed for e.g. codec-specific
* defaults to be set, so codec should be provided if it is known.
*
* @return newly created stream or NULL on error.
*/
AVStream
*
avformat_new_stream
(
AVFormatContext
*
s
,
AVCodec
*
c
);
AVProgram
*
av_new_program
(
AVFormatContext
*
s
,
int
id
);
/**
* @}
*/
#if FF_API_GUESS_IMG2_CODEC
attribute_deprecated
enum
CodecID
av_guess_image2_codec
(
const
char
*
filename
);
#endif
/* XXX: Use automatic init with either ELF sections or C file parser */
/* modules. */
/* utils.c */
void
av_register_input_format
(
AVInputFormat
*
format
);
void
av_register_output_format
(
AVOutputFormat
*
format
);
/**
* Return the output format in the list of registered output formats
* which best matches the provided parameters, or return NULL if
...
...
@@ -1214,17 +1291,6 @@ attribute_deprecated void av_pkt_dump_log(void *avcl, int level, AVPacket *pkt,
int
dump_payload
);
#endif
/**
* Initialize libavformat and register all the muxers, demuxers and
* protocols. If you do not call this function, then you can select
* exactly which formats you want to support.
*
* @see av_register_input_format()
* @see av_register_output_format()
* @see av_register_protocol()
*/
void
av_register_all
(
void
);
/**
* Get the CodecID for the given codec tag tag.
* If no codec id is found returns CODEC_ID_NONE.
...
...
@@ -1243,13 +1309,6 @@ enum CodecID av_codec_get_id(const struct AVCodecTag * const *tags, unsigned int
*/
unsigned
int
av_codec_get_tag
(
const
struct
AVCodecTag
*
const
*
tags
,
enum
CodecID
id
);
/**
* Allocate an AVFormatContext.
* avformat_free_context() can be used to free the context and everything
* allocated by the framework within it.
*/
AVFormatContext
*
avformat_alloc_context
(
void
);
/**
* @addtogroup lavf_decoding
* @{
...
...
@@ -1534,12 +1593,6 @@ void av_close_input_file(AVFormatContext *s);
* @}
*/
/**
* Free an AVFormatContext and all its streams.
* @param s context to free
*/
void
avformat_free_context
(
AVFormatContext
*
s
);
#if FF_API_NEW_STREAM
/**
* Add a new stream to a media file.
...
...
@@ -1555,25 +1608,6 @@ attribute_deprecated
AVStream
*
av_new_stream
(
AVFormatContext
*
s
,
int
id
);
#endif
/**
* Add a new stream to a media file.
*
* When demuxing, it is called by the demuxer in read_header(). If the
* flag AVFMTCTX_NOHEADER is set in s.ctx_flags, then it may also
* be called in read_packet().
*
* When muxing, should be called by the user before avformat_write_header().
*
* @param c If non-NULL, the AVCodecContext corresponding to the new stream
* will be initialized to use this codec. This is needed for e.g. codec-specific
* defaults to be set, so codec should be provided if it is known.
*
* @return newly created stream or NULL on error.
*/
AVStream
*
avformat_new_stream
(
AVFormatContext
*
s
,
AVCodec
*
c
);
AVProgram
*
av_new_program
(
AVFormatContext
*
s
,
int
id
);
#if FF_API_SET_PTS_INFO
/**
* @deprecated this function is not supposed to be called outside of lavf
...
...
@@ -1852,27 +1886,4 @@ int av_match_ext(const char *filename, const char *extensions);
*/
int
avformat_query_codec
(
AVOutputFormat
*
ofmt
,
enum
CodecID
codec_id
,
int
std_compliance
);
/**
* Get the AVClass for AVFormatContext. It can be used in combination with
* AV_OPT_SEARCH_FAKE_OBJ for examining options.
*
* @see av_opt_find().
*/
const
AVClass
*
avformat_get_class
(
void
);
/**
* Do global initialization of network components. This is optional,
* but recommended, since it avoids the overhead of implicitly
* doing the setup for each session.
*
* Calling this function will become mandatory if using network
* protocols at some major version bump.
*/
int
avformat_network_init
(
void
);
/**
* Undo the initialization done by avformat_network_init.
*/
int
avformat_network_deinit
(
void
);
#endif
/* AVFORMAT_AVFORMAT_H */
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录