Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
小白菜888
Ffmpeg
提交
ac6d020f
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,发现更多精彩内容 >>
提交
ac6d020f
编写于
10月 21, 2010
作者:
P
Pascal Massimino
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
cleanup image2pipe_{de}muxer fields
Originally committed as revision 25531 to
svn://svn.ffmpeg.org/ffmpeg/trunk
上级
96ea6ad2
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
37 addition
and
42 deletion
+37
-42
libavformat/img2.c
libavformat/img2.c
+37
-42
未找到文件。
libavformat/img2.c
浏览文件 @
ac6d020f
...
...
@@ -171,7 +171,7 @@ static int find_image_range(int *pfirst_index, int *plast_index,
}
static
int
image
_probe
(
AVProbeData
*
p
)
static
int
read
_probe
(
AVProbeData
*
p
)
{
if
(
p
->
filename
&&
av_str2id
(
img_tags
,
p
->
filename
))
{
if
(
av_filename_number_test
(
p
->
filename
))
...
...
@@ -186,7 +186,7 @@ enum CodecID av_guess_image2_codec(const char *filename){
return
av_str2id
(
img_tags
,
filename
);
}
static
int
img_
read_header
(
AVFormatContext
*
s1
,
AVFormatParameters
*
ap
)
static
int
read_header
(
AVFormatContext
*
s1
,
AVFormatParameters
*
ap
)
{
VideoData
*
s
=
s1
->
priv_data
;
int
first_index
,
last_index
;
...
...
@@ -249,7 +249,7 @@ static int img_read_header(AVFormatContext *s1, AVFormatParameters *ap)
return
0
;
}
static
int
img_
read_packet
(
AVFormatContext
*
s1
,
AVPacket
*
pkt
)
static
int
read_packet
(
AVFormatContext
*
s1
,
AVPacket
*
pkt
)
{
VideoData
*
s
=
s1
->
priv_data
;
char
filename
[
1024
];
...
...
@@ -320,7 +320,7 @@ static int img_read_packet(AVFormatContext *s1, AVPacket *pkt)
/******************************************************/
/* image output */
static
int
img_
write_header
(
AVFormatContext
*
s
)
static
int
write_header
(
AVFormatContext
*
s
)
{
VideoData
*
img
=
s
->
priv_data
;
...
...
@@ -336,7 +336,7 @@ static int img_write_header(AVFormatContext *s)
return
0
;
}
static
int
img_
write_packet
(
AVFormatContext
*
s
,
AVPacket
*
pkt
)
static
int
write_packet
(
AVFormatContext
*
s
,
AVPacket
*
pkt
)
{
VideoData
*
img
=
s
->
priv_data
;
ByteIOContext
*
pb
[
3
];
...
...
@@ -413,56 +413,51 @@ static int img_write_packet(AVFormatContext *s, AVPacket *pkt)
/* input */
#if CONFIG_IMAGE2_DEMUXER
AVInputFormat
image2_demuxer
=
{
"image2"
,
NULL_IF_CONFIG_SMALL
(
"image2 sequence"
),
sizeof
(
VideoData
),
image_probe
,
img_read_header
,
img_read_packet
,
NULL
,
NULL
,
NULL
,
AVFMT_NOFILE
,
.
name
=
"image2"
,
.
long_name
=
NULL_IF_CONFIG_SMALL
(
"image2 sequence"
),
.
priv_data_size
=
sizeof
(
VideoData
),
.
read_probe
=
read_probe
,
.
read_header
=
read_header
,
.
read_packet
=
read_packet
,
.
flags
=
AVFMT_NOFILE
,
};
#endif
#if CONFIG_IMAGE2PIPE_DEMUXER
AVInputFormat
image2pipe_demuxer
=
{
"image2pipe"
,
NULL_IF_CONFIG_SMALL
(
"piped image2 sequence"
),
sizeof
(
VideoData
),
NULL
,
/* no probe */
img_read_header
,
img_read_packet
,
.
name
=
"image2pipe"
,
.
long_name
=
NULL_IF_CONFIG_SMALL
(
"piped image2 sequence"
),
.
priv_data_size
=
sizeof
(
VideoData
),
.
read_header
=
read_header
,
.
read_packet
=
read_packet
,
};
#endif
/* output */
#if CONFIG_IMAGE2_MUXER
AVOutputFormat
image2_muxer
=
{
"image2"
,
NULL_IF_CONFIG_SMALL
(
"image2 sequence"
),
""
,
"bmp,jpeg,jpg,ljpg,pam,pbm,pcx,pgm,pgmyuv,png,ppm,sgi,tga,tif,tiff,jp2"
,
sizeof
(
VideoData
),
CODEC_ID_NONE
,
CODEC_ID_MJPEG
,
img_write_header
,
img_write_packet
,
NULL
,
.
flags
=
AVFMT_NOTIMESTAMPS
|
AVFMT_NODIMENSIONS
|
AVFMT_NOFILE
.
name
=
"image2"
,
.
long_name
=
NULL_IF_CONFIG_SMALL
(
"image2 sequence"
),
.
mime_type
=
""
,
.
extensions
=
"bmp,jpeg,jpg,ljpg,pam,pbm,pcx,pgm,pgmyuv,png,ppm,sgi,tga,tif,tiff,jp2"
,
.
priv_data_size
=
sizeof
(
VideoData
),
.
audio_codec
=
CODEC_ID_NONE
,
.
video_codec
=
CODEC_ID_MJPEG
,
.
write_header
=
write_header
,
.
write_packet
=
write_packet
,
.
flags
=
AVFMT_NOTIMESTAMPS
|
AVFMT_NODIMENSIONS
|
AVFMT_NOFILE
};
#endif
#if CONFIG_IMAGE2PIPE_MUXER
AVOutputFormat
image2pipe_muxer
=
{
"image2pipe"
,
NULL_IF_CONFIG_SMALL
(
"piped image2 sequence"
),
""
,
""
,
sizeof
(
VideoData
),
CODEC_ID_NONE
,
CODEC_ID_MJPEG
,
img_
write_header
,
img_
write_packet
,
.
flags
=
AVFMT_NOTIMESTAMPS
|
AVFMT_NODIMENSIONS
.
name
=
"image2pipe"
,
.
long_name
=
NULL_IF_CONFIG_SMALL
(
"piped image2 sequence"
),
.
mime_type
=
""
,
.
extensions
=
""
,
.
priv_data_size
=
sizeof
(
VideoData
),
.
audio_codec
=
CODEC_ID_NONE
,
.
video_codec
=
CODEC_ID_MJPEG
,
.
write_header
=
write_header
,
.
write_packet
=
write_packet
,
.
flags
=
AVFMT_NOTIMESTAMPS
|
AVFMT_NODIMENSIONS
};
#endif
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录