Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
d6635dad
Commit
d6635dad
authored
Mar 19, 2017
by
Clément Bœsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
swscale: remove unused is{RGB,BGR}inBytes
parent
ff6bc16c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
41 deletions
+0
-41
swscale_internal.h
libswscale/swscale_internal.h
+0
-19
pixdesc_query.c
libswscale/tests/pixdesc_query.c
+0
-4
sws-pixdesc-query
tests/ref/fate/sws-pixdesc-query
+0
-18
No files found.
libswscale/swscale_internal.h
View file @
d6635dad
...
...
@@ -741,25 +741,6 @@ static av_always_inline int isGray(enum AVPixelFormat pix_fmt)
(x) == AV_PIX_FMT_MONOWHITE \
)
#define isRGBinBytes(x) ( \
(x) == AV_PIX_FMT_RGB48BE \
|| (x) == AV_PIX_FMT_RGB48LE \
|| (x) == AV_PIX_FMT_RGBA64BE \
|| (x) == AV_PIX_FMT_RGBA64LE \
|| (x) == AV_PIX_FMT_RGBA \
|| (x) == AV_PIX_FMT_ARGB \
|| (x) == AV_PIX_FMT_RGB24 \
)
#define isBGRinBytes(x) ( \
(x) == AV_PIX_FMT_BGR48BE \
|| (x) == AV_PIX_FMT_BGR48LE \
|| (x) == AV_PIX_FMT_BGRA64BE \
|| (x) == AV_PIX_FMT_BGRA64LE \
|| (x) == AV_PIX_FMT_BGRA \
|| (x) == AV_PIX_FMT_ABGR \
|| (x) == AV_PIX_FMT_BGR24 \
)
static
av_always_inline
int
isBayer
(
enum
AVPixelFormat
pix_fmt
)
{
const
AVPixFmtDescriptor
*
desc
=
av_pix_fmt_desc_get
(
pix_fmt
);
...
...
libswscale/tests/pixdesc_query.c
View file @
d6635dad
...
...
@@ -36,8 +36,6 @@ DECLARE_WRAPPER(isRGB)
DECLARE_WRAPPER
(
isGray
)
DECLARE_WRAPPER
(
isRGBinInt
)
DECLARE_WRAPPER
(
isBGRinInt
)
DECLARE_WRAPPER
(
isRGBinBytes
)
DECLARE_WRAPPER
(
isBGRinBytes
)
DECLARE_WRAPPER
(
isBayer
)
DECLARE_WRAPPER
(
isAnyRGB
)
DECLARE_WRAPPER
(
isALPHA
)
...
...
@@ -60,8 +58,6 @@ static const struct {
{
"Gray"
,
isGray_func
},
{
"RGBinInt"
,
isRGBinInt_func
},
{
"BGRinInt"
,
isBGRinInt_func
},
{
"RGBinBytes"
,
isRGBinBytes_func
},
{
"BGRinBytes"
,
isBGRinBytes_func
},
{
"Bayer"
,
isBayer_func
},
{
"AnyRGB"
,
isAnyRGB_func
},
{
"ALPHA"
,
isALPHA_func
},
...
...
tests/ref/fate/sws-pixdesc-query
View file @
d6635dad
...
...
@@ -440,24 +440,6 @@ BGRinInt:
bgra64be
bgra64le
RGBinBytes:
rgb24
argb
rgba
rgb48be
rgb48le
rgba64be
rgba64le
BGRinBytes:
bgr24
abgr
bgra
bgr48be
bgr48le
bgra64be
bgra64le
Bayer:
bayer_bggr8
bayer_rggb8
...
...
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