Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
2c1fd631
Commit
2c1fd631
authored
Jan 18, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Panoramix: use var_Inherit
parent
3d7d7485
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
26 deletions
+26
-26
modules/video_filter/panoramix.c
modules/video_filter/panoramix.c
+26
-26
No files found.
modules/video_filter/panoramix.c
View file @
2c1fd631
...
...
@@ -345,7 +345,7 @@ static const panoramix_chroma_t p_chroma_array[] = {
/* Get the number of outputs */
static
unsigned
CountMonitors
(
vlc_object_t
*
obj
)
{
char
*
psz_display
=
var_
CreateGetNonEmpty
String
(
obj
,
"x11-display"
);
char
*
psz_display
=
var_
Inherit
String
(
obj
,
"x11-display"
);
int
snum
;
xcb_connection_t
*
conn
=
xcb_connect
(
psz_display
,
&
snum
);
free
(
psz_display
);
...
...
@@ -446,8 +446,8 @@ static int Open( vlc_object_t *p_this )
p_splitter
->
p_cfg
);
/* */
p_sys
->
i_col
=
var_
CreateGe
tInteger
(
p_splitter
,
CFG_PREFIX
"cols"
);
p_sys
->
i_row
=
var_
CreateGe
tInteger
(
p_splitter
,
CFG_PREFIX
"rows"
);
p_sys
->
i_col
=
var_
Inheri
tInteger
(
p_splitter
,
CFG_PREFIX
"cols"
);
p_sys
->
i_row
=
var_
Inheri
tInteger
(
p_splitter
,
CFG_PREFIX
"rows"
);
/* Autodetect number of displays */
if
(
p_sys
->
i_col
<
0
||
p_sys
->
i_row
<
0
)
...
...
@@ -485,13 +485,13 @@ static int Open( vlc_object_t *p_this )
}
/* */
p_sys
->
b_attenuate
=
var_
CreateGe
tBool
(
p_splitter
,
CFG_PREFIX
"attenuate"
);
p_sys
->
bz_length
=
var_
CreateGe
tInteger
(
p_splitter
,
CFG_PREFIX
"bz-length"
);
p_sys
->
bz_height
=
var_
CreateGe
tInteger
(
p_splitter
,
CFG_PREFIX
"bz-height"
);
p_sys
->
bz_begin
=
var_
CreateGe
tInteger
(
p_splitter
,
CFG_PREFIX
"bz-begin"
);
p_sys
->
bz_middle
=
var_
CreateGe
tInteger
(
p_splitter
,
CFG_PREFIX
"bz-middle"
);
p_sys
->
bz_end
=
var_
CreateGe
tInteger
(
p_splitter
,
CFG_PREFIX
"bz-end"
);
p_sys
->
bz_middle_pos
=
var_
CreateGe
tInteger
(
p_splitter
,
CFG_PREFIX
"bz-middle-pos"
);
p_sys
->
b_attenuate
=
var_
Inheri
tBool
(
p_splitter
,
CFG_PREFIX
"attenuate"
);
p_sys
->
bz_length
=
var_
Inheri
tInteger
(
p_splitter
,
CFG_PREFIX
"bz-length"
);
p_sys
->
bz_height
=
var_
Inheri
tInteger
(
p_splitter
,
CFG_PREFIX
"bz-height"
);
p_sys
->
bz_begin
=
var_
Inheri
tInteger
(
p_splitter
,
CFG_PREFIX
"bz-begin"
);
p_sys
->
bz_middle
=
var_
Inheri
tInteger
(
p_splitter
,
CFG_PREFIX
"bz-middle"
);
p_sys
->
bz_end
=
var_
Inheri
tInteger
(
p_splitter
,
CFG_PREFIX
"bz-end"
);
p_sys
->
bz_middle_pos
=
var_
Inheri
tInteger
(
p_splitter
,
CFG_PREFIX
"bz-middle-pos"
);
double
d_p
=
100
.
0
/
p_sys
->
bz_middle_pos
;
p_sys
->
a_2
=
d_p
*
p_sys
->
bz_begin
-
(
double
)(
d_p
*
d_p
/
(
d_p
-
1
))
*
p_sys
->
bz_middle
+
(
double
)(
d_p
/
(
d_p
-
1
))
*
p_sys
->
bz_end
;
...
...
@@ -542,23 +542,23 @@ static int Open( vlc_object_t *p_this )
{
panoramix_gamma_t
p_gamma
[
VOUT_MAX_PLANES
];
p_gamma
[
0
].
f_gamma
=
var_
CreateGe
tFloat
(
p_splitter
,
CFG_PREFIX
"bz-gamma-red"
);
p_gamma
[
1
].
f_gamma
=
var_
CreateGe
tFloat
(
p_splitter
,
CFG_PREFIX
"bz-gamma-green"
);
p_gamma
[
2
].
f_gamma
=
var_
CreateGe
tFloat
(
p_splitter
,
CFG_PREFIX
"bz-gamma-blue"
);
p_gamma
[
0
].
f_gamma
=
var_
Inheri
tFloat
(
p_splitter
,
CFG_PREFIX
"bz-gamma-red"
);
p_gamma
[
1
].
f_gamma
=
var_
Inheri
tFloat
(
p_splitter
,
CFG_PREFIX
"bz-gamma-green"
);
p_gamma
[
2
].
f_gamma
=
var_
Inheri
tFloat
(
p_splitter
,
CFG_PREFIX
"bz-gamma-blue"
);
p_gamma
[
0
].
f_black_crush
=
var_
CreateGe
tInteger
(
p_splitter
,
CFG_PREFIX
"bz-blackcrush-red"
)
/
255
.
0
;
p_gamma
[
1
].
f_black_crush
=
var_
CreateGe
tInteger
(
p_splitter
,
CFG_PREFIX
"bz-blackcrush-green"
)
/
255
.
0
;
p_gamma
[
2
].
f_black_crush
=
var_
CreateGe
tInteger
(
p_splitter
,
CFG_PREFIX
"bz-blackcrush-blue"
)
/
255
.
0
;
p_gamma
[
0
].
f_white_crush
=
var_
CreateGe
tInteger
(
p_splitter
,
CFG_PREFIX
"bz-whitecrush-red"
)
/
255
.
0
;
p_gamma
[
1
].
f_white_crush
=
var_
CreateGe
tInteger
(
p_splitter
,
CFG_PREFIX
"bz-whitecrush-green"
)
/
255
.
0
;
p_gamma
[
2
].
f_white_crush
=
var_
CreateGe
tInteger
(
p_splitter
,
CFG_PREFIX
"bz-whitecrush-blue"
)
/
255
.
0
;
p_gamma
[
0
].
f_black_crush
=
var_
Inheri
tInteger
(
p_splitter
,
CFG_PREFIX
"bz-blackcrush-red"
)
/
255
.
0
;
p_gamma
[
1
].
f_black_crush
=
var_
Inheri
tInteger
(
p_splitter
,
CFG_PREFIX
"bz-blackcrush-green"
)
/
255
.
0
;
p_gamma
[
2
].
f_black_crush
=
var_
Inheri
tInteger
(
p_splitter
,
CFG_PREFIX
"bz-blackcrush-blue"
)
/
255
.
0
;
p_gamma
[
0
].
f_white_crush
=
var_
Inheri
tInteger
(
p_splitter
,
CFG_PREFIX
"bz-whitecrush-red"
)
/
255
.
0
;
p_gamma
[
1
].
f_white_crush
=
var_
Inheri
tInteger
(
p_splitter
,
CFG_PREFIX
"bz-whitecrush-green"
)
/
255
.
0
;
p_gamma
[
2
].
f_white_crush
=
var_
Inheri
tInteger
(
p_splitter
,
CFG_PREFIX
"bz-whitecrush-blue"
)
/
255
.
0
;
p_gamma
[
0
].
f_black_level
=
var_
CreateGe
tInteger
(
p_splitter
,
CFG_PREFIX
"bz-blacklevel-red"
)
/
255
.
0
;
p_gamma
[
1
].
f_black_level
=
var_
CreateGe
tInteger
(
p_splitter
,
CFG_PREFIX
"bz-blacklevel-green"
)
/
255
.
0
;
p_gamma
[
2
].
f_black_level
=
var_
CreateGe
tInteger
(
p_splitter
,
CFG_PREFIX
"bz-blacklevel-blue"
)
/
255
.
0
;
p_gamma
[
0
].
f_white_level
=
var_
CreateGe
tInteger
(
p_splitter
,
CFG_PREFIX
"bz-whitelevel-red"
)
/
255
.
0
;
p_gamma
[
1
].
f_white_level
=
var_
CreateGe
tInteger
(
p_splitter
,
CFG_PREFIX
"bz-whitelevel-green"
)
/
255
.
0
;
p_gamma
[
2
].
f_white_level
=
var_
CreateGe
tInteger
(
p_splitter
,
CFG_PREFIX
"bz-whitelevel-blue"
)
/
255
.
0
;
p_gamma
[
0
].
f_black_level
=
var_
Inheri
tInteger
(
p_splitter
,
CFG_PREFIX
"bz-blacklevel-red"
)
/
255
.
0
;
p_gamma
[
1
].
f_black_level
=
var_
Inheri
tInteger
(
p_splitter
,
CFG_PREFIX
"bz-blacklevel-green"
)
/
255
.
0
;
p_gamma
[
2
].
f_black_level
=
var_
Inheri
tInteger
(
p_splitter
,
CFG_PREFIX
"bz-blacklevel-blue"
)
/
255
.
0
;
p_gamma
[
0
].
f_white_level
=
var_
Inheri
tInteger
(
p_splitter
,
CFG_PREFIX
"bz-whitelevel-red"
)
/
255
.
0
;
p_gamma
[
1
].
f_white_level
=
var_
Inheri
tInteger
(
p_splitter
,
CFG_PREFIX
"bz-whitelevel-green"
)
/
255
.
0
;
p_gamma
[
2
].
f_white_level
=
var_
Inheri
tInteger
(
p_splitter
,
CFG_PREFIX
"bz-whitelevel-blue"
)
/
255
.
0
;
for
(
int
i
=
3
;
i
<
VOUT_MAX_PLANES
;
i
++
)
{
...
...
@@ -626,7 +626,7 @@ static int Open( vlc_object_t *p_this )
}
/* */
char
*
psz_state
=
var_
CreateGetNonEmpty
String
(
p_splitter
,
CFG_PREFIX
"active"
);
char
*
psz_state
=
var_
Inherit
String
(
p_splitter
,
CFG_PREFIX
"active"
);
/* */
bool
pb_active
[
COL_MAX
*
ROW_MAX
];
...
...
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