Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
701cbbb5
Commit
701cbbb5
authored
Dec 03, 2018
by
hwrenx
Committed by
Steven Liu
Dec 03, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libdavs2: update api version and enable avx option
Signed-off-by:
hwrenx
<
hwrenx@126.com
>
parent
4bbb6d1a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
configure
configure
+1
-1
libdavs2.c
libavcodec/libdavs2.c
+3
-0
No files found.
configure
View file @
701cbbb5
...
...
@@ -6082,7 +6082,7 @@ enabled libcelt && require libcelt celt/celt.h celt_decode -lcelt0 &&
enabled libcaca
&&
require_pkg_config libcaca caca caca.h caca_create_canvas
enabled libcodec2
&&
require libcodec2 codec2/codec2.h codec2_create
-lcodec2
enabled libdav1d
&&
require_pkg_config libdav1d
"dav1d >= 0.0.1"
"dav1d/dav1d.h"
dav1d_version
enabled libdavs2
&&
require_pkg_config libdavs2
"davs2 >= 1.
5.115
"
davs2.h davs2_decoder_open
enabled libdavs2
&&
require_pkg_config libdavs2
"davs2 >= 1.
6.0
"
davs2.h davs2_decoder_open
enabled libdc1394
&&
require_pkg_config libdc1394 libdc1394-2 dc1394/dc1394.h dc1394_new
enabled libdrm
&&
require_pkg_config libdrm libdrm xf86drm.h drmGetVersion
enabled libfdk_aac
&&
{
check_pkg_config libfdk_aac fdk-aac
"fdk-aac/aacenc_lib.h"
aacEncOpen
||
...
...
libavcodec/libdavs2.c
View file @
701cbbb5
...
...
@@ -40,11 +40,14 @@ typedef struct DAVS2Context {
static
av_cold
int
davs2_init
(
AVCodecContext
*
avctx
)
{
DAVS2Context
*
cad
=
avctx
->
priv_data
;
int
cpu_flags
=
av_get_cpu_flags
();
/* init the decoder */
cad
->
param
.
threads
=
avctx
->
thread_count
;
cad
->
param
.
info_level
=
0
;
cad
->
decoder
=
davs2_decoder_open
(
&
cad
->
param
);
cad
->
param
.
disable_avx
=
!
(
cpu_flags
&
AV_CPU_FLAG_AVX
&&
cpu_flags
&
AV_CPU_FLAG_AVX2
);
if
(
!
cad
->
decoder
)
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"decoder created error."
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment