Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
小白菜888
Ffmpeg
提交
9a63497b
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,发现更多精彩内容 >>
提交
9a63497b
编写于
3月 02, 2007
作者:
B
Baptiste Coudurier
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
support for mjpeg bottom field first in mov
Originally committed as revision 8192 to
svn://svn.ffmpeg.org/ffmpeg/trunk
上级
014a5102
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
13 addition
and
4 deletion
+13
-4
libavcodec/mjpeg.c
libavcodec/mjpeg.c
+12
-4
libavformat/mov.c
libavformat/mov.c
+1
-0
未找到文件。
libavcodec/mjpeg.c
浏览文件 @
9a63497b
...
...
@@ -965,6 +965,13 @@ static int mjpeg_decode_init(AVCodecContext *avctx)
mjpeg_decode_dht
(
s
);
/* should check for error - but dunno */
}
if
(
avctx
->
extradata_size
>
9
&&
AV_RL32
(
avctx
->
extradata
+
4
)
==
MKTAG
(
'f'
,
'i'
,
'e'
,
'l'
))
{
if
(
avctx
->
extradata
[
9
]
==
6
)
{
/* quicktime icefloe 019 */
s
->
interlace_polarity
=
1
;
/* bottom field first */
av_log
(
avctx
,
AV_LOG_DEBUG
,
"mjpeg bottom field first
\n
"
);
}
}
return
0
;
}
...
...
@@ -1185,8 +1192,9 @@ static int mjpeg_decode_sof(MJpegDecodeContext *s)
s
->
org_height
!=
0
&&
s
->
height
<
((
s
->
org_height
*
3
)
/
4
))
{
s
->
interlaced
=
1
;
// s->bottom_field = (s->interlace_polarity) ? 1 : 0;
s
->
bottom_field
=
0
;
s
->
bottom_field
=
s
->
interlace_polarity
;
s
->
picture
.
interlaced_frame
=
1
;
s
->
picture
.
top_field_first
=
!
s
->
interlace_polarity
;
height
*=
2
;
}
...
...
@@ -1197,7 +1205,7 @@ static int mjpeg_decode_sof(MJpegDecodeContext *s)
s
->
first_picture
=
0
;
}
if
(
s
->
interlaced
&&
s
->
bottom_field
)
if
(
s
->
interlaced
&&
(
s
->
bottom_field
==
!
s
->
interlace_polarity
)
)
return
0
;
/* XXX: not complete test ! */
...
...
@@ -2167,7 +2175,7 @@ eoi_parser:
if
(
s
->
interlaced
)
{
s
->
bottom_field
^=
1
;
/* if not bottom field, do not output image yet */
if
(
s
->
bottom_field
)
if
(
s
->
bottom_field
==
!
s
->
interlace_polarity
)
goto
not_the_end
;
}
*
picture
=
s
->
picture
;
...
...
libavformat/mov.c
浏览文件 @
9a63497b
...
...
@@ -1366,6 +1366,7 @@ static const MOVParseTableEntry mov_default_parse_table[] = {
{
MKTAG
(
'e'
,
'd'
,
't'
,
's'
),
mov_read_default
},
{
MKTAG
(
'e'
,
'l'
,
's'
,
't'
),
mov_read_elst
},
{
MKTAG
(
'e'
,
'n'
,
'd'
,
'a'
),
mov_read_enda
},
{
MKTAG
(
'f'
,
'i'
,
'e'
,
'l'
),
mov_read_extradata
},
{
MKTAG
(
'f'
,
't'
,
'y'
,
'p'
),
mov_read_ftyp
},
{
MKTAG
(
'h'
,
'd'
,
'l'
,
'r'
),
mov_read_hdlr
},
{
MKTAG
(
'j'
,
'p'
,
'2'
,
'h'
),
mov_read_extradata
},
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录