Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
libaec
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Mathis Rosenhauer
libaec
Commits
e4924f2c
Commit
e4924f2c
authored
Nov 20, 2012
by
Mathis Rosenhauer
Committed by
Thomas Jahns
Feb 19, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only copy options actually set
parent
2e015ff3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
src/sz_compat.c
src/sz_compat.c
+3
-2
No files found.
src/sz_compat.c
View file @
e4924f2c
...
...
@@ -18,7 +18,8 @@ static int convert_options(int sz_opts)
co
[
SZ_NN_OPTION_MASK
]
=
AEC_DATA_PREPROCESS
;
for
(
i
=
1
;
i
<
NOPTS
;
i
<<=
1
)
opts
|=
co
[
i
];
if
(
sz_opts
&
i
)
opts
|=
co
[
i
];
return
opts
;
}
...
...
@@ -101,7 +102,7 @@ static size_t remove_padding(void *buf, size_t total,
j
-=
padding_size
;
memcpy
((
char
*
)
buf
+
j
,
(
char
*
)
buf
+
i
,
pixel_size
);
}
if
(
(
i
%
(
line_size
+
padding_size
)
)
==
0
)
if
(
i
%
(
line_size
+
padding_size
)
==
0
)
j
-=
padding_size
;
return
j
;
}
...
...
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