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
99a28333
Commit
99a28333
authored
Sep 11, 2013
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/vf_traspose: move switch out of loop
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
38155b47
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
15 deletions
+23
-15
vf_transpose.c
libavfilter/vf_transpose.c
+23
-15
No files found.
libavfilter/vf_transpose.c
View file @
99a28333
...
...
@@ -174,38 +174,46 @@ static int filter_slice(AVFilterContext *ctx, void *arg, int jobnr,
dstlinesize
*=
-
1
;
}
for
(
y
=
start
;
y
<
end
;
y
++
)
{
switch
(
pixstep
)
{
case
1
:
switch
(
pixstep
)
{
case
1
:
for
(
y
=
start
;
y
<
end
;
y
++
,
dst
+=
dstlinesize
)
for
(
x
=
0
;
x
<
outw
;
x
++
)
dst
[
x
]
=
src
[
x
*
srclinesize
+
y
];
break
;
case
2
:
break
;
case
2
:
for
(
y
=
start
;
y
<
end
;
y
++
,
dst
+=
dstlinesize
)
{
for
(
x
=
0
;
x
<
outw
;
x
++
)
*
((
uint16_t
*
)(
dst
+
2
*
x
))
=
*
((
uint16_t
*
)(
src
+
x
*
srclinesize
+
y
*
2
));
break
;
case
3
:
}
break
;
case
3
:
for
(
y
=
start
;
y
<
end
;
y
++
,
dst
+=
dstlinesize
)
{
for
(
x
=
0
;
x
<
outw
;
x
++
)
{
int32_t
v
=
AV_RB24
(
src
+
x
*
srclinesize
+
y
*
3
);
AV_WB24
(
dst
+
3
*
x
,
v
);
}
break
;
case
4
:
}
break
;
case
4
:
for
(
y
=
start
;
y
<
end
;
y
++
,
dst
+=
dstlinesize
)
{
for
(
x
=
0
;
x
<
outw
;
x
++
)
*
((
uint32_t
*
)(
dst
+
4
*
x
))
=
*
((
uint32_t
*
)(
src
+
x
*
srclinesize
+
y
*
4
));
break
;
case
6
:
}
break
;
case
6
:
for
(
y
=
start
;
y
<
end
;
y
++
,
dst
+=
dstlinesize
)
{
for
(
x
=
0
;
x
<
outw
;
x
++
)
{
int64_t
v
=
AV_RB48
(
src
+
x
*
srclinesize
+
y
*
6
);
AV_WB48
(
dst
+
6
*
x
,
v
);
}
break
;
case
8
:
}
break
;
case
8
:
for
(
y
=
start
;
y
<
end
;
y
++
,
dst
+=
dstlinesize
)
{
for
(
x
=
0
;
x
<
outw
;
x
++
)
*
((
uint64_t
*
)(
dst
+
8
*
x
))
=
*
((
uint64_t
*
)(
src
+
x
*
srclinesize
+
y
*
8
));
break
;
}
dst
+=
dstlinesize
;
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