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
c30875e8
Commit
c30875e8
authored
Mar 19, 2017
by
Clément Bœsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
swscale: use a function for isBayer
parent
9c2436e1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
14 deletions
+6
-14
swscale_internal.h
libswscale/swscale_internal.h
+6
-14
No files found.
libswscale/swscale_internal.h
View file @
c30875e8
...
...
@@ -760,20 +760,12 @@ static av_always_inline int isGray(enum AVPixelFormat pix_fmt)
|| (x) == AV_PIX_FMT_BGR24 \
)
#define isBayer(x) ( \
(x)==AV_PIX_FMT_BAYER_BGGR8 \
|| (x)==AV_PIX_FMT_BAYER_BGGR16LE \
|| (x)==AV_PIX_FMT_BAYER_BGGR16BE \
|| (x)==AV_PIX_FMT_BAYER_RGGB8 \
|| (x)==AV_PIX_FMT_BAYER_RGGB16LE \
|| (x)==AV_PIX_FMT_BAYER_RGGB16BE \
|| (x)==AV_PIX_FMT_BAYER_GBRG8 \
|| (x)==AV_PIX_FMT_BAYER_GBRG16LE \
|| (x)==AV_PIX_FMT_BAYER_GBRG16BE \
|| (x)==AV_PIX_FMT_BAYER_GRBG8 \
|| (x)==AV_PIX_FMT_BAYER_GRBG16LE \
|| (x)==AV_PIX_FMT_BAYER_GRBG16BE \
)
static
av_always_inline
int
isBayer
(
enum
AVPixelFormat
pix_fmt
)
{
const
AVPixFmtDescriptor
*
desc
=
av_pix_fmt_desc_get
(
pix_fmt
);
av_assert0
(
desc
);
return
!!
(
desc
->
flags
&
AV_PIX_FMT_FLAG_BAYER
);
}
#define isAnyRGB(x) \
( \
...
...
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