Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
6c0167f6
Commit
6c0167f6
authored
Sep 15, 2019
by
James Almer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/libdav1d: use the library default for the filmgrain option
Signed-off-by:
James Almer
<
jamrial@gmail.com
>
parent
4c34ed65
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
6 deletions
+7
-6
decoders.texi
doc/decoders.texi
+3
-3
libdav1d.c
libavcodec/libdav1d.c
+3
-2
version.h
libavcodec/version.h
+1
-1
No files found.
doc/decoders.texi
View file @
6c0167f6
...
...
@@ -57,7 +57,7 @@ You need to explicitly configure the build with @code{--enable-libdav1d}.
@subsection Options
The following option
is
supported by the libdav1d wrapper.
The following option
s are
supported by the libdav1d wrapper.
@table @option
...
...
@@ -68,8 +68,8 @@ Set amount of frame threads to use during decoding. The default value is 0 (auto
Set amount of tile threads to use during decoding. The default value is 0 (autodetect).
@item filmgrain
Apply film grain to the decoded video if present in the bitstream.
The default valu
e
i
s true
.
Apply film grain to the decoded video if present in the bitstream.
Defaults to th
e
i
nternal default of the library
.
@end table
...
...
libavcodec/libdav1d.c
View file @
6c0167f6
...
...
@@ -131,7 +131,8 @@ static av_cold int libdav1d_init(AVCodecContext *c)
s
.
allocator
.
alloc_picture_callback
=
libdav1d_picture_allocator
;
s
.
allocator
.
release_picture_callback
=
libdav1d_picture_release
;
s
.
frame_size_limit
=
c
->
max_pixels
;
s
.
apply_grain
=
dav1d
->
apply_grain
;
if
(
dav1d
->
apply_grain
>=
0
)
s
.
apply_grain
=
dav1d
->
apply_grain
;
s
.
n_tile_threads
=
dav1d
->
tile_threads
?
dav1d
->
tile_threads
...
...
@@ -342,7 +343,7 @@ static av_cold int libdav1d_close(AVCodecContext *c)
static
const
AVOption
libdav1d_options
[]
=
{
{
"tilethreads"
,
"Tile threads"
,
OFFSET
(
tile_threads
),
AV_OPT_TYPE_INT
,
{
.
i64
=
0
},
0
,
DAV1D_MAX_TILE_THREADS
,
VD
},
{
"framethreads"
,
"Frame threads"
,
OFFSET
(
frame_threads
),
AV_OPT_TYPE_INT
,
{
.
i64
=
0
},
0
,
DAV1D_MAX_FRAME_THREADS
,
VD
},
{
"filmgrain"
,
"Apply Film Grain"
,
OFFSET
(
apply_grain
),
AV_OPT_TYPE_BOOL
,
{
.
i64
=
1
},
0
,
1
,
VD
},
{
"filmgrain"
,
"Apply Film Grain"
,
OFFSET
(
apply_grain
),
AV_OPT_TYPE_BOOL
,
{
.
i64
=
-
1
},
-
1
,
1
,
VD
},
{
NULL
}
};
...
...
libavcodec/version.h
View file @
6c0167f6
...
...
@@ -29,7 +29,7 @@
#define LIBAVCODEC_VERSION_MAJOR 58
#define LIBAVCODEC_VERSION_MINOR 56
#define LIBAVCODEC_VERSION_MICRO 10
1
#define LIBAVCODEC_VERSION_MICRO 10
2
#define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \
LIBAVCODEC_VERSION_MINOR, \
...
...
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