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
9f5bd895
Commit
9f5bd895
authored
Feb 01, 2008
by
Aurelien Jacobs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
const
Originally committed as revision 11799 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
aa819b9b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
xan.c
libavcodec/xan.c
+3
-5
No files found.
libavcodec/xan.c
View file @
9f5bd895
...
@@ -206,7 +206,7 @@ static void xan_unpack(unsigned char *dest, const unsigned char *src, int dest_l
...
@@ -206,7 +206,7 @@ static void xan_unpack(unsigned char *dest, const unsigned char *src, int dest_l
}
}
static
inline
void
xan_wc3_output_pixel_run
(
XanContext
*
s
,
static
inline
void
xan_wc3_output_pixel_run
(
XanContext
*
s
,
unsigned
char
*
pixel_buffer
,
int
x
,
int
y
,
int
pixel_count
)
const
unsigned
char
*
pixel_buffer
,
int
x
,
int
y
,
int
pixel_count
)
{
{
int
stride
;
int
stride
;
int
line_inc
;
int
line_inc
;
...
@@ -284,8 +284,7 @@ static void xan_wc3_decode_frame(XanContext *s) {
...
@@ -284,8 +284,7 @@ static void xan_wc3_decode_frame(XanContext *s) {
unsigned
char
*
opcode_buffer
=
s
->
buffer1
;
unsigned
char
*
opcode_buffer
=
s
->
buffer1
;
int
opcode_buffer_size
=
s
->
buffer1_size
;
int
opcode_buffer_size
=
s
->
buffer1_size
;
unsigned
char
*
imagedata_buffer
=
s
->
buffer2
;
const
unsigned
char
*
imagedata_buffer
=
s
->
buffer2
;
int
imagedata_buffer_size
=
s
->
buffer2_size
;
/* pointers to segments inside the compressed chunk */
/* pointers to segments inside the compressed chunk */
const
unsigned
char
*
huffman_segment
;
const
unsigned
char
*
huffman_segment
;
...
@@ -301,8 +300,7 @@ static void xan_wc3_decode_frame(XanContext *s) {
...
@@ -301,8 +300,7 @@ static void xan_wc3_decode_frame(XanContext *s) {
xan_huffman_decode
(
opcode_buffer
,
huffman_segment
,
opcode_buffer_size
);
xan_huffman_decode
(
opcode_buffer
,
huffman_segment
,
opcode_buffer_size
);
if
(
imagedata_segment
[
0
]
==
2
)
if
(
imagedata_segment
[
0
]
==
2
)
xan_unpack
(
imagedata_buffer
,
&
imagedata_segment
[
1
],
xan_unpack
(
s
->
buffer2
,
&
imagedata_segment
[
1
],
s
->
buffer2_size
);
imagedata_buffer_size
);
else
else
imagedata_buffer
=
&
imagedata_segment
[
1
];
imagedata_buffer
=
&
imagedata_segment
[
1
];
...
...
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