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
7ccc5848
Commit
7ccc5848
authored
Mar 05, 2015
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/vf_paletteuse: Use int where AVERROR can be returned
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
6d7e57e8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
vf_paletteuse.c
libavfilter/vf_paletteuse.c
+3
-3
No files found.
libavfilter/vf_paletteuse.c
View file @
7ccc5848
...
...
@@ -316,7 +316,7 @@ end:
* Note: r, g, and b are the component of c but are passed as well to avoid
* recomputing them (they are generally computed by the caller for other uses).
*/
static
av_always_inline
uint8_
t
color_get
(
struct
cache_node
*
cache
,
uint32_t
color
,
static
av_always_inline
in
t
color_get
(
struct
cache_node
*
cache
,
uint32_t
color
,
uint8_t
r
,
uint8_t
g
,
uint8_t
b
,
const
struct
color_node
*
map
,
const
uint32_t
*
palette
,
...
...
@@ -346,7 +346,7 @@ static av_always_inline uint8_t color_get(struct cache_node *cache, uint32_t col
return
e
->
pal_entry
;
}
static
av_always_inline
uint8_
t
get_dst_color_err
(
struct
cache_node
*
cache
,
static
av_always_inline
in
t
get_dst_color_err
(
struct
cache_node
*
cache
,
uint32_t
c
,
const
struct
color_node
*
map
,
const
uint32_t
*
palette
,
int
*
er
,
int
*
eg
,
int
*
eb
,
...
...
@@ -355,7 +355,7 @@ static av_always_inline uint8_t get_dst_color_err(struct cache_node *cache,
const
uint8_t
r
=
c
>>
16
&
0xff
;
const
uint8_t
g
=
c
>>
8
&
0xff
;
const
uint8_t
b
=
c
&
0xff
;
const
uint8_
t
dstx
=
color_get
(
cache
,
c
,
r
,
g
,
b
,
map
,
palette
,
search_method
);
const
in
t
dstx
=
color_get
(
cache
,
c
,
r
,
g
,
b
,
map
,
palette
,
search_method
);
const
uint32_t
dstc
=
palette
[
dstx
];
*
er
=
r
-
(
dstc
>>
16
&
0xff
);
*
eg
=
g
-
(
dstc
>>
8
&
0xff
);
...
...
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