Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
小白菜888
Ffmpeg
提交
f073a393
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,发现更多精彩内容 >>
提交
f073a393
编写于
11月 10, 2007
作者:
D
Diego Biurrun
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
cosmetics: Fix vissual --> visual typo.
Originally committed as revision 10997 to
svn://svn.ffmpeg.org/ffmpeg/trunk
上级
2e39d0cd
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
12 addition
and
12 deletion
+12
-12
Changelog
Changelog
+1
-1
libavcodec/mpegvideo_enc.c
libavcodec/mpegvideo_enc.c
+9
-9
libavcodec/snow.c
libavcodec/snow.c
+2
-2
未找到文件。
Changelog
浏览文件 @
f073a393
...
...
@@ -171,7 +171,7 @@ version 0.4.9-pre1:
- SGI image format, encoding and decoding
- H.264 loop filter support
- H.264 CABAC support
- nicer looking arrows for the motion vector vis
s
ualization
- nicer looking arrows for the motion vector visualization
- improved VCD support
- audio timestamp drift compensation
- MPEG-2 YUV 422/444 support
...
...
libavcodec/mpegvideo_enc.c
浏览文件 @
f073a393
...
...
@@ -1422,7 +1422,7 @@ static inline void clip_coeffs(MpegEncContext *s, DCTELEM *block, int last_index
av_log
(
s
->
avctx
,
AV_LOG_INFO
,
"warning, clipping %d dct coefficients to %d..%d
\n
"
,
overflow
,
minlevel
,
maxlevel
);
}
static
void
get_vis
s
ual_weight
(
int16_t
*
weight
,
uint8_t
*
ptr
,
int
stride
){
static
void
get_visual_weight
(
int16_t
*
weight
,
uint8_t
*
ptr
,
int
stride
){
int
x
,
y
;
//FIXME optimize
for
(
y
=
0
;
y
<
8
;
y
++
){
...
...
@@ -1626,15 +1626,15 @@ static av_always_inline void encode_mb_internal(MpegEncContext *s, int motion_x,
}
if
(
s
->
avctx
->
quantizer_noise_shaping
){
if
(
!
skip_dct
[
0
])
get_vis
s
ual_weight
(
weight
[
0
],
ptr_y
,
wrap_y
);
if
(
!
skip_dct
[
1
])
get_vis
s
ual_weight
(
weight
[
1
],
ptr_y
+
8
,
wrap_y
);
if
(
!
skip_dct
[
2
])
get_vis
s
ual_weight
(
weight
[
2
],
ptr_y
+
dct_offset
,
wrap_y
);
if
(
!
skip_dct
[
3
])
get_vis
s
ual_weight
(
weight
[
3
],
ptr_y
+
dct_offset
+
8
,
wrap_y
);
if
(
!
skip_dct
[
4
])
get_vis
s
ual_weight
(
weight
[
4
],
ptr_cb
,
wrap_c
);
if
(
!
skip_dct
[
5
])
get_vis
s
ual_weight
(
weight
[
5
],
ptr_cr
,
wrap_c
);
if
(
!
skip_dct
[
0
])
get_visual_weight
(
weight
[
0
],
ptr_y
,
wrap_y
);
if
(
!
skip_dct
[
1
])
get_visual_weight
(
weight
[
1
],
ptr_y
+
8
,
wrap_y
);
if
(
!
skip_dct
[
2
])
get_visual_weight
(
weight
[
2
],
ptr_y
+
dct_offset
,
wrap_y
);
if
(
!
skip_dct
[
3
])
get_visual_weight
(
weight
[
3
],
ptr_y
+
dct_offset
+
8
,
wrap_y
);
if
(
!
skip_dct
[
4
])
get_visual_weight
(
weight
[
4
],
ptr_cb
,
wrap_c
);
if
(
!
skip_dct
[
5
])
get_visual_weight
(
weight
[
5
],
ptr_cr
,
wrap_c
);
if
(
!
s
->
chroma_y_shift
){
/* 422 */
if
(
!
skip_dct
[
6
])
get_vis
s
ual_weight
(
weight
[
6
],
ptr_cb
+
(
dct_offset
>>
1
),
wrap_c
);
if
(
!
skip_dct
[
7
])
get_vis
s
ual_weight
(
weight
[
7
],
ptr_cr
+
(
dct_offset
>>
1
),
wrap_c
);
if
(
!
skip_dct
[
6
])
get_visual_weight
(
weight
[
6
],
ptr_cb
+
(
dct_offset
>>
1
),
wrap_c
);
if
(
!
skip_dct
[
7
])
get_visual_weight
(
weight
[
7
],
ptr_cr
+
(
dct_offset
>>
1
),
wrap_c
);
}
memcpy
(
orig
[
0
],
s
->
block
[
0
],
sizeof
(
DCTELEM
)
*
64
*
mb_block_count
);
}
...
...
libavcodec/snow.c
浏览文件 @
f073a393
...
...
@@ -3895,7 +3895,7 @@ static int ratecontrol_1pass(SnowContext *s, AVFrame *pict)
return
delta_qlog
;
}
static
void
calculate_vis
s
ual_weight
(
SnowContext
*
s
,
Plane
*
p
){
static
void
calculate_visual_weight
(
SnowContext
*
s
,
Plane
*
p
){
int
width
=
p
->
width
;
int
height
=
p
->
height
;
int
level
,
orientation
,
x
,
y
;
...
...
@@ -4338,7 +4338,7 @@ redo_frame:
if
(
s
->
last_spatial_decomposition_count
!=
s
->
spatial_decomposition_count
){
for
(
plane_index
=
0
;
plane_index
<
3
;
plane_index
++
){
calculate_vis
s
ual_weight
(
s
,
&
s
->
plane
[
plane_index
]);
calculate_visual_weight
(
s
,
&
s
->
plane
[
plane_index
]);
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录