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
0fca2f60
Commit
0fca2f60
authored
Nov 29, 2018
by
James Almer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/libdav1d: read profile from the sequence header referenced by the ouput picture
Signed-off-by:
James Almer
<
jamrial@gmail.com
>
parent
3cd275bc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
9 deletions
+1
-9
libdav1d.c
libavcodec/libdav1d.c
+1
-9
No files found.
libavcodec/libdav1d.c
View file @
0fca2f60
...
@@ -84,14 +84,6 @@ static const enum AVPixelFormat pix_fmt[][2] = {
...
@@ -84,14 +84,6 @@ static const enum AVPixelFormat pix_fmt[][2] = {
[
DAV1D_PIXEL_LAYOUT_I444
]
=
{
AV_PIX_FMT_YUV444P
,
AV_PIX_FMT_YUV444P10
},
[
DAV1D_PIXEL_LAYOUT_I444
]
=
{
AV_PIX_FMT_YUV444P
,
AV_PIX_FMT_YUV444P10
},
};
};
// TODO: Update once 12bit support is added.
static
const
int
profile
[]
=
{
[
DAV1D_PIXEL_LAYOUT_I400
]
=
FF_PROFILE_AV1_MAIN
,
[
DAV1D_PIXEL_LAYOUT_I420
]
=
FF_PROFILE_AV1_MAIN
,
[
DAV1D_PIXEL_LAYOUT_I422
]
=
FF_PROFILE_AV1_PROFESSIONAL
,
[
DAV1D_PIXEL_LAYOUT_I444
]
=
FF_PROFILE_AV1_HIGH
,
};
static
int
libdav1d_receive_frame
(
AVCodecContext
*
c
,
AVFrame
*
frame
)
static
int
libdav1d_receive_frame
(
AVCodecContext
*
c
,
AVFrame
*
frame
)
{
{
Libdav1dContext
*
dav1d
=
c
->
priv_data
;
Libdav1dContext
*
dav1d
=
c
->
priv_data
;
...
@@ -156,7 +148,7 @@ static int libdav1d_receive_frame(AVCodecContext *c, AVFrame *frame)
...
@@ -156,7 +148,7 @@ static int libdav1d_receive_frame(AVCodecContext *c, AVFrame *frame)
frame
->
linesize
[
1
]
=
p
.
stride
[
1
];
frame
->
linesize
[
1
]
=
p
.
stride
[
1
];
frame
->
linesize
[
2
]
=
p
.
stride
[
1
];
frame
->
linesize
[
2
]
=
p
.
stride
[
1
];
c
->
profile
=
p
rofile
[
p
.
p
.
layout
]
;
c
->
profile
=
p
.
seq_hdr
->
profile
;
frame
->
format
=
c
->
pix_fmt
=
pix_fmt
[
p
.
p
.
layout
][
p
.
p
.
bpc
==
10
];
frame
->
format
=
c
->
pix_fmt
=
pix_fmt
[
p
.
p
.
layout
][
p
.
p
.
bpc
==
10
];
frame
->
width
=
p
.
p
.
w
;
frame
->
width
=
p
.
p
.
w
;
frame
->
height
=
p
.
p
.
h
;
frame
->
height
=
p
.
p
.
h
;
...
...
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