Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
小白菜888
Ffmpeg
提交
7f12a978
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,发现更多精彩内容 >>
提交
7f12a978
编写于
4月 28, 2006
作者:
M
Michael Niedermayer
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
use previous qscale for intra_dc_threshold check
Originally committed as revision 5329 to
svn://svn.ffmpeg.org/ffmpeg/trunk
上级
e27b6e62
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
8 addition
and
2 deletion
+8
-2
libavcodec/h263.c
libavcodec/h263.c
+7
-2
libavcodec/mpegvideo.h
libavcodec/mpegvideo.h
+1
-0
未找到文件。
libavcodec/h263.c
浏览文件 @
7f12a978
...
...
@@ -3748,6 +3748,8 @@ static int mpeg4_decode_partitioned_mb(MpegEncContext *s, DCTELEM block[6][64])
mb_type
=
s
->
current_picture
.
mb_type
[
xy
];
cbp
=
s
->
cbp_table
[
xy
];
s
->
use_intra_dc_vlc
=
s
->
qscale
<
s
->
intra_dc_threshold
;
if
(
s
->
current_picture
.
qscale_table
[
xy
]
!=
s
->
qscale
){
ff_set_qscale
(
s
,
s
->
current_picture
.
qscale_table
[
xy
]
);
}
...
...
@@ -4484,6 +4486,9 @@ intra:
return
-
1
;
}
cbp
=
(
cbpc
&
3
)
|
(
cbpy
<<
2
);
s
->
use_intra_dc_vlc
=
s
->
qscale
<
s
->
intra_dc_threshold
;
if
(
dquant
)
{
ff_set_qscale
(
s
,
s
->
qscale
+
quant_tab
[
get_bits
(
&
s
->
gb
,
2
)]);
}
...
...
@@ -4779,7 +4784,7 @@ static inline int mpeg4_decode_block(MpegEncContext * s, DCTELEM * block,
//Note intra & rvlc should be optimized away if this is inlined
if
(
intra
)
{
if
(
s
->
qscale
<
s
->
intra_dc_threshold
){
if
(
s
->
use_intra_dc_vlc
){
/* DC coef */
if
(
s
->
partitioned_frame
){
level
=
s
->
dc_val
[
0
][
s
->
block_index
[
n
]
];
...
...
@@ -5003,7 +5008,7 @@ static inline int mpeg4_decode_block(MpegEncContext * s, DCTELEM * block,
}
not_coded:
if
(
intra
)
{
if
(
s
->
qscale
>=
s
->
intra_dc_threshold
){
if
(
!
s
->
use_intra_dc_vlc
){
block
[
0
]
=
ff_mpeg4_pred_dc
(
s
,
n
,
block
[
0
],
&
dc_pred_dir
,
0
);
i
-=
i
>>
31
;
//if(i == -1) i=0;
...
...
libavcodec/mpegvideo.h
浏览文件 @
7f12a978
...
...
@@ -602,6 +602,7 @@ typedef struct MpegEncContext {
int
vo_type
;
int
vol_control_parameters
;
///< does the stream contain the low_delay flag, used to workaround buggy encoders
int
intra_dc_threshold
;
///< QP above whch the ac VLC should be used for intra dc
int
use_intra_dc_vlc
;
PutBitContext
tex_pb
;
///< used for data partitioned VOPs
PutBitContext
pb2
;
///< used for data partitioned VOPs
int
mpeg_quant
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录