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
5dbd491e
Commit
5dbd491e
authored
Jun 23, 2015
by
Tom Butterworth
Committed by
Vittorio Giovara
Jun 24, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
TextureDSP: fix erroneous condition which produced blocky output for DXT
parent
4d554843
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
texturedspenc.c
libavcodec/texturedspenc.c
+1
-1
No files found.
libavcodec/texturedspenc.c
View file @
5dbd491e
...
@@ -363,7 +363,7 @@ static int refine_colors(const uint8_t *block, ptrdiff_t stride,
...
@@ -363,7 +363,7 @@ static int refine_colors(const uint8_t *block, ptrdiff_t stride,
const
int
prods
[
4
]
=
{
0x090000
,
0x000900
,
0x040102
,
0x010402
};
const
int
prods
[
4
]
=
{
0x090000
,
0x000900
,
0x040102
,
0x010402
};
/* Check if all pixels have the same index */
/* Check if all pixels have the same index */
if
(
mask
^
(
mask
<<
2
)
<
4
)
{
if
(
(
mask
^
(
mask
<<
2
)
)
<
4
)
{
/* If so, linear system would be singular; solve using optimal
/* If so, linear system would be singular; solve using optimal
* single-color match on average color. */
* single-color match on average color. */
int
r
=
8
,
g
=
8
,
b
=
8
;
int
r
=
8
,
g
=
8
,
b
=
8
;
...
...
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