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
47fd73ac
Commit
47fd73ac
authored
Dec 06, 2019
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/vf_geq: Add NB_PLANES
Signed-off-by:
Michael Niedermayer
<
michael@niedermayer.cc
>
parent
45259a0e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
vf_geq.c
libavfilter/vf_geq.c
+4
-2
No files found.
libavfilter/vf_geq.c
View file @
47fd73ac
...
...
@@ -33,6 +33,8 @@
#include "libavutil/pixdesc.h"
#include "internal.h"
#define NB_PLANES 4
enum
InterpolationMethods
{
INTERP_NEAREST
,
INTERP_BILINEAR
,
...
...
@@ -44,7 +46,7 @@ enum { VAR_X, VAR_Y, VAR_W, VAR_H, VAR_N, VAR_
typedef
struct
GEQContext
{
const
AVClass
*
class
;
AVExpr
*
e
[
4
];
///< expressions for each plane
AVExpr
*
e
[
NB_PLANES
];
///< expressions for each plane
char
*
expr_str
[
4
+
3
];
///< expression strings for each plane
AVFrame
*
picref
;
///< current input buffer
uint8_t
*
dst
;
///< reference pointer to the 8bits output
...
...
@@ -188,7 +190,7 @@ static av_cold int geq_init(AVFilterContext *ctx)
goto
end
;
}
for
(
plane
=
0
;
plane
<
4
;
plane
++
)
{
for
(
plane
=
0
;
plane
<
NB_PLANES
;
plane
++
)
{
static
double
(
*
p
[])(
void
*
,
double
,
double
)
=
{
lum
,
cb
,
cr
,
alpha
};
static
const
char
*
const
func2_yuv_names
[]
=
{
"lum"
,
"cb"
,
"cr"
,
"alpha"
,
"p"
,
NULL
};
static
const
char
*
const
func2_rgb_names
[]
=
{
"g"
,
"b"
,
"r"
,
"alpha"
,
"p"
,
NULL
};
...
...
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