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
99dd6fe6
Commit
99dd6fe6
authored
Mar 23, 2017
by
Clément Bœsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sws/tests/pixdesc_query: remove func wrappers
parent
bc7308aa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
42 deletions
+17
-42
pixdesc_query.c
libswscale/tests/pixdesc_query.c
+17
-42
No files found.
libswscale/tests/pixdesc_query.c
View file @
99dd6fe6
...
@@ -20,52 +20,27 @@
...
@@ -20,52 +20,27 @@
#include "libswscale/swscale_internal.h"
#include "libswscale/swscale_internal.h"
/* TODO: drop this wrapper when all the is*() becomes functions */
#define DECLARE_WRAPPER(macro) \
static int macro##_func(enum AVPixelFormat pix_fmt) \
{ \
return macro(pix_fmt); \
}
DECLARE_WRAPPER
(
is16BPS
)
DECLARE_WRAPPER
(
isNBPS
)
DECLARE_WRAPPER
(
isBE
)
DECLARE_WRAPPER
(
isYUV
)
DECLARE_WRAPPER
(
isPlanarYUV
)
DECLARE_WRAPPER
(
isRGB
)
DECLARE_WRAPPER
(
isGray
)
DECLARE_WRAPPER
(
isRGBinInt
)
DECLARE_WRAPPER
(
isBGRinInt
)
DECLARE_WRAPPER
(
isBayer
)
DECLARE_WRAPPER
(
isAnyRGB
)
DECLARE_WRAPPER
(
isALPHA
)
DECLARE_WRAPPER
(
isPacked
)
DECLARE_WRAPPER
(
isPlanar
)
DECLARE_WRAPPER
(
isPackedRGB
)
DECLARE_WRAPPER
(
isPlanarRGB
)
DECLARE_WRAPPER
(
usePal
)
static
const
struct
{
static
const
struct
{
const
char
*
class
;
const
char
*
class
;
int
(
*
cond
)(
enum
AVPixelFormat
pix_fmt
);
int
(
*
cond
)(
enum
AVPixelFormat
pix_fmt
);
}
query_tab
[]
=
{
}
query_tab
[]
=
{
{
"is16BPS"
,
is16BPS
_func
},
{
"is16BPS"
,
is16BPS
},
{
"isNBPS"
,
isNBPS
_func
},
{
"isNBPS"
,
isNBPS
},
{
"isBE"
,
isBE
_func
},
{
"isBE"
,
isBE
},
{
"isYUV"
,
isYUV
_func
},
{
"isYUV"
,
isYUV
},
{
"isPlanarYUV"
,
isPlanarYUV
_func
},
{
"isPlanarYUV"
,
isPlanarYUV
},
{
"isRGB"
,
isRGB
_func
},
{
"isRGB"
,
isRGB
},
{
"Gray"
,
isGray
_func
},
{
"Gray"
,
isGray
},
{
"RGBinInt"
,
isRGBinInt
_func
},
{
"RGBinInt"
,
isRGBinInt
},
{
"BGRinInt"
,
isBGRinInt
_func
},
{
"BGRinInt"
,
isBGRinInt
},
{
"Bayer"
,
isBayer
_func
},
{
"Bayer"
,
isBayer
},
{
"AnyRGB"
,
isAnyRGB
_func
},
{
"AnyRGB"
,
isAnyRGB
},
{
"ALPHA"
,
isALPHA
_func
},
{
"ALPHA"
,
isALPHA
},
{
"Packed"
,
isPacked
_func
},
{
"Packed"
,
isPacked
},
{
"Planar"
,
isPlanar
_func
},
{
"Planar"
,
isPlanar
},
{
"PackedRGB"
,
isPackedRGB
_func
},
{
"PackedRGB"
,
isPackedRGB
},
{
"PlanarRGB"
,
isPlanarRGB
_func
},
{
"PlanarRGB"
,
isPlanarRGB
},
{
"usePal"
,
usePal
_func
},
{
"usePal"
,
usePal
},
};
};
int
main
(
void
)
int
main
(
void
)
...
...
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