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
2b9a52bc
Commit
2b9a52bc
authored
Mar 19, 2017
by
Clément Bœsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
swscale: use a function for isAnyRGB
parent
c30875e8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
swscale_internal.h
libswscale/swscale_internal.h
+7
-7
No files found.
libswscale/swscale_internal.h
View file @
2b9a52bc
...
...
@@ -767,13 +767,13 @@ static av_always_inline int isBayer(enum AVPixelFormat pix_fmt)
return
!!
(
desc
->
flags
&
AV_PIX_FMT_FLAG_BAYER
);
}
#define isAnyRGB(x) \
( \
isBayer(x) || \
isRGBinInt(x) || \
isBGRinInt(x) || \
isRGB(x) \
)
static
av_always_inline
int
isAnyRGB
(
enum
AVPixelFormat
pix_fmt
)
{
const
AVPixFmtDescriptor
*
desc
=
av_pix_fmt_desc_get
(
pix_fmt
);
av_assert0
(
desc
);
return
(
desc
->
flags
&
AV_PIX_FMT_FLAG_RGB
)
||
pix_fmt
==
AV_PIX_FMT_MONOBLACK
||
pix_fmt
==
AV_PIX_FMT_MONOWHITE
;
}
static
av_always_inline
int
isALPHA
(
enum
AVPixelFormat
pix_fmt
)
{
...
...
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