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
0c511eb2
Commit
0c511eb2
authored
Sep 06, 2015
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/vf_stereo3d: stop dumping half of data for interleave rows output
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
32dd9b2c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
14 deletions
+5
-14
vf_stereo3d.c
libavfilter/vf_stereo3d.c
+5
-14
No files found.
libavfilter/vf_stereo3d.c
View file @
0c511eb2
...
@@ -327,13 +327,6 @@ static int config_output(AVFilterLink *outlink)
...
@@ -327,13 +327,6 @@ static int config_output(AVFilterLink *outlink)
case
ABOVE_BELOW_LR
:
case
ABOVE_BELOW_LR
:
case
ABOVE_BELOW_2_RL
:
case
ABOVE_BELOW_2_RL
:
case
ABOVE_BELOW_RL
:
case
ABOVE_BELOW_RL
:
if
(
s
->
out
.
format
==
INTERLEAVE_ROWS_LR
||
s
->
out
.
format
==
INTERLEAVE_ROWS_RL
)
{
if
(
inlink
->
h
&
3
)
{
av_log
(
ctx
,
AV_LOG_ERROR
,
"height must be multiple of 4
\n
"
);
return
AVERROR_INVALIDDATA
;
}
}
if
(
inlink
->
h
&
1
)
{
if
(
inlink
->
h
&
1
)
{
av_log
(
ctx
,
AV_LOG_ERROR
,
"height must be even
\n
"
);
av_log
(
ctx
,
AV_LOG_ERROR
,
"height must be even
\n
"
);
return
AVERROR_INVALIDDATA
;
return
AVERROR_INVALIDDATA
;
...
@@ -391,9 +384,7 @@ static int config_output(AVFilterLink *outlink)
...
@@ -391,9 +384,7 @@ static int config_output(AVFilterLink *outlink)
s
->
in
.
off_lstep
=
1
;
s
->
in
.
off_lstep
=
1
;
else
else
s
->
in
.
off_rstep
=
1
;
s
->
in
.
off_rstep
=
1
;
if
(
s
->
out
.
format
!=
INTERLEAVE_ROWS_LR
&&
if
(
s
->
out
.
format
!=
CHECKERBOARD_LR
&&
s
->
out
.
format
!=
INTERLEAVE_ROWS_RL
&&
s
->
out
.
format
!=
CHECKERBOARD_LR
&&
s
->
out
.
format
!=
CHECKERBOARD_RL
)
s
->
out
.
format
!=
CHECKERBOARD_RL
)
s
->
height
=
inlink
->
h
/
2
;
s
->
height
=
inlink
->
h
/
2
;
break
;
break
;
...
@@ -468,16 +459,16 @@ static int config_output(AVFilterLink *outlink)
...
@@ -468,16 +459,16 @@ static int config_output(AVFilterLink *outlink)
s
->
out
.
row_left
=
s
->
height
;
s
->
out
.
row_left
=
s
->
height
;
break
;
break
;
case
INTERLEAVE_ROWS_LR
:
case
INTERLEAVE_ROWS_LR
:
s
->
in
.
row_step
=
2
;
s
->
in
.
row_step
=
1
+
(
s
->
in
.
format
==
INTERLEAVE_ROWS_RL
)
;
s
->
out
.
row_step
=
2
;
s
->
out
.
row_step
=
2
;
s
->
height
=
s
->
height
/
2
;
s
->
out
.
height
=
s
->
height
*
2
;
s
->
out
.
off_rstep
=
1
;
s
->
out
.
off_rstep
=
1
;
s
->
in
.
off_rstep
=
s
->
in
.
format
!=
INTERLEAVE_ROWS_RL
;
s
->
in
.
off_rstep
=
s
->
in
.
format
!=
INTERLEAVE_ROWS_RL
;
break
;
break
;
case
INTERLEAVE_ROWS_RL
:
case
INTERLEAVE_ROWS_RL
:
s
->
in
.
row_step
=
2
;
s
->
in
.
row_step
=
1
+
(
s
->
in
.
format
==
INTERLEAVE_ROWS_LR
)
;
s
->
out
.
row_step
=
2
;
s
->
out
.
row_step
=
2
;
s
->
height
=
s
->
height
/
2
;
s
->
out
.
height
=
s
->
height
*
2
;
s
->
out
.
off_lstep
=
1
;
s
->
out
.
off_lstep
=
1
;
s
->
in
.
off_lstep
=
s
->
in
.
format
!=
INTERLEAVE_ROWS_LR
;
s
->
in
.
off_lstep
=
s
->
in
.
format
!=
INTERLEAVE_ROWS_LR
;
break
;
break
;
...
...
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