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
2114c424
Commit
2114c424
authored
Mar 21, 2020
by
Guo, Yejun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/vf_dnn_processing.c: fix typo for the linesize of dnn data
Signed-off-by:
Guo, Yejun
<
yejun.guo@intel.com
>
parent
ca76a5ba
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
vf_dnn_processing.c
libavfilter/vf_dnn_processing.c
+2
-2
No files found.
libavfilter/vf_dnn_processing.c
View file @
2114c424
...
...
@@ -329,7 +329,7 @@ static int copy_from_frame_to_dnn(DnnProcessingContext *ctx, const AVFrame *fram
if
(
dnn_input
->
dt
==
DNN_FLOAT
)
{
sws_scale
(
ctx
->
sws_gray8_to_grayf32
,
(
const
uint8_t
**
)
frame
->
data
,
frame
->
linesize
,
0
,
frame
->
height
,
(
uint8_t
*
const
*
)(
&
dnn_input
->
data
),
(
const
int
[
4
]){
frame
->
linesize
[
0
]
*
sizeof
(
float
),
0
,
0
,
0
});
(
const
int
[
4
]){
frame
->
width
*
3
*
sizeof
(
float
),
0
,
0
,
0
});
}
else
{
av_assert0
(
dnn_input
->
dt
==
DNN_UINT8
);
av_image_copy_plane
(
dnn_input
->
data
,
bytewidth
,
...
...
@@ -369,7 +369,7 @@ static int copy_from_dnn_to_frame(DnnProcessingContext *ctx, AVFrame *frame)
case
AV_PIX_FMT_BGR24
:
if
(
dnn_output
->
dt
==
DNN_FLOAT
)
{
sws_scale
(
ctx
->
sws_grayf32_to_gray8
,
(
const
uint8_t
*
[
4
]){(
const
uint8_t
*
)
dnn_output
->
data
,
0
,
0
,
0
},
(
const
int
[
4
]){
frame
->
linesize
[
0
]
*
sizeof
(
float
),
0
,
0
,
0
},
(
const
int
[
4
]){
frame
->
width
*
3
*
sizeof
(
float
),
0
,
0
,
0
},
0
,
frame
->
height
,
(
uint8_t
*
const
*
)
frame
->
data
,
frame
->
linesize
);
}
else
{
...
...
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