Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
小白菜888
Ffmpeg
提交
16b771b1
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,体验更适合开发者的 AI 搜索 >>
提交
16b771b1
编写于
12月 13, 2011
作者:
M
Michael Niedermayer
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
cleanup: for(int
Signed-off-by:
N
Michael Niedermayer
<
michaelni@gmx.at
>
上级
b39e01a6
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
15 addition
and
10 deletion
+15
-10
ffplay.c
ffplay.c
+2
-1
libavcodec/proresenc.c
libavcodec/proresenc.c
+5
-5
libavdevice/dv1394.h
libavdevice/dv1394.h
+2
-1
libavfilter/transform.c
libavfilter/transform.c
+6
-3
未找到文件。
ffplay.c
浏览文件 @
16b771b1
...
...
@@ -2773,10 +2773,11 @@ static void stream_cycle_channel(VideoState *is, int codec_type)
static
void
toggle_full_screen
(
VideoState
*
is
)
{
int
i
;
is_full_screen
=
!
is_full_screen
;
#if defined(__APPLE__) && SDL_VERSION_ATLEAST(1, 2, 14)
/* OS X needs to reallocate the SDL overlays */
for
(
i
nt
i
=
0
;
i
<
VIDEO_PICTURE_QUEUE_SIZE
;
i
++
)
{
for
(
i
=
0
;
i
<
VIDEO_PICTURE_QUEUE_SIZE
;
i
++
)
{
is
->
pictq
[
i
].
reallocate
=
1
;
}
#endif
...
...
libavcodec/proresenc.c
浏览文件 @
16b771b1
...
...
@@ -234,10 +234,10 @@ static void encode_ac_coeffs(AVCodecContext *avctx, PutBitContext *pb,
int
prev_run
=
4
;
int
prev_level
=
2
;
int
run
=
0
,
level
,
code
;
for
(
i
nt
i
=
1
;
i
<
64
;
i
++
)
{
int
run
=
0
,
level
,
code
,
i
,
j
;
for
(
i
=
1
;
i
<
64
;
i
++
)
{
int
indp
=
progressive_scan
[
i
];
for
(
int
j
=
0
;
j
<
blocks_per_slice
;
j
++
)
{
for
(
j
=
0
;
j
<
blocks_per_slice
;
j
++
)
{
int
val
=
QSCALE
(
qmat
,
indp
,
in
[(
j
<<
6
)
+
indp
]);
if
(
val
)
{
encode_codeword
(
pb
,
run
,
run_to_cb
[
FFMIN
(
prev_run
,
15
)]);
...
...
@@ -441,13 +441,13 @@ static int prores_encode_picture(AVCodecContext *avctx, AVFrame *pic,
{
int
mb_width
=
(
avctx
->
width
+
15
)
>>
4
;
int
mb_height
=
(
avctx
->
height
+
15
)
>>
4
;
int
hdr_size
,
sl_size
;
int
hdr_size
,
sl_size
,
i
;
int
mb_y
,
sl_data_size
,
qp
;
int
unsafe_bot
,
unsafe_right
;
uint8_t
*
sl_data
,
*
sl_data_sizes
;
int
slice_per_line
=
0
,
rem
=
mb_width
;
for
(
i
nt
i
=
av_log2
(
DEFAULT_SLICE_MB_WIDTH
);
i
>=
0
;
--
i
)
{
for
(
i
=
av_log2
(
DEFAULT_SLICE_MB_WIDTH
);
i
>=
0
;
--
i
)
{
slice_per_line
+=
rem
>>
i
;
rem
&=
(
1
<<
i
)
-
1
;
}
...
...
libavdevice/dv1394.h
浏览文件 @
16b771b1
...
...
@@ -175,7 +175,8 @@
if(status.dropped_frames > 0) {
reset_dv1394();
} else {
for(int i = 0; i < status.n_clear_frames; i++) {
int i;
for(i = 0; i < status.n_clear_frames; i++) {
copy_DV_frame();
}
}
...
...
libavfilter/transform.c
浏览文件 @
16b771b1
...
...
@@ -116,19 +116,22 @@ void avfilter_get_matrix(float x_shift, float y_shift, float angle, float zoom,
void
avfilter_add_matrix
(
const
float
*
m1
,
const
float
*
m2
,
float
*
result
)
{
for
(
int
i
=
0
;
i
<
9
;
i
++
)
int
i
;
for
(
i
=
0
;
i
<
9
;
i
++
)
result
[
i
]
=
m1
[
i
]
+
m2
[
i
];
}
void
avfilter_sub_matrix
(
const
float
*
m1
,
const
float
*
m2
,
float
*
result
)
{
for
(
int
i
=
0
;
i
<
9
;
i
++
)
int
i
;
for
(
i
=
0
;
i
<
9
;
i
++
)
result
[
i
]
=
m1
[
i
]
-
m2
[
i
];
}
void
avfilter_mul_matrix
(
const
float
*
m1
,
float
scalar
,
float
*
result
)
{
for
(
int
i
=
0
;
i
<
9
;
i
++
)
int
i
;
for
(
i
=
0
;
i
<
9
;
i
++
)
result
[
i
]
=
m1
[
i
]
*
scalar
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录