Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
5dc14c41
Commit
5dc14c41
authored
Feb 11, 2011
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Schroendinger: build fix
parent
60bef600
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
modules/codec/schroedinger.c
modules/codec/schroedinger.c
+7
-7
No files found.
modules/codec/schroedinger.c
View file @
5dc14c41
...
@@ -80,7 +80,7 @@ vlc_module_begin ()
...
@@ -80,7 +80,7 @@ vlc_module_begin ()
set_description
(
N_
(
"Dirac video encoder using libschroedinger"
)
)
set_description
(
N_
(
"Dirac video encoder using libschroedinger"
)
)
set_capability
(
"encoder"
,
105
)
set_capability
(
"encoder"
,
105
)
set_callbacks
(
OpenEncoder
,
CloseEncoder
)
set_callbacks
(
OpenEncoder
,
CloseEncoder
)
add_shortcut
(
"schroedinger"
,
"schro"
)
add_shortcut
(
"schroedinger"
)
int
i_numopts
=
schro_encoder_get_n_settings
();
int
i_numopts
=
schro_encoder_get_n_settings
();
/* Allocate for schro encoder options + chroma format + coding mode
/* Allocate for schro encoder options + chroma format + coding mode
...
@@ -103,18 +103,18 @@ vlc_module_begin ()
...
@@ -103,18 +103,18 @@ vlc_module_begin ()
ppsz_enc_options
[
i
]
=
strdup
(
p_setting
->
name
);
ppsz_enc_options
[
i
]
=
strdup
(
p_setting
->
name
);
switch
(
p_setting
->
type
)
{
switch
(
p_setting
->
type
)
{
case
SCHRO_ENCODER_SETTING_TYPE_BOOLEAN
:
case
SCHRO_ENCODER_SETTING_TYPE_BOOLEAN
:
add_bool
(
p_cfg_setting_name
,
p_setting
->
default_value
,
p_setting
->
name
,
p_setting
->
name
,
b_advanced
);
add_bool
(
p_cfg_setting_name
,
p_setting
->
default_value
,
NULL
,
p_setting
->
name
,
p_setting
->
name
,
b_advanced
);
break
;
break
;
case
SCHRO_ENCODER_SETTING_TYPE_INT
:
case
SCHRO_ENCODER_SETTING_TYPE_INT
:
add_integer
(
p_cfg_setting_name
,
p_setting
->
default_value
,
p_setting
->
name
,
p_setting
->
name
,
b_advanced
);
add_integer
(
p_cfg_setting_name
,
p_setting
->
default_value
,
NULL
,
p_setting
->
name
,
p_setting
->
name
,
b_advanced
);
change_integer_range
(
p_setting
->
min
,
p_setting
->
max
);
change_integer_range
(
p_setting
->
min
,
p_setting
->
max
);
break
;
break
;
case
SCHRO_ENCODER_SETTING_TYPE_DOUBLE
:
case
SCHRO_ENCODER_SETTING_TYPE_DOUBLE
:
add_float
(
p_cfg_setting_name
,
p_setting
->
default_value
,
p_setting
->
name
,
p_setting
->
name
,
b_advanced
);
add_float
(
p_cfg_setting_name
,
p_setting
->
default_value
,
NULL
,
p_setting
->
name
,
p_setting
->
name
,
b_advanced
);
change_float_range
(
p_setting
->
min
,
p_setting
->
max
);
change_float_range
(
p_setting
->
min
,
p_setting
->
max
);
break
;
break
;
case
SCHRO_ENCODER_SETTING_TYPE_ENUM
:
case
SCHRO_ENCODER_SETTING_TYPE_ENUM
:
add_string
(
p_cfg_setting_name
,
p_setting
->
enum_list
[(
int
)
p_setting
->
default_value
],
p_setting
->
name
,
p_setting
->
name
,
b_advanced
);
add_string
(
p_cfg_setting_name
,
p_setting
->
enum_list
[(
int
)
p_setting
->
default_value
],
NULL
,
p_setting
->
name
,
p_setting
->
name
,
b_advanced
);
vlc_config_set
(
p_config
,
VLC_CONFIG_LIST
,
(
int
)(
p_setting
->
max
-
p_setting
->
min
+
1
),
p_setting
->
enum_list
,
p_setting
->
enum_list
,
0
);
vlc_config_set
(
p_config
,
VLC_CONFIG_LIST
,
(
int
)(
p_setting
->
max
-
p_setting
->
min
+
1
),
p_setting
->
enum_list
,
p_setting
->
enum_list
,
0
);
break
;
break
;
default:
default:
...
@@ -124,12 +124,12 @@ vlc_module_begin ()
...
@@ -124,12 +124,12 @@ vlc_module_begin ()
}
}
ppsz_enc_options
[
i_numopts
]
=
strdup
(
ENC_CHROMAFMT
);
ppsz_enc_options
[
i_numopts
]
=
strdup
(
ENC_CHROMAFMT
);
add_string
(
ENC_CFG_PREFIX
ENC_CHROMAFMT
,
"420"
,
add_string
(
ENC_CFG_PREFIX
ENC_CHROMAFMT
,
"420"
,
NULL
,
ENC_CHROMAFMT_TEXT
,
ENC_CHROMAFMT_LONGTEXT
,
false
)
ENC_CHROMAFMT_TEXT
,
ENC_CHROMAFMT_LONGTEXT
,
false
)
change_string_list
(
enc_chromafmt_list
,
enc_chromafmt_list_text
,
0
);
change_string_list
(
enc_chromafmt_list
,
enc_chromafmt_list_text
,
0
);
ppsz_enc_options
[
i_numopts
+
1
]
=
strdup
(
ENC_CODINGMODE
);
ppsz_enc_options
[
i_numopts
+
1
]
=
strdup
(
ENC_CODINGMODE
);
add_bool
(
ENC_CFG_PREFIX
ENC_CODINGMODE
,
true
,
add_bool
(
ENC_CFG_PREFIX
ENC_CODINGMODE
,
true
,
NULL
,
ENC_CODINGMODE_TEXT
,
ENC_CODINGMODE_LONGTEXT
,
false
)
ENC_CODINGMODE_TEXT
,
ENC_CODINGMODE_LONGTEXT
,
false
)
ppsz_enc_options
[
i_numopts
+
2
]
=
NULL
;
ppsz_enc_options
[
i_numopts
+
2
]
=
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