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
ef96bf29
Commit
ef96bf29
authored
Feb 14, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
swscale: Fix rounding in yuv2mono_1_c_template()
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
c0c32a37
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
output.c
libswscale/output.c
+8
-8
No files found.
libswscale/output.c
View file @
ef96bf29
...
...
@@ -378,14 +378,14 @@ yuv2mono_1_c_template(SwsContext *c, const int16_t *buf0,
int
i
;
for
(
i
=
0
;
i
<
dstW
-
7
;
i
+=
8
)
{
int
acc
=
g
[(
buf0
[
i
]
>>
7
)
+
d128
[
0
]];
acc
+=
acc
+
g
[(
buf0
[
i
+
1
]
>>
7
)
+
d128
[
1
]];
acc
+=
acc
+
g
[(
buf0
[
i
+
2
]
>>
7
)
+
d128
[
2
]];
acc
+=
acc
+
g
[(
buf0
[
i
+
3
]
>>
7
)
+
d128
[
3
]];
acc
+=
acc
+
g
[(
buf0
[
i
+
4
]
>>
7
)
+
d128
[
4
]];
acc
+=
acc
+
g
[(
buf0
[
i
+
5
]
>>
7
)
+
d128
[
5
]];
acc
+=
acc
+
g
[(
buf0
[
i
+
6
]
>>
7
)
+
d128
[
6
]];
acc
+=
acc
+
g
[(
buf0
[
i
+
7
]
>>
7
)
+
d128
[
7
]];
int
acc
=
g
[(
(
buf0
[
i
]
+
64
)
>>
7
)
+
d128
[
0
]];
acc
+=
acc
+
g
[(
(
buf0
[
i
+
1
]
+
64
)
>>
7
)
+
d128
[
1
]];
acc
+=
acc
+
g
[(
(
buf0
[
i
+
2
]
+
64
)
>>
7
)
+
d128
[
2
]];
acc
+=
acc
+
g
[(
(
buf0
[
i
+
3
]
+
64
)
>>
7
)
+
d128
[
3
]];
acc
+=
acc
+
g
[(
(
buf0
[
i
+
4
]
+
64
)
>>
7
)
+
d128
[
4
]];
acc
+=
acc
+
g
[(
(
buf0
[
i
+
5
]
+
64
)
>>
7
)
+
d128
[
5
]];
acc
+=
acc
+
g
[(
(
buf0
[
i
+
6
]
+
64
)
>>
7
)
+
d128
[
6
]];
acc
+=
acc
+
g
[(
(
buf0
[
i
+
7
]
+
64
)
>>
7
)
+
d128
[
7
]];
output_pixel
(
*
dest
++
,
acc
);
}
}
...
...
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