Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
57e21062
Commit
57e21062
authored
Mar 31, 2007
by
Antoine Cellerier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable config chain syntax and flag the vars as commands.
parent
0f9d1f9e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
6 deletions
+14
-6
modules/video_filter/colorthres.c
modules/video_filter/colorthres.c
+14
-6
No files found.
modules/video_filter/colorthres.c
View file @
57e21062
...
@@ -57,6 +57,7 @@ static int pi_color_values[] = {
...
@@ -57,6 +57,7 @@ static int pi_color_values[] = {
static
const
char
*
ppsz_color_descriptions
[]
=
{
static
const
char
*
ppsz_color_descriptions
[]
=
{
N_
(
"Red"
),
N_
(
"Fuchsia"
),
N_
(
"Yellow"
),
N_
(
"Lime"
),
N_
(
"Blue"
),
N_
(
"Aqua"
)
};
N_
(
"Red"
),
N_
(
"Fuchsia"
),
N_
(
"Yellow"
),
N_
(
"Lime"
),
N_
(
"Blue"
),
N_
(
"Aqua"
)
};
#define CFG_PREFIX "colorthres-"
vlc_module_begin
();
vlc_module_begin
();
set_description
(
_
(
"Color threshold filter"
)
);
set_description
(
_
(
"Color threshold filter"
)
);
...
@@ -64,16 +65,20 @@ vlc_module_begin();
...
@@ -64,16 +65,20 @@ vlc_module_begin();
set_category
(
CAT_VIDEO
);
set_category
(
CAT_VIDEO
);
set_subcategory
(
SUBCAT_VIDEO_VFILTER
);
set_subcategory
(
SUBCAT_VIDEO_VFILTER
);
set_capability
(
"video filter2"
,
0
);
set_capability
(
"video filter2"
,
0
);
add_integer
(
"colorthres-
color"
,
0x00FF0000
,
NULL
,
COLOR_TEXT
,
add_integer
(
CFG_PREFIX
"
color"
,
0x00FF0000
,
NULL
,
COLOR_TEXT
,
COLOR_LONGTEXT
,
VLC_FALSE
);
COLOR_LONGTEXT
,
VLC_FALSE
);
change_integer_list
(
pi_color_values
,
ppsz_color_descriptions
,
0
);
change_integer_list
(
pi_color_values
,
ppsz_color_descriptions
,
0
);
add_integer
(
"colorthres-
saturationthres"
,
20
,
NULL
,
"saturaton threshold"
,
add_integer
(
CFG_PREFIX
"
saturationthres"
,
20
,
NULL
,
"saturaton threshold"
,
""
,
VLC_FALSE
);
""
,
VLC_FALSE
);
add_integer
(
"colorthres-
similaritythres"
,
15
,
NULL
,
"similarity threshold"
,
add_integer
(
CFG_PREFIX
"
similaritythres"
,
15
,
NULL
,
"similarity threshold"
,
""
,
VLC_FALSE
);
""
,
VLC_FALSE
);
set_callbacks
(
Create
,
Destroy
);
set_callbacks
(
Create
,
Destroy
);
vlc_module_end
();
vlc_module_end
();
static
const
char
*
ppsz_filter_options
[]
=
{
"color"
,
"saturationthes"
,
"similaritythres"
,
NULL
};
/*****************************************************************************
/*****************************************************************************
* filter_sys_t: adjust filter method descriptor
* filter_sys_t: adjust filter method descriptor
*****************************************************************************/
*****************************************************************************/
...
@@ -104,9 +109,12 @@ static int Create( vlc_object_t *p_this )
...
@@ -104,9 +109,12 @@ static int Create( vlc_object_t *p_this )
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
}
}
var_Create
(
p_filter
,
"colorthres-color"
,
VLC_VAR_INTEGER
|
VLC_VAR_DOINHERIT
);
config_ChainParse
(
p_filter
,
CFG_PREFIX
,
ppsz_filter_options
,
var_Create
(
p_filter
,
"colorthres-similaritythres"
,
VLC_VAR_INTEGER
|
VLC_VAR_DOINHERIT
);
p_filter
->
p_cfg
);
var_Create
(
p_filter
,
"colorthres-saturationthres"
,
VLC_VAR_INTEGER
|
VLC_VAR_DOINHERIT
);
var_CreateGetIntegerCommand
(
p_filter
,
CFG_PREFIX
"color"
);
var_CreateGetIntegerCommand
(
p_filter
,
CFG_PREFIX
"similaritythres"
);
var_CreateGetIntegerCommand
(
p_filter
,
CFG_PREFIX
"saturationthres"
);
/* Allocate structure */
/* Allocate structure */
p_filter
->
p_sys
=
malloc
(
sizeof
(
filter_sys_t
)
);
p_filter
->
p_sys
=
malloc
(
sizeof
(
filter_sys_t
)
);
if
(
p_filter
->
p_sys
==
NULL
)
if
(
p_filter
->
p_sys
==
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