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
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 @@
#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
{
const
char
*
class
;
int
(
*
cond
)(
enum
AVPixelFormat
pix_fmt
);
}
query_tab
[]
=
{
{
"is16BPS"
,
is16BPS
_func
},
{
"isNBPS"
,
isNBPS
_func
},
{
"isBE"
,
isBE
_func
},
{
"isYUV"
,
isYUV
_func
},
{
"isPlanarYUV"
,
isPlanarYUV
_func
},
{
"isRGB"
,
isRGB
_func
},
{
"Gray"
,
isGray
_func
},
{
"RGBinInt"
,
isRGBinInt
_func
},
{
"BGRinInt"
,
isBGRinInt
_func
},
{
"Bayer"
,
isBayer
_func
},
{
"AnyRGB"
,
isAnyRGB
_func
},
{
"ALPHA"
,
isALPHA
_func
},
{
"Packed"
,
isPacked
_func
},
{
"Planar"
,
isPlanar
_func
},
{
"PackedRGB"
,
isPackedRGB
_func
},
{
"PlanarRGB"
,
isPlanarRGB
_func
},
{
"usePal"
,
usePal
_func
},
{
"is16BPS"
,
is16BPS
},
{
"isNBPS"
,
isNBPS
},
{
"isBE"
,
isBE
},
{
"isYUV"
,
isYUV
},
{
"isPlanarYUV"
,
isPlanarYUV
},
{
"isRGB"
,
isRGB
},
{
"Gray"
,
isGray
},
{
"RGBinInt"
,
isRGBinInt
},
{
"BGRinInt"
,
isBGRinInt
},
{
"Bayer"
,
isBayer
},
{
"AnyRGB"
,
isAnyRGB
},
{
"ALPHA"
,
isALPHA
},
{
"Packed"
,
isPacked
},
{
"Planar"
,
isPlanar
},
{
"PackedRGB"
,
isPackedRGB
},
{
"PlanarRGB"
,
isPlanarRGB
},
{
"usePal"
,
usePal
},
};
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