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
2755e41d
Commit
2755e41d
authored
Feb 01, 2008
by
Aurelien Jacobs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use AV_RL* instead of le2me_*
Originally committed as revision 11802 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
4e56af82
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
s3tc.c
libavcodec/s3tc.c
+3
-3
No files found.
libavcodec/s3tc.c
View file @
2755e41d
...
...
@@ -31,8 +31,8 @@ static inline void dxt1_decode_pixels(const uint8_t *s, uint32_t *d,
unsigned
int
rb0
,
rb1
,
rb2
,
rb3
,
g0
,
g1
,
g2
,
g3
;
uint32_t
colors
[
4
],
pixels
;
c0
=
le2me_16
(
*
(
uint16_t
*
)(
s
)
);
c1
=
le2me_16
(
*
(
uint16_t
*
)(
s
+
2
)
);
c0
=
AV_RL16
(
s
);
c1
=
AV_RL16
(
s
+
2
);
rb0
=
(
c0
<<
3
|
c0
<<
8
)
&
0xf800f8
;
rb1
=
(
c1
<<
3
|
c1
<<
8
)
&
0xf800f8
;
...
...
@@ -60,7 +60,7 @@ static inline void dxt1_decode_pixels(const uint8_t *s, uint32_t *d,
colors
[
2
]
=
rb2
+
g2
+
a
;
pixels
=
le2me_32
(
*
(
uint32_t
*
)(
s
+
4
)
);
pixels
=
AV_RL32
(
s
+
4
);
for
(
y
=
0
;
y
<
4
;
y
++
)
{
for
(
x
=
0
;
x
<
4
;
x
++
)
{
a
=
(
alpha
&
0x0f
)
<<
28
;
...
...
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