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
fcea6f71
Commit
fcea6f71
authored
Sep 16, 2013
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/vf_stereo3d: avoid pointless copy
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
7283d2bb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
vf_stereo3d.c
libavfilter/vf_stereo3d.c
+6
-7
No files found.
libavfilter/vf_stereo3d.c
View file @
fcea6f71
...
...
@@ -133,7 +133,7 @@ typedef struct Stereo3DContext {
StereoComponent
in
,
out
;
int
width
,
height
;
int
row_step
;
int
ana_matrix
[
3
][
6
];
const
int
*
ana_matrix
[
3
];
int
nb_planes
;
int
linesize
[
4
];
int
pheight
[
4
];
...
...
@@ -389,7 +389,9 @@ static int config_output(AVFilterLink *outlink)
case
ANAGLYPH_YB_HALF
:
case
ANAGLYPH_YB_COLOR
:
case
ANAGLYPH_YB_DUBOIS
:
memcpy
(
s
->
ana_matrix
,
ana_coeff
[
s
->
out
.
format
],
sizeof
(
s
->
ana_matrix
));
s
->
ana_matrix
[
0
]
=
&
ana_coeff
[
s
->
out
.
format
][
0
][
0
];
s
->
ana_matrix
[
1
]
=
&
ana_coeff
[
s
->
out
.
format
][
1
][
0
];
s
->
ana_matrix
[
2
]
=
&
ana_coeff
[
s
->
out
.
format
][
2
][
0
];
break
;
case
SIDE_BY_SIDE_2_LR
:
aspect
.
den
*=
2
;
...
...
@@ -577,15 +579,12 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *inpicref)
case
ANAGLYPH_YB_HALF
:
case
ANAGLYPH_YB_COLOR
:
case
ANAGLYPH_YB_DUBOIS
:
{
int
i
,
x
,
y
,
il
,
ir
,
o
;
int
x
,
y
,
il
,
ir
,
o
;
uint8_t
*
lsrc
=
ileft
->
data
[
0
];
uint8_t
*
rsrc
=
iright
->
data
[
0
];
uint8_t
*
dst
=
out
->
data
[
0
];
int
out_width
=
s
->
out
.
width
;
int
*
ana_matrix
[
3
];
for
(
i
=
0
;
i
<
3
;
i
++
)
ana_matrix
[
i
]
=
s
->
ana_matrix
[
i
];
const
int
**
ana_matrix
=
s
->
ana_matrix
;
for
(
y
=
0
;
y
<
s
->
out
.
height
;
y
++
)
{
o
=
out
->
linesize
[
0
]
*
y
;
...
...
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