Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
小白菜888
Ffmpeg
提交
9bab39de
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,发现更多精彩内容 >>
提交
9bab39de
编写于
9月 09, 2017
作者:
R
Ronald S. Bultje
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
vp9: fix compilation with threading disabled.
上级
2d025e74
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
11 addition
and
6 deletion
+11
-6
libavcodec/vp9.c
libavcodec/vp9.c
+9
-6
libavcodec/vp9dec.h
libavcodec/vp9dec.h
+2
-0
未找到文件。
libavcodec/vp9.c
浏览文件 @
9bab39de
...
...
@@ -88,10 +88,8 @@ static void vp9_await_tile_progress(VP9Context *s, int field, int n) {
pthread_mutex_unlock
(
&
s
->
progress_mutex
);
}
#else
static
void
vp9_free_entries
(
VP9Context
*
s
)
{}
static
void
vp9_free_entries
(
AVCodecContext
*
avctx
)
{}
static
int
vp9_alloc_entries
(
AVCodecContext
*
avctx
,
int
n
)
{
return
0
;
}
static
void
vp9_report_tile_progress
(
VP9Context
*
s
,
int
field
,
int
n
)
{}
static
void
vp9_await_tile_progress
(
VP9Context
*
s
,
int
field
,
int
n
)
{}
#endif
static
void
vp9_frame_unref
(
AVCodecContext
*
avctx
,
VP9Frame
*
f
)
...
...
@@ -1343,7 +1341,7 @@ static int decode_tiles(AVCodecContext *avctx,
return
0
;
}
#if HAVE_THREADS
static
av_always_inline
int
decode_tiles_mt
(
AVCodecContext
*
avctx
,
void
*
tdata
,
int
jobnr
,
int
threadnr
)
...
...
@@ -1451,7 +1449,7 @@ int loopfilter_proc(AVCodecContext *avctx)
}
return
0
;
}
#endif
static
int
vp9_decode_frame
(
AVCodecContext
*
avctx
,
void
*
frame
,
int
*
got_frame
,
AVPacket
*
pkt
)
...
...
@@ -1583,10 +1581,12 @@ FF_ENABLE_DEPRECATION_WARNINGS
ff_thread_finish_setup
(
avctx
);
}
#if HAVE_THREADS
if
(
avctx
->
active_thread_type
&
FF_THREAD_SLICE
)
{
for
(
i
=
0
;
i
<
s
->
sb_rows
;
i
++
)
atomic_store
(
&
s
->
entries
[
i
],
0
);
}
#endif
do
{
for
(
i
=
0
;
i
<
s
->
active_tile_cols
;
i
++
)
{
...
...
@@ -1599,6 +1599,7 @@ FF_ENABLE_DEPRECATION_WARNINGS
s
->
td
[
i
].
uveob
[
1
]
=
s
->
td
[
i
].
uveob_base
[
1
];
}
#if HAVE_THREADS
if
(
avctx
->
active_thread_type
==
FF_THREAD_SLICE
)
{
int
tile_row
,
tile_col
;
...
...
@@ -1629,7 +1630,9 @@ FF_ENABLE_DEPRECATION_WARNINGS
}
ff_slice_thread_execute_with_mainfunc
(
avctx
,
decode_tiles_mt
,
loopfilter_proc
,
s
->
td
,
NULL
,
s
->
s
.
h
.
tiling
.
tile_cols
);
}
else
{
}
else
#endif
{
ret
=
decode_tiles
(
avctx
,
data
,
size
);
if
(
ret
<
0
)
return
ret
;
...
...
libavcodec/vp9dec.h
浏览文件 @
9bab39de
...
...
@@ -98,9 +98,11 @@ typedef struct VP9Context {
VP56RangeCoder
c
;
int
pass
,
active_tile_cols
;
#if HAVE_THREADS
pthread_mutex_t
progress_mutex
;
pthread_cond_t
progress_cond
;
atomic_int
*
entries
;
#endif
uint8_t
ss_h
,
ss_v
;
uint8_t
last_bpp
,
bpp_index
,
bytesperpixel
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录