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
a4c1c8f5
Commit
a4c1c8f5
authored
Nov 09, 2003
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PDA Interface:
* Transcode tabpage added * code cleanup
parent
8150192b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
1236 additions
and
66 deletions
+1236
-66
modules/gui/pda/pda.glade
modules/gui/pda/pda.glade
+779
-4
modules/gui/pda/pda_callbacks.c
modules/gui/pda/pda_callbacks.c
+116
-54
modules/gui/pda/pda_callbacks.h
modules/gui/pda/pda_callbacks.h
+3
-1
modules/gui/pda/pda_interface.c
modules/gui/pda/pda_interface.c
+338
-7
No files found.
modules/gui/pda/pda.glade
View file @
a4c1c8f5
...
...
@@ -1480,6 +1480,7 @@
<child>
<widget
class=
"GtkSpinButton"
id=
"entryV4LFrequency"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"tooltip"
translatable=
"yes"
>
kHz
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"climb_rate"
>
1
</property>
<property
name=
"digits"
>
0
</property>
...
...
@@ -1502,6 +1503,7 @@
<child>
<widget
class=
"GtkSpinButton"
id=
"entryV4LSampleRate"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"tooltip"
translatable=
"yes"
>
Hz/s
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"climb_rate"
>
1
</property>
<property
name=
"digits"
>
0
</property>
...
...
@@ -1747,8 +1749,8 @@
<widget
class=
"GtkScrolledWindow"
id=
"scrolledwindowTranscode"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"hscrollbar_policy"
>
GTK_POLICY_
NEVER
</property>
<property
name=
"vscrollbar_policy"
>
GTK_POLICY_A
LWAYS
</property>
<property
name=
"hscrollbar_policy"
>
GTK_POLICY_
AUTOMATIC
</property>
<property
name=
"vscrollbar_policy"
>
GTK_POLICY_A
UTOMATIC
</property>
<property
name=
"shadow_type"
>
GTK_SHADOW_NONE
</property>
<property
name=
"window_placement"
>
GTK_CORNER_TOP_LEFT
</property>
...
...
@@ -1758,13 +1760,786 @@
<property
name=
"shadow_type"
>
GTK_SHADOW_IN
</property>
<child>
<widget
class=
"GtkTable"
id=
"table
6
"
>
<widget
class=
"GtkTable"
id=
"table
Transcode
"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"n_rows"
>
1
4
</property>
<property
name=
"n_rows"
>
1
1
</property>
<property
name=
"n_columns"
>
2
</property>
<property
name=
"homogeneous"
>
False
</property>
<property
name=
"row_spacing"
>
0
</property>
<property
name=
"column_spacing"
>
0
</property>
<child>
<widget
class=
"GtkLabel"
id=
"labelVideoCodec"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"label"
translatable=
"yes"
>
Video Codec:
</property>
<property
name=
"use_underline"
>
False
</property>
<property
name=
"use_markup"
>
False
</property>
<property
name=
"justify"
>
GTK_JUSTIFY_LEFT
</property>
<property
name=
"wrap"
>
False
</property>
<property
name=
"selectable"
>
False
</property>
<property
name=
"xalign"
>
0
</property>
<property
name=
"yalign"
>
0.5
</property>
<property
name=
"xpad"
>
0
</property>
<property
name=
"ypad"
>
0
</property>
</widget>
<packing>
<property
name=
"left_attach"
>
0
</property>
<property
name=
"right_attach"
>
1
</property>
<property
name=
"top_attach"
>
0
</property>
<property
name=
"bottom_attach"
>
1
</property>
<property
name=
"x_options"
>
fill
</property>
<property
name=
"y_options"
></property>
</packing>
</child>
<child>
<widget
class=
"GtkCombo"
id=
"comboVideoCodec"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"value_in_list"
>
False
</property>
<property
name=
"allow_empty"
>
True
</property>
<property
name=
"case_sensitive"
>
False
</property>
<property
name=
"enable_arrow_keys"
>
True
</property>
<property
name=
"enable_arrows_always"
>
False
</property>
<child
internal-child=
"entry"
>
<widget
class=
"GtkEntry"
id=
"entryVideoCodec"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"editable"
>
True
</property>
<property
name=
"visibility"
>
True
</property>
<property
name=
"max_length"
>
0
</property>
<property
name=
"text"
translatable=
"yes"
>
huffyuv
</property>
<property
name=
"has_frame"
>
True
</property>
<property
name=
"invisible_char"
translatable=
"yes"
>
*
</property>
<property
name=
"activates_default"
>
True
</property>
</widget>
</child>
<child
internal-child=
"list"
>
<widget
class=
"GtkList"
id=
"listVideoCodec"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"selection_mode"
>
GTK_SELECTION_BROWSE
</property>
<child>
<widget
class=
"GtkListItem"
id=
"listitem1840"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"label"
translatable=
"yes"
>
huffyuv
</property>
</widget>
</child>
<child>
<widget
class=
"GtkListItem"
id=
"listitem1841"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"label"
translatable=
"yes"
>
mpgv
</property>
</widget>
</child>
<child>
<widget
class=
"GtkListItem"
id=
"listitem1842"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"label"
translatable=
"yes"
>
mp4v
</property>
</widget>
</child>
<child>
<widget
class=
"GtkListItem"
id=
"listitem1843"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"label"
translatable=
"yes"
>
h263
</property>
</widget>
</child>
<child>
<widget
class=
"GtkListItem"
id=
"listitem1844"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"label"
translatable=
"yes"
>
DIV1
</property>
</widget>
</child>
<child>
<widget
class=
"GtkListItem"
id=
"listitem1845"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"label"
translatable=
"yes"
>
DIV2
</property>
</widget>
</child>
<child>
<widget
class=
"GtkListItem"
id=
"listitem1846"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"label"
translatable=
"yes"
>
DIV3
</property>
</widget>
</child>
<child>
<widget
class=
"GtkListItem"
id=
"listitem1847"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"label"
translatable=
"yes"
>
I420
</property>
</widget>
</child>
<child>
<widget
class=
"GtkListItem"
id=
"listitem1848"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"label"
translatable=
"yes"
>
I422
</property>
</widget>
</child>
<child>
<widget
class=
"GtkListItem"
id=
"listitem1849"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"label"
translatable=
"yes"
>
I444
</property>
</widget>
</child>
<child>
<widget
class=
"GtkListItem"
id=
"listitem1850"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"label"
translatable=
"yes"
>
RV24
</property>
</widget>
</child>
<child>
<widget
class=
"GtkListItem"
id=
"listitem1851"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"label"
translatable=
"yes"
>
YUY2
</property>
</widget>
</child>
</widget>
</child>
</widget>
<packing>
<property
name=
"left_attach"
>
1
</property>
<property
name=
"right_attach"
>
2
</property>
<property
name=
"top_attach"
>
0
</property>
<property
name=
"bottom_attach"
>
1
</property>
<property
name=
"x_options"
>
expand|shrink|fill
</property>
<property
name=
"y_options"
></property>
</packing>
</child>
<child>
<widget
class=
"GtkLabel"
id=
"labelVideoBitrate"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"label"
translatable=
"yes"
>
Video Bitrate:
</property>
<property
name=
"use_underline"
>
False
</property>
<property
name=
"use_markup"
>
False
</property>
<property
name=
"justify"
>
GTK_JUSTIFY_LEFT
</property>
<property
name=
"wrap"
>
False
</property>
<property
name=
"selectable"
>
False
</property>
<property
name=
"xalign"
>
0
</property>
<property
name=
"yalign"
>
0.5
</property>
<property
name=
"xpad"
>
0
</property>
<property
name=
"ypad"
>
0
</property>
</widget>
<packing>
<property
name=
"left_attach"
>
0
</property>
<property
name=
"right_attach"
>
1
</property>
<property
name=
"top_attach"
>
1
</property>
<property
name=
"bottom_attach"
>
2
</property>
<property
name=
"x_options"
>
fill
</property>
<property
name=
"y_options"
></property>
</packing>
</child>
<child>
<widget
class=
"GtkLabel"
id=
"labelVideoBitrateTolerance"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"label"
translatable=
"yes"
>
Bitrate Tolerance:
</property>
<property
name=
"use_underline"
>
False
</property>
<property
name=
"use_markup"
>
False
</property>
<property
name=
"justify"
>
GTK_JUSTIFY_LEFT
</property>
<property
name=
"wrap"
>
False
</property>
<property
name=
"selectable"
>
False
</property>
<property
name=
"xalign"
>
0
</property>
<property
name=
"yalign"
>
0.5
</property>
<property
name=
"xpad"
>
0
</property>
<property
name=
"ypad"
>
0
</property>
</widget>
<packing>
<property
name=
"left_attach"
>
0
</property>
<property
name=
"right_attach"
>
1
</property>
<property
name=
"top_attach"
>
2
</property>
<property
name=
"bottom_attach"
>
3
</property>
<property
name=
"x_options"
>
fill
</property>
<property
name=
"y_options"
></property>
</packing>
</child>
<child>
<widget
class=
"GtkLabel"
id=
"labelVideoKeyInterval"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"label"
translatable=
"yes"
>
Keyframe Interval:
</property>
<property
name=
"use_underline"
>
False
</property>
<property
name=
"use_markup"
>
False
</property>
<property
name=
"justify"
>
GTK_JUSTIFY_LEFT
</property>
<property
name=
"wrap"
>
False
</property>
<property
name=
"selectable"
>
False
</property>
<property
name=
"xalign"
>
0
</property>
<property
name=
"yalign"
>
0.5
</property>
<property
name=
"xpad"
>
0
</property>
<property
name=
"ypad"
>
0
</property>
</widget>
<packing>
<property
name=
"left_attach"
>
0
</property>
<property
name=
"right_attach"
>
1
</property>
<property
name=
"top_attach"
>
3
</property>
<property
name=
"bottom_attach"
>
4
</property>
<property
name=
"x_options"
>
fill
</property>
<property
name=
"y_options"
></property>
</packing>
</child>
<child>
<widget
class=
"GtkLabel"
id=
"labelAudioCodec"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"label"
translatable=
"yes"
>
Audio Codec:
</property>
<property
name=
"use_underline"
>
False
</property>
<property
name=
"use_markup"
>
False
</property>
<property
name=
"justify"
>
GTK_JUSTIFY_LEFT
</property>
<property
name=
"wrap"
>
False
</property>
<property
name=
"selectable"
>
False
</property>
<property
name=
"xalign"
>
0
</property>
<property
name=
"yalign"
>
0.5
</property>
<property
name=
"xpad"
>
0
</property>
<property
name=
"ypad"
>
0
</property>
</widget>
<packing>
<property
name=
"left_attach"
>
0
</property>
<property
name=
"right_attach"
>
1
</property>
<property
name=
"top_attach"
>
5
</property>
<property
name=
"bottom_attach"
>
6
</property>
<property
name=
"x_options"
>
fill
</property>
<property
name=
"y_options"
></property>
</packing>
</child>
<child>
<widget
class=
"GtkLabel"
id=
"labelVideoDeinterlace"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"label"
translatable=
"yes"
>
Deinterlace:
</property>
<property
name=
"use_underline"
>
False
</property>
<property
name=
"use_markup"
>
False
</property>
<property
name=
"justify"
>
GTK_JUSTIFY_LEFT
</property>
<property
name=
"wrap"
>
False
</property>
<property
name=
"selectable"
>
False
</property>
<property
name=
"xalign"
>
0
</property>
<property
name=
"yalign"
>
0.5
</property>
<property
name=
"xpad"
>
0
</property>
<property
name=
"ypad"
>
0
</property>
</widget>
<packing>
<property
name=
"left_attach"
>
0
</property>
<property
name=
"right_attach"
>
1
</property>
<property
name=
"top_attach"
>
4
</property>
<property
name=
"bottom_attach"
>
5
</property>
<property
name=
"x_options"
>
fill
</property>
<property
name=
"y_options"
></property>
</packing>
</child>
<child>
<widget
class=
"GtkLabel"
id=
"labelStdAccess"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"label"
translatable=
"yes"
>
Access:
</property>
<property
name=
"use_underline"
>
False
</property>
<property
name=
"use_markup"
>
False
</property>
<property
name=
"justify"
>
GTK_JUSTIFY_LEFT
</property>
<property
name=
"wrap"
>
False
</property>
<property
name=
"selectable"
>
False
</property>
<property
name=
"xalign"
>
0
</property>
<property
name=
"yalign"
>
0.5
</property>
<property
name=
"xpad"
>
0
</property>
<property
name=
"ypad"
>
0
</property>
</widget>
<packing>
<property
name=
"left_attach"
>
0
</property>
<property
name=
"right_attach"
>
1
</property>
<property
name=
"top_attach"
>
7
</property>
<property
name=
"bottom_attach"
>
8
</property>
<property
name=
"x_options"
>
fill
</property>
<property
name=
"y_options"
></property>
</packing>
</child>
<child>
<widget
class=
"GtkLabel"
id=
"labelStdMuxer"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"label"
translatable=
"yes"
>
Muxer:
</property>
<property
name=
"use_underline"
>
False
</property>
<property
name=
"use_markup"
>
False
</property>
<property
name=
"justify"
>
GTK_JUSTIFY_LEFT
</property>
<property
name=
"wrap"
>
False
</property>
<property
name=
"selectable"
>
False
</property>
<property
name=
"xalign"
>
0
</property>
<property
name=
"yalign"
>
0.5
</property>
<property
name=
"xpad"
>
0
</property>
<property
name=
"ypad"
>
0
</property>
</widget>
<packing>
<property
name=
"left_attach"
>
0
</property>
<property
name=
"right_attach"
>
1
</property>
<property
name=
"top_attach"
>
8
</property>
<property
name=
"bottom_attach"
>
9
</property>
<property
name=
"x_options"
>
fill
</property>
<property
name=
"y_options"
></property>
</packing>
</child>
<child>
<widget
class=
"GtkLabel"
id=
"labelStdUrl"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"label"
translatable=
"yes"
>
URL:
</property>
<property
name=
"use_underline"
>
False
</property>
<property
name=
"use_markup"
>
False
</property>
<property
name=
"justify"
>
GTK_JUSTIFY_LEFT
</property>
<property
name=
"wrap"
>
False
</property>
<property
name=
"selectable"
>
False
</property>
<property
name=
"xalign"
>
0
</property>
<property
name=
"yalign"
>
0.5
</property>
<property
name=
"xpad"
>
0
</property>
<property
name=
"ypad"
>
0
</property>
</widget>
<packing>
<property
name=
"left_attach"
>
0
</property>
<property
name=
"right_attach"
>
1
</property>
<property
name=
"top_attach"
>
9
</property>
<property
name=
"bottom_attach"
>
10
</property>
<property
name=
"x_options"
>
fill
</property>
<property
name=
"y_options"
></property>
</packing>
</child>
<child>
<widget
class=
"GtkLabel"
id=
"labelStdTimeToLive"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"label"
translatable=
"yes"
>
Time To Live (TTL):
</property>
<property
name=
"use_underline"
>
False
</property>
<property
name=
"use_markup"
>
False
</property>
<property
name=
"justify"
>
GTK_JUSTIFY_LEFT
</property>
<property
name=
"wrap"
>
False
</property>
<property
name=
"selectable"
>
False
</property>
<property
name=
"xalign"
>
0
</property>
<property
name=
"yalign"
>
0.5
</property>
<property
name=
"xpad"
>
0
</property>
<property
name=
"ypad"
>
0
</property>
</widget>
<packing>
<property
name=
"left_attach"
>
0
</property>
<property
name=
"right_attach"
>
1
</property>
<property
name=
"top_attach"
>
10
</property>
<property
name=
"bottom_attach"
>
11
</property>
<property
name=
"x_options"
>
fill
</property>
<property
name=
"y_options"
></property>
</packing>
</child>
<child>
<widget
class=
"GtkSpinButton"
id=
"entryStdTTL"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"climb_rate"
>
1
</property>
<property
name=
"digits"
>
0
</property>
<property
name=
"numeric"
>
False
</property>
<property
name=
"update_policy"
>
GTK_UPDATE_ALWAYS
</property>
<property
name=
"snap_to_ticks"
>
False
</property>
<property
name=
"wrap"
>
False
</property>
<property
name=
"adjustment"
>
1 0 100 1 10 10
</property>
</widget>
<packing>
<property
name=
"left_attach"
>
1
</property>
<property
name=
"right_attach"
>
2
</property>
<property
name=
"top_attach"
>
10
</property>
<property
name=
"bottom_attach"
>
11
</property>
<property
name=
"y_options"
></property>
</packing>
</child>
<child>
<widget
class=
"GtkCombo"
id=
"comboStdURL"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"value_in_list"
>
False
</property>
<property
name=
"allow_empty"
>
True
</property>
<property
name=
"case_sensitive"
>
False
</property>
<property
name=
"enable_arrow_keys"
>
True
</property>
<property
name=
"enable_arrows_always"
>
False
</property>
<child
internal-child=
"entry"
>
<widget
class=
"GtkEntry"
id=
"entryStdURL"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"editable"
>
True
</property>
<property
name=
"visibility"
>
True
</property>
<property
name=
"max_length"
>
0
</property>
<property
name=
"text"
translatable=
"yes"
>
127.0.0.1
</property>
<property
name=
"has_frame"
>
True
</property>
<property
name=
"invisible_char"
translatable=
"yes"
>
*
</property>
<property
name=
"activates_default"
>
True
</property>
</widget>
</child>
<child
internal-child=
"list"
>
<widget
class=
"GtkList"
id=
"listStdURL"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"selection_mode"
>
GTK_SELECTION_BROWSE
</property>
<child>
<widget
class=
"GtkListItem"
id=
"listitem1943"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"label"
translatable=
"yes"
>
127.0.0.1
</property>
</widget>
</child>
<child>
<widget
class=
"GtkListItem"
id=
"listitem1944"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"label"
translatable=
"yes"
>
localhost
</property>
</widget>
</child>
<child>
<widget
class=
"GtkListItem"
id=
"listitem1945"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"label"
translatable=
"yes"
>
localhost.localdomain
</property>
</widget>
</child>
<child>
<widget
class=
"GtkListItem"
id=
"listitem1946"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"label"
translatable=
"yes"
>
239.0.0.42
</property>
</widget>
</child>
</widget>
</child>
</widget>
<packing>
<property
name=
"left_attach"
>
1
</property>
<property
name=
"right_attach"
>
2
</property>
<property
name=
"top_attach"
>
9
</property>
<property
name=
"bottom_attach"
>
10
</property>
<property
name=
"y_options"
></property>
</packing>
</child>
<child>
<widget
class=
"GtkCombo"
id=
"comboStdMuxer"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"value_in_list"
>
False
</property>
<property
name=
"allow_empty"
>
True
</property>
<property
name=
"case_sensitive"
>
False
</property>
<property
name=
"enable_arrow_keys"
>
True
</property>
<property
name=
"enable_arrows_always"
>
False
</property>
<child
internal-child=
"entry"
>
<widget
class=
"GtkEntry"
id=
"entryStdMuxer"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"editable"
>
True
</property>
<property
name=
"visibility"
>
True
</property>
<property
name=
"max_length"
>
0
</property>
<property
name=
"text"
translatable=
"yes"
>
udp
</property>
<property
name=
"has_frame"
>
True
</property>
<property
name=
"invisible_char"
translatable=
"yes"
>
*
</property>
<property
name=
"activates_default"
>
True
</property>
</widget>
</child>
<child
internal-child=
"list"
>
<widget
class=
"GtkList"
id=
"listStdMuxer"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"selection_mode"
>
GTK_SELECTION_BROWSE
</property>
<child>
<widget
class=
"GtkListItem"
id=
"listitem1961"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"label"
translatable=
"yes"
>
udp
</property>
</widget>
</child>
</widget>
</child>
</widget>
<packing>
<property
name=
"left_attach"
>
1
</property>
<property
name=
"right_attach"
>
2
</property>
<property
name=
"top_attach"
>
8
</property>
<property
name=
"bottom_attach"
>
9
</property>
<property
name=
"y_options"
></property>
</packing>
</child>
<child>
<widget
class=
"GtkCombo"
id=
"comboStdAccess"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"value_in_list"
>
False
</property>
<property
name=
"allow_empty"
>
True
</property>
<property
name=
"case_sensitive"
>
False
</property>
<property
name=
"enable_arrow_keys"
>
True
</property>
<property
name=
"enable_arrows_always"
>
False
</property>
<child
internal-child=
"entry"
>
<widget
class=
"GtkEntry"
id=
"entryStdAccess"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"editable"
>
True
</property>
<property
name=
"visibility"
>
True
</property>
<property
name=
"max_length"
>
0
</property>
<property
name=
"text"
translatable=
"yes"
>
ts
</property>
<property
name=
"has_frame"
>
True
</property>
<property
name=
"invisible_char"
translatable=
"yes"
>
*
</property>
<property
name=
"activates_default"
>
True
</property>
</widget>
</child>
<child
internal-child=
"list"
>
<widget
class=
"GtkList"
id=
"listStdAccess"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"selection_mode"
>
GTK_SELECTION_BROWSE
</property>
<child>
<widget
class=
"GtkListItem"
id=
"listitem1965"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"label"
translatable=
"yes"
>
ts
</property>
</widget>
</child>
<child>
<widget
class=
"GtkListItem"
id=
"listitem1966"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"label"
translatable=
"yes"
>
rtp
</property>
</widget>
</child>
</widget>
</child>
</widget>
<packing>
<property
name=
"left_attach"
>
1
</property>
<property
name=
"right_attach"
>
2
</property>
<property
name=
"top_attach"
>
7
</property>
<property
name=
"bottom_attach"
>
8
</property>
<property
name=
"y_options"
></property>
</packing>
</child>
<child>
<widget
class=
"GtkSpinButton"
id=
"entryAudioBitrate"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"tooltip"
translatable=
"yes"
>
kbits/s
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"climb_rate"
>
1
</property>
<property
name=
"digits"
>
0
</property>
<property
name=
"numeric"
>
True
</property>
<property
name=
"update_policy"
>
GTK_UPDATE_ALWAYS
</property>
<property
name=
"snap_to_ticks"
>
False
</property>
<property
name=
"wrap"
>
False
</property>
<property
name=
"adjustment"
>
256 0 65535 1 10 10
</property>
</widget>
<packing>
<property
name=
"left_attach"
>
1
</property>
<property
name=
"right_attach"
>
2
</property>
<property
name=
"top_attach"
>
6
</property>
<property
name=
"bottom_attach"
>
7
</property>
<property
name=
"y_options"
></property>
</packing>
</child>
<child>
<widget
class=
"GtkCombo"
id=
"comboAudioCodec"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"value_in_list"
>
False
</property>
<property
name=
"allow_empty"
>
True
</property>
<property
name=
"case_sensitive"
>
False
</property>
<property
name=
"enable_arrow_keys"
>
True
</property>
<property
name=
"enable_arrows_always"
>
False
</property>
<child
internal-child=
"entry"
>
<widget
class=
"GtkEntry"
id=
"entryAudioCodec"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"editable"
>
True
</property>
<property
name=
"visibility"
>
True
</property>
<property
name=
"max_length"
>
0
</property>
<property
name=
"text"
translatable=
"yes"
>
alaw
</property>
<property
name=
"has_frame"
>
True
</property>
<property
name=
"invisible_char"
translatable=
"yes"
>
*
</property>
<property
name=
"activates_default"
>
True
</property>
</widget>
</child>
<child
internal-child=
"list"
>
<widget
class=
"GtkList"
id=
"listAudioCodec"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"selection_mode"
>
GTK_SELECTION_BROWSE
</property>
<child>
<widget
class=
"GtkListItem"
id=
"listitem1993"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"label"
translatable=
"yes"
>
alaw
</property>
</widget>
</child>
<child>
<widget
class=
"GtkListItem"
id=
"listitem1994"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"label"
translatable=
"yes"
>
ulaw
</property>
</widget>
</child>
<child>
<widget
class=
"GtkListItem"
id=
"listitem1995"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"label"
translatable=
"yes"
>
mpga
</property>
</widget>
</child>
<child>
<widget
class=
"GtkListItem"
id=
"listitem1996"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"label"
translatable=
"yes"
>
mp3
</property>
</widget>
</child>
</widget>
</child>
</widget>
<packing>
<property
name=
"left_attach"
>
1
</property>
<property
name=
"right_attach"
>
2
</property>
<property
name=
"top_attach"
>
5
</property>
<property
name=
"bottom_attach"
>
6
</property>
<property
name=
"y_options"
></property>
</packing>
</child>
<child>
<widget
class=
"GtkCheckButton"
id=
"checkVideoDeinterlace"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"label"
translatable=
"yes"
>
enable
</property>
<property
name=
"use_underline"
>
True
</property>
<property
name=
"relief"
>
GTK_RELIEF_NORMAL
</property>
<property
name=
"active"
>
False
</property>
<property
name=
"inconsistent"
>
False
</property>
<property
name=
"draw_indicator"
>
True
</property>
</widget>
<packing>
<property
name=
"left_attach"
>
1
</property>
<property
name=
"right_attach"
>
2
</property>
<property
name=
"top_attach"
>
4
</property>
<property
name=
"bottom_attach"
>
5
</property>
<property
name=
"x_options"
>
fill
</property>
<property
name=
"y_options"
></property>
</packing>
</child>
<child>
<widget
class=
"GtkSpinButton"
id=
"entryVideoKeyFrameInterval"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"climb_rate"
>
1
</property>
<property
name=
"digits"
>
0
</property>
<property
name=
"numeric"
>
True
</property>
<property
name=
"update_policy"
>
GTK_UPDATE_ALWAYS
</property>
<property
name=
"snap_to_ticks"
>
False
</property>
<property
name=
"wrap"
>
False
</property>
<property
name=
"adjustment"
>
80 0 65535 1 10 10
</property>
</widget>
<packing>
<property
name=
"left_attach"
>
1
</property>
<property
name=
"right_attach"
>
2
</property>
<property
name=
"top_attach"
>
3
</property>
<property
name=
"bottom_attach"
>
4
</property>
<property
name=
"y_options"
></property>
</packing>
</child>
<child>
<widget
class=
"GtkSpinButton"
id=
"entryVideoBitrateTolerance"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"tooltip"
translatable=
"yes"
>
bits/s
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"climb_rate"
>
1
</property>
<property
name=
"digits"
>
0
</property>
<property
name=
"numeric"
>
True
</property>
<property
name=
"update_policy"
>
GTK_UPDATE_ALWAYS
</property>
<property
name=
"snap_to_ticks"
>
False
</property>
<property
name=
"wrap"
>
False
</property>
<property
name=
"adjustment"
>
800000 0 1e+06 1 10 10
</property>
</widget>
<packing>
<property
name=
"left_attach"
>
1
</property>
<property
name=
"right_attach"
>
2
</property>
<property
name=
"top_attach"
>
2
</property>
<property
name=
"bottom_attach"
>
3
</property>
<property
name=
"y_options"
></property>
</packing>
</child>
<child>
<widget
class=
"GtkSpinButton"
id=
"entryVideoBitrate"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"tooltip"
translatable=
"yes"
>
kbits/s
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"climb_rate"
>
1
</property>
<property
name=
"digits"
>
0
</property>
<property
name=
"numeric"
>
True
</property>
<property
name=
"update_policy"
>
GTK_UPDATE_ALWAYS
</property>
<property
name=
"snap_to_ticks"
>
False
</property>
<property
name=
"wrap"
>
False
</property>
<property
name=
"adjustment"
>
3000 0 65535 1 10 10
</property>
</widget>
<packing>
<property
name=
"left_attach"
>
1
</property>
<property
name=
"right_attach"
>
2
</property>
<property
name=
"top_attach"
>
1
</property>
<property
name=
"bottom_attach"
>
2
</property>
<property
name=
"y_options"
></property>
</packing>
</child>
<child>
<widget
class=
"GtkLabel"
id=
"labelAudioBitrate"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"label"
translatable=
"yes"
>
Audio Bitrate :
</property>
<property
name=
"use_underline"
>
False
</property>
<property
name=
"use_markup"
>
False
</property>
<property
name=
"justify"
>
GTK_JUSTIFY_LEFT
</property>
<property
name=
"wrap"
>
False
</property>
<property
name=
"selectable"
>
False
</property>
<property
name=
"xalign"
>
0
</property>
<property
name=
"yalign"
>
0.5
</property>
<property
name=
"xpad"
>
0
</property>
<property
name=
"ypad"
>
0
</property>
</widget>
<packing>
<property
name=
"left_attach"
>
0
</property>
<property
name=
"right_attach"
>
1
</property>
<property
name=
"top_attach"
>
6
</property>
<property
name=
"bottom_attach"
>
7
</property>
<property
name=
"x_options"
>
fill
</property>
<property
name=
"y_options"
></property>
</packing>
</child>
</widget>
</child>
</widget>
...
...
modules/gui/pda/pda_callbacks.c
View file @
a4c1c8f5
...
...
@@ -2,7 +2,7 @@
* pda_callbacks.c : Callbacks for the pda Linux Gtk+ plugin.
*****************************************************************************
* Copyright (C) 2000, 2001 VideoLAN
* $Id: pda_callbacks.c,v 1.1
2 2003/11/09 19:49:48
jpsaman Exp $
* $Id: pda_callbacks.c,v 1.1
3 2003/11/09 21:29:52
jpsaman Exp $
*
* Authors: Jean-Paul Saman <jpsaman@wxs.nl>
*
...
...
@@ -85,6 +85,31 @@ void * E_(__GtkGetIntf)( GtkWidget * widget )
return
p_data
;
}
void
PlaylistAddItem
(
GtkWidget
*
widget
,
gchar
*
name
)
{
GtkTreeView
*
p_tvplaylist
=
NULL
;
/* Add to playlist object. */
p_tvplaylist
=
(
GtkTreeView
*
)
lookup_widget
(
GTK_WIDGET
(
widget
),
"tvPlaylist"
);
if
(
p_tvplaylist
)
{
GtkTreeModel
*
p_play_model
;
GtkTreeIter
p_play_iter
;
p_play_model
=
gtk_tree_view_get_model
(
p_tvplaylist
);
if
(
p_play_model
)
{
/* Add a new row to the playlist treeview model */
gtk_list_store_append
(
GTK_LIST_STORE
(
p_play_model
),
&
p_play_iter
);
gtk_list_store_set
(
GTK_LIST_STORE
(
p_play_model
),
&
p_play_iter
,
0
,
name
,
/* Add path to it !!! */
1
,
"no info"
,
-
1
);
}
}
}
void
PlaylistRebuildListStore
(
GtkListStore
*
p_list
,
playlist_t
*
p_playlist
)
{
GtkTreeIter
iter
;
...
...
@@ -109,10 +134,7 @@ void PlaylistRebuildListStore( GtkListStore * p_list, playlist_t * p_playlist )
vlc_mutex_unlock
(
&
p_playlist
->
object_lock
);
}
/*****************************************************************************
* Helper functions for URL changes in Media and Preferences notebook pages.
****************************************************************************/
#if 0
void MediaURLOpenChanged( GtkWidget *widget, gchar *psz_url )
{
intf_thread_t *p_intf = GtkGetIntf( widget );
...
...
@@ -150,6 +172,7 @@ void MediaURLOpenChanged( GtkWidget *widget, gchar *psz_url )
}
}
}
#endif
/*****************************************************************
* Read directory helper function.
...
...
@@ -454,30 +477,12 @@ void addSelectedToPlaylist(GtkTreeModel *model,
GtkTreeIter
*
iter
,
gpointer
*
userdata
)
{
GtkTreeView
*
p_tvplaylist
=
NULL
;
gchar
*
filename
;
gtk_tree_model_get
(
model
,
iter
,
0
,
&
filename
,
-
1
);
/* Add to playlist object. */
p_tvplaylist
=
(
GtkTreeView
*
)
lookup_widget
(
GTK_WIDGET
(
userdata
),
"tvPlaylist"
);
if
(
p_tvplaylist
)
{
GtkTreeModel
*
p_play_model
;
GtkTreeIter
p_play_iter
;
p_play_model
=
gtk_tree_view_get_model
(
p_tvplaylist
);
if
(
p_play_model
)
{
/* Add a new row to the playlist treeview model */
gtk_list_store_append
(
GTK_LIST_STORE
(
p_play_model
),
&
p_play_iter
);
gtk_list_store_set
(
GTK_LIST_STORE
(
p_play_model
),
&
p_play_iter
,
0
,
filename
,
/* Add path to it !!! */
1
,
"no info"
,
-
1
);
}
}
PlaylistAddItem
(
GTK_WIDGET
(
userdata
),
filename
);
}
void
...
...
@@ -618,9 +623,6 @@ onAddNetworkPlaylist (GtkButton *button,
gpointer
user_data
)
{
GtkEntry
*
p_mrl
=
NULL
;
GtkTreeView
*
p_tvplaylist
=
NULL
;
GtkTreeModel
*
p_play_model
;
GtkTreeIter
p_play_iter
;
const
gchar
*
mrl_name
;
p_mrl
=
(
GtkEntry
*
)
lookup_widget
(
GTK_WIDGET
(
button
),
"entryMRL"
);
...
...
@@ -628,18 +630,7 @@ onAddNetworkPlaylist (GtkButton *button,
{
mrl_name
=
gtk_entry_get_text
(
p_mrl
);
p_tvplaylist
=
(
GtkTreeView
*
)
lookup_widget
(
GTK_WIDGET
(
button
),
"tvPlaylist"
);
if
(
NULL
!=
p_tvplaylist
)
{
p_play_model
=
gtk_tree_view_get_model
(
p_tvplaylist
);
/* Add a new row to the playlist treeview model */
gtk_list_store_append
(
GTK_LIST_STORE
(
p_play_model
),
&
p_play_iter
);
gtk_list_store_set
(
GTK_LIST_STORE
(
p_play_model
),
&
p_play_iter
,
0
,
mrl_name
,
/* Add path to it !!! */
1
,
"no info"
,
-
1
);
}
PlaylistAddItem
(
GTK_WIDGET
(
button
),
(
gchar
*
)
p_mrl
);
}
}
...
...
@@ -648,10 +639,6 @@ void
onAddCameraToPlaylist
(
GtkButton
*
button
,
gpointer
user_data
)
{
GtkTreeView
*
p_tvplaylist
=
NULL
;
GtkTreeModel
*
p_play_model
;
GtkTreeIter
p_play_iter
;
GtkSpinButton
*
entryV4LChannel
=
NULL
;
GtkSpinButton
*
entryV4LFrequency
=
NULL
;
GtkSpinButton
*
entryV4LSampleRate
=
NULL
;
...
...
@@ -737,18 +724,8 @@ onAddCameraToPlaylist (GtkButton *button,
v4l_mrl
[
VLC_MAX_MRL
-
1
]
=
'\0'
;
g_print
(
"%s
\n
"
,
v4l_mrl
);
p_tvplaylist
=
(
GtkTreeView
*
)
lookup_widget
(
GTK_WIDGET
(
button
),
"tvPlaylist"
);
if
(
NULL
!=
p_tvplaylist
)
{
p_play_model
=
gtk_tree_view_get_model
(
p_tvplaylist
);
/* Add a new row to the playlist treeview model */
gtk_list_store_append
(
GTK_LIST_STORE
(
p_play_model
),
&
p_play_iter
);
gtk_list_store_set
(
GTK_LIST_STORE
(
p_play_model
),
&
p_play_iter
,
0
,
&
v4l_mrl
,
1
,
"no info"
,
-
1
);
}
PlaylistAddItem
(
GTK_WIDGET
(
button
),
(
gchar
*
)
&
v4l_mrl
);
}
...
...
@@ -851,7 +828,92 @@ void
onAddTranscodeToPlaylist
(
GtkButton
*
button
,
gpointer
user_data
)
{
GtkEntry
*
entryVideoCodec
=
NULL
;
GtkSpinButton
*
entryVideoBitrate
=
NULL
;
GtkSpinButton
*
entryVideoBitrateTolerance
=
NULL
;
GtkSpinButton
*
entryVideoKeyFrameInterval
=
NULL
;
GtkCheckButton
*
checkVideoDeinterlace
=
NULL
;
GtkEntry
*
entryAudioCodec
=
NULL
;
GtkSpinButton
*
entryAudioBitrate
=
NULL
;
const
gchar
*
p_video_codec
;
gint
i_video_bitrate
;
gint
i_video_bitrate_tolerance
;
gint
i_video_keyframe_interval
;
gboolean
b_video_deinterlace
;
const
gchar
*
p_audio_codec
;
gint
i_audio_bitrate
;
GtkEntry
*
entryStdAccess
=
NULL
;
GtkEntry
*
entryStdMuxer
=
NULL
;
GtkEntry
*
entryStdURL
=
NULL
;
GtkSpinButton
*
entryStdTTL
=
NULL
;
const
gchar
*
p_std_access
;
const
gchar
*
p_std_muxer
;
const
gchar
*
p_std_url
;
gint
i_std_ttl
;
gchar
mrl
[
VLC_MAX_MRL
];
int
pos
;
pos
=
snprintf
(
&
mrl
[
0
],
VLC_MAX_MRL
,
"--sout '#transcode{"
);
entryVideoCodec
=
(
GtkEntry
*
)
lookup_widget
(
GTK_WIDGET
(
button
),
"entryVideoCodec"
);
entryVideoBitrate
=
(
GtkSpinButton
*
)
lookup_widget
(
GTK_WIDGET
(
button
),
"entryVideoBitrate"
);
entryVideoBitrateTolerance
=
(
GtkSpinButton
*
)
lookup_widget
(
GTK_WIDGET
(
button
),
"entryVideoBitrateTolerance"
);
entryVideoKeyFrameInterval
=
(
GtkSpinButton
*
)
lookup_widget
(
GTK_WIDGET
(
button
),
"entryVideoKeyFrameInterval"
);
p_video_codec
=
gtk_entry_get_text
(
GTK_ENTRY
(
entryVideoCodec
));
i_video_bitrate
=
gtk_spin_button_get_value_as_int
(
entryVideoBitrate
);
i_video_bitrate_tolerance
=
gtk_spin_button_get_value_as_int
(
entryVideoBitrateTolerance
);
i_video_keyframe_interval
=
gtk_spin_button_get_value_as_int
(
entryVideoKeyFrameInterval
);
pos
+=
snprintf
(
&
mrl
[
pos
],
VLC_MAX_MRL
-
pos
,
"vcodec=%s,"
,
(
char
*
)
p_video_codec
);
pos
+=
snprintf
(
&
mrl
[
pos
],
VLC_MAX_MRL
-
pos
,
"vb=%d,"
,
(
int
)
i_video_bitrate
);
pos
+=
snprintf
(
&
mrl
[
pos
],
VLC_MAX_MRL
-
pos
,
"vt=%d,"
,
(
int
)
i_video_bitrate_tolerance
);
pos
+=
snprintf
(
&
mrl
[
pos
],
VLC_MAX_MRL
-
pos
,
"keyint=%d,"
,
(
int
)
i_video_keyframe_interval
);
checkVideoDeinterlace
=
(
GtkCheckButton
*
)
lookup_widget
(
GTK_WIDGET
(
button
),
"checkVideoDeinterlace"
);
b_video_deinterlace
=
gtk_toggle_button_get_active
(
GTK_TOGGLE_BUTTON
(
checkVideoDeinterlace
));
if
(
b_video_deinterlace
)
{
pos
+=
snprintf
(
&
mrl
[
pos
],
VLC_MAX_MRL
-
pos
,
"deinterlace,"
);
}
entryAudioCodec
=
(
GtkEntry
*
)
lookup_widget
(
GTK_WIDGET
(
button
),
"entryAudioCodec"
);
entryAudioBitrate
=
(
GtkSpinButton
*
)
lookup_widget
(
GTK_WIDGET
(
button
),
"entryAudioBitrate"
);
p_audio_codec
=
gtk_entry_get_text
(
GTK_ENTRY
(
entryAudioCodec
));
i_audio_bitrate
=
gtk_spin_button_get_value_as_int
(
entryAudioBitrate
);
pos
+=
snprintf
(
&
mrl
[
pos
],
VLC_MAX_MRL
-
pos
,
"acodec=%s,"
,
(
char
*
)
p_audio_codec
);
pos
+=
snprintf
(
&
mrl
[
pos
],
VLC_MAX_MRL
-
pos
,
"ab=%d"
,
(
int
)
i_audio_bitrate
);
pos
+=
snprintf
(
&
mrl
[
pos
],
VLC_MAX_MRL
-
pos
,
"}:std{"
);
entryStdAccess
=
(
GtkEntry
*
)
lookup_widget
(
GTK_WIDGET
(
button
),
"entryStdAccess"
);
entryStdMuxer
=
(
GtkEntry
*
)
lookup_widget
(
GTK_WIDGET
(
button
),
"entryStdMuxer"
);
entryStdURL
=
(
GtkEntry
*
)
lookup_widget
(
GTK_WIDGET
(
button
),
"entryStdURL"
);
entryStdTTL
=
(
GtkSpinButton
*
)
lookup_widget
(
GTK_WIDGET
(
button
),
"entryStdTTL"
);
p_std_access
=
gtk_entry_get_text
(
GTK_ENTRY
(
entryStdAccess
));
p_std_muxer
=
gtk_entry_get_text
(
GTK_ENTRY
(
entryStdMuxer
));
p_std_url
=
gtk_entry_get_text
(
GTK_ENTRY
(
entryStdURL
));
pos
+=
snprintf
(
&
mrl
[
pos
],
VLC_MAX_MRL
-
pos
,
"access=%s,"
,
(
char
*
)
p_std_access
);
pos
+=
snprintf
(
&
mrl
[
pos
],
VLC_MAX_MRL
-
pos
,
"mux=%s,"
,
(
char
*
)
p_std_muxer
);
pos
+=
snprintf
(
&
mrl
[
pos
],
VLC_MAX_MRL
-
pos
,
"url=%s"
,
(
char
*
)
p_std_url
);
pos
+=
snprintf
(
&
mrl
[
pos
],
VLC_MAX_MRL
-
pos
,
"}'"
);
i_std_ttl
=
gtk_spin_button_get_value_as_int
(
entryStdTTL
);
pos
+=
snprintf
(
&
mrl
[
pos
],
VLC_MAX_MRL
-
pos
,
" --ttl=%d"
,
(
int
)
i_std_ttl
);
if
(
pos
>=
VLC_MAX_MRL
)
_mrl
[
VLC_MAX_MRL
-
1
]
=
'\0'
;
g_print
(
"%s
\n
"
,
mrl
);
PlaylistAddItem
(
GTK_WIDGET
(
button
),
(
gchar
*
)
&
mrl
);
}
modules/gui/pda/pda_callbacks.h
View file @
a4c1c8f5
...
...
@@ -2,7 +2,7 @@
* callbacks.h : pda plugin for vlc
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* $Id: pda_callbacks.h,v 1.
7 2003/11/09 19:49:48
jpsaman Exp $
* $Id: pda_callbacks.h,v 1.
8 2003/11/09 21:29:52
jpsaman Exp $
*
* Authors: Jean-Paul Saman <jpsaman@wxs.nl>
*
...
...
@@ -27,7 +27,9 @@
#include <vlc/intf.h>
void
ReadDirectory
(
GtkListStore
*
p_list
,
char
*
psz_dir
);
#if 0
void MediaURLOpenChanged( GtkWidget *widget, gchar *psz_url );
#endif
void
PlaylistRebuildListStore
(
GtkListStore
*
p_list
,
playlist_t
*
p_playlist
);
...
...
modules/gui/pda/pda_interface.c
View file @
a4c1c8f5
...
...
@@ -126,7 +126,44 @@ create_pda (void)
GtkWidget
*
vbox1
;
GtkWidget
*
scrolledwindowTranscode
;
GtkWidget
*
viewport5
;
GtkWidget
*
table6
;
GtkWidget
*
tableTranscode
;
GtkWidget
*
labelVideoCodec
;
GtkWidget
*
comboVideoCodec
;
GList
*
comboVideoCodec_items
=
NULL
;
GtkWidget
*
entryVideoCodec
;
GtkWidget
*
labelVideoBitrate
;
GtkWidget
*
labelVideoBitrateTolerance
;
GtkWidget
*
labelVideoKeyInterval
;
GtkWidget
*
labelAudioCodec
;
GtkWidget
*
labelVideoDeinterlace
;
GtkWidget
*
labelStdAccess
;
GtkWidget
*
labelStdMuxer
;
GtkWidget
*
labelStdUrl
;
GtkWidget
*
labelStdTimeToLive
;
GtkObject
*
entryStdTTL_adj
;
GtkWidget
*
entryStdTTL
;
GtkWidget
*
comboStdURL
;
GList
*
comboStdURL_items
=
NULL
;
GtkWidget
*
entryStdURL
;
GtkWidget
*
comboStdMuxer
;
GList
*
comboStdMuxer_items
=
NULL
;
GtkWidget
*
entryStdMuxer
;
GtkWidget
*
comboStdAccess
;
GList
*
comboStdAccess_items
=
NULL
;
GtkWidget
*
entryStdAccess
;
GtkObject
*
entryAudioBitrate_adj
;
GtkWidget
*
entryAudioBitrate
;
GtkWidget
*
comboAudioCodec
;
GList
*
comboAudioCodec_items
=
NULL
;
GtkWidget
*
entryAudioCodec
;
GtkWidget
*
checkVideoDeinterlace
;
GtkObject
*
entryVideoKeyFrameInterval_adj
;
GtkWidget
*
entryVideoKeyFrameInterval
;
GtkObject
*
entryVideoBitrateTolerance_adj
;
GtkWidget
*
entryVideoBitrateTolerance
;
GtkObject
*
entryVideoBitrate_adj
;
GtkWidget
*
entryVideoBitrate
;
GtkWidget
*
labelAudioBitrate
;
GtkWidget
*
hbox14
;
GtkWidget
*
AddTranscodeToPlaylist
;
GtkWidget
*
Transcode
;
...
...
@@ -153,6 +190,9 @@ create_pda (void)
GtkWidget
*
labelProgramName
;
GtkWidget
*
labelCopyright
;
GtkWidget
*
about
;
GtkTooltips
*
tooltips
;
tooltips
=
gtk_tooltips_new
();
pda
=
gtk_window_new
(
GTK_WINDOW_TOPLEVEL
);
gtk_widget_set_name
(
pda
,
"pda"
);
...
...
@@ -717,6 +757,7 @@ create_pda (void)
gtk_table_attach
(
GTK_TABLE
(
tableV4L
),
entryV4LFrequency
,
1
,
2
,
5
,
6
,
(
GtkAttachOptions
)
(
GTK_EXPAND
|
GTK_SHRINK
|
GTK_FILL
),
(
GtkAttachOptions
)
(
0
),
0
,
0
);
gtk_tooltips_set_tip
(
tooltips
,
entryV4LFrequency
,
_
(
"kHz"
),
NULL
);
gtk_spin_button_set_numeric
(
GTK_SPIN_BUTTON
(
entryV4LFrequency
),
TRUE
);
entryV4LSampleRate_adj
=
gtk_adjustment_new
(
44100
,
0
,
65535
,
1
,
10
,
10
);
...
...
@@ -726,6 +767,7 @@ create_pda (void)
gtk_table_attach
(
GTK_TABLE
(
tableV4L
),
entryV4LSampleRate
,
1
,
2
,
6
,
7
,
(
GtkAttachOptions
)
(
GTK_EXPAND
|
GTK_SHRINK
|
GTK_FILL
),
(
GtkAttachOptions
)
(
0
),
0
,
0
);
gtk_tooltips_set_tip
(
tooltips
,
entryV4LSampleRate
,
_
(
"Hz/s"
),
NULL
);
gtk_spin_button_set_numeric
(
GTK_SPIN_BUTTON
(
entryV4LSampleRate
),
TRUE
);
entryV4LQuality_adj
=
gtk_adjustment_new
(
100
,
0
,
65535
,
1
,
10
,
10
);
...
...
@@ -807,17 +849,278 @@ create_pda (void)
gtk_widget_set_name
(
scrolledwindowTranscode
,
"scrolledwindowTranscode"
);
gtk_widget_show
(
scrolledwindowTranscode
);
gtk_box_pack_start
(
GTK_BOX
(
vbox1
),
scrolledwindowTranscode
,
TRUE
,
TRUE
,
0
);
gtk_scrolled_window_set_policy
(
GTK_SCROLLED_WINDOW
(
scrolledwindowTranscode
),
GTK_POLICY_
NEVER
,
GTK_POLICY_ALWAYS
);
gtk_scrolled_window_set_policy
(
GTK_SCROLLED_WINDOW
(
scrolledwindowTranscode
),
GTK_POLICY_
AUTOMATIC
,
GTK_POLICY_AUTOMATIC
);
viewport5
=
gtk_viewport_new
(
NULL
,
NULL
);
gtk_widget_set_name
(
viewport5
,
"viewport5"
);
gtk_widget_show
(
viewport5
);
gtk_container_add
(
GTK_CONTAINER
(
scrolledwindowTranscode
),
viewport5
);
table6
=
gtk_table_new
(
14
,
2
,
FALSE
);
gtk_widget_set_name
(
table6
,
"table6"
);
gtk_widget_show
(
table6
);
gtk_container_add
(
GTK_CONTAINER
(
viewport5
),
table6
);
tableTranscode
=
gtk_table_new
(
11
,
2
,
FALSE
);
gtk_widget_set_name
(
tableTranscode
,
"tableTranscode"
);
gtk_widget_show
(
tableTranscode
);
gtk_container_add
(
GTK_CONTAINER
(
viewport5
),
tableTranscode
);
labelVideoCodec
=
gtk_label_new
(
_
(
"Video Codec:"
));
gtk_widget_set_name
(
labelVideoCodec
,
"labelVideoCodec"
);
gtk_widget_show
(
labelVideoCodec
);
gtk_table_attach
(
GTK_TABLE
(
tableTranscode
),
labelVideoCodec
,
0
,
1
,
0
,
1
,
(
GtkAttachOptions
)
(
GTK_FILL
),
(
GtkAttachOptions
)
(
0
),
0
,
0
);
gtk_label_set_justify
(
GTK_LABEL
(
labelVideoCodec
),
GTK_JUSTIFY_LEFT
);
gtk_misc_set_alignment
(
GTK_MISC
(
labelVideoCodec
),
0
,
0
.
5
);
comboVideoCodec
=
gtk_combo_new
();
g_object_set_data
(
G_OBJECT
(
GTK_COMBO
(
comboVideoCodec
)
->
popwin
),
"GladeParentKey"
,
comboVideoCodec
);
gtk_widget_set_name
(
comboVideoCodec
,
"comboVideoCodec"
);
gtk_widget_show
(
comboVideoCodec
);
gtk_table_attach
(
GTK_TABLE
(
tableTranscode
),
comboVideoCodec
,
1
,
2
,
0
,
1
,
(
GtkAttachOptions
)
(
GTK_EXPAND
|
GTK_SHRINK
|
GTK_FILL
),
(
GtkAttachOptions
)
(
0
),
0
,
0
);
comboVideoCodec_items
=
g_list_append
(
comboVideoCodec_items
,
(
gpointer
)
_
(
"huffyuv"
));
comboVideoCodec_items
=
g_list_append
(
comboVideoCodec_items
,
(
gpointer
)
_
(
"mpgv"
));
comboVideoCodec_items
=
g_list_append
(
comboVideoCodec_items
,
(
gpointer
)
_
(
"mp4v"
));
comboVideoCodec_items
=
g_list_append
(
comboVideoCodec_items
,
(
gpointer
)
_
(
"h263"
));
comboVideoCodec_items
=
g_list_append
(
comboVideoCodec_items
,
(
gpointer
)
_
(
"DIV1"
));
comboVideoCodec_items
=
g_list_append
(
comboVideoCodec_items
,
(
gpointer
)
_
(
"DIV2"
));
comboVideoCodec_items
=
g_list_append
(
comboVideoCodec_items
,
(
gpointer
)
_
(
"DIV3"
));
comboVideoCodec_items
=
g_list_append
(
comboVideoCodec_items
,
(
gpointer
)
_
(
"I420"
));
comboVideoCodec_items
=
g_list_append
(
comboVideoCodec_items
,
(
gpointer
)
_
(
"I422"
));
comboVideoCodec_items
=
g_list_append
(
comboVideoCodec_items
,
(
gpointer
)
_
(
"I444"
));
comboVideoCodec_items
=
g_list_append
(
comboVideoCodec_items
,
(
gpointer
)
_
(
"RV24"
));
comboVideoCodec_items
=
g_list_append
(
comboVideoCodec_items
,
(
gpointer
)
_
(
"YUY2"
));
gtk_combo_set_popdown_strings
(
GTK_COMBO
(
comboVideoCodec
),
comboVideoCodec_items
);
g_list_free
(
comboVideoCodec_items
);
entryVideoCodec
=
GTK_COMBO
(
comboVideoCodec
)
->
entry
;
gtk_widget_set_name
(
entryVideoCodec
,
"entryVideoCodec"
);
gtk_widget_show
(
entryVideoCodec
);
gtk_entry_set_text
(
GTK_ENTRY
(
entryVideoCodec
),
_
(
"huffyuv"
));
gtk_entry_set_activates_default
(
GTK_ENTRY
(
entryVideoCodec
),
TRUE
);
labelVideoBitrate
=
gtk_label_new
(
_
(
"Video Bitrate:"
));
gtk_widget_set_name
(
labelVideoBitrate
,
"labelVideoBitrate"
);
gtk_widget_show
(
labelVideoBitrate
);
gtk_table_attach
(
GTK_TABLE
(
tableTranscode
),
labelVideoBitrate
,
0
,
1
,
1
,
2
,
(
GtkAttachOptions
)
(
GTK_FILL
),
(
GtkAttachOptions
)
(
0
),
0
,
0
);
gtk_label_set_justify
(
GTK_LABEL
(
labelVideoBitrate
),
GTK_JUSTIFY_LEFT
);
gtk_misc_set_alignment
(
GTK_MISC
(
labelVideoBitrate
),
0
,
0
.
5
);
labelVideoBitrateTolerance
=
gtk_label_new
(
_
(
"Bitrate Tolerance:"
));
gtk_widget_set_name
(
labelVideoBitrateTolerance
,
"labelVideoBitrateTolerance"
);
gtk_widget_show
(
labelVideoBitrateTolerance
);
gtk_table_attach
(
GTK_TABLE
(
tableTranscode
),
labelVideoBitrateTolerance
,
0
,
1
,
2
,
3
,
(
GtkAttachOptions
)
(
GTK_FILL
),
(
GtkAttachOptions
)
(
0
),
0
,
0
);
gtk_label_set_justify
(
GTK_LABEL
(
labelVideoBitrateTolerance
),
GTK_JUSTIFY_LEFT
);
gtk_misc_set_alignment
(
GTK_MISC
(
labelVideoBitrateTolerance
),
0
,
0
.
5
);
labelVideoKeyInterval
=
gtk_label_new
(
_
(
"Keyframe Interval:"
));
gtk_widget_set_name
(
labelVideoKeyInterval
,
"labelVideoKeyInterval"
);
gtk_widget_show
(
labelVideoKeyInterval
);
gtk_table_attach
(
GTK_TABLE
(
tableTranscode
),
labelVideoKeyInterval
,
0
,
1
,
3
,
4
,
(
GtkAttachOptions
)
(
GTK_FILL
),
(
GtkAttachOptions
)
(
0
),
0
,
0
);
gtk_label_set_justify
(
GTK_LABEL
(
labelVideoKeyInterval
),
GTK_JUSTIFY_LEFT
);
gtk_misc_set_alignment
(
GTK_MISC
(
labelVideoKeyInterval
),
0
,
0
.
5
);
labelAudioCodec
=
gtk_label_new
(
_
(
"Audio Codec:"
));
gtk_widget_set_name
(
labelAudioCodec
,
"labelAudioCodec"
);
gtk_widget_show
(
labelAudioCodec
);
gtk_table_attach
(
GTK_TABLE
(
tableTranscode
),
labelAudioCodec
,
0
,
1
,
5
,
6
,
(
GtkAttachOptions
)
(
GTK_FILL
),
(
GtkAttachOptions
)
(
0
),
0
,
0
);
gtk_label_set_justify
(
GTK_LABEL
(
labelAudioCodec
),
GTK_JUSTIFY_LEFT
);
gtk_misc_set_alignment
(
GTK_MISC
(
labelAudioCodec
),
0
,
0
.
5
);
labelVideoDeinterlace
=
gtk_label_new
(
_
(
"Deinterlace:"
));
gtk_widget_set_name
(
labelVideoDeinterlace
,
"labelVideoDeinterlace"
);
gtk_widget_show
(
labelVideoDeinterlace
);
gtk_table_attach
(
GTK_TABLE
(
tableTranscode
),
labelVideoDeinterlace
,
0
,
1
,
4
,
5
,
(
GtkAttachOptions
)
(
GTK_FILL
),
(
GtkAttachOptions
)
(
0
),
0
,
0
);
gtk_label_set_justify
(
GTK_LABEL
(
labelVideoDeinterlace
),
GTK_JUSTIFY_LEFT
);
gtk_misc_set_alignment
(
GTK_MISC
(
labelVideoDeinterlace
),
0
,
0
.
5
);
labelStdAccess
=
gtk_label_new
(
_
(
"Access:"
));
gtk_widget_set_name
(
labelStdAccess
,
"labelStdAccess"
);
gtk_widget_show
(
labelStdAccess
);
gtk_table_attach
(
GTK_TABLE
(
tableTranscode
),
labelStdAccess
,
0
,
1
,
7
,
8
,
(
GtkAttachOptions
)
(
GTK_FILL
),
(
GtkAttachOptions
)
(
0
),
0
,
0
);
gtk_label_set_justify
(
GTK_LABEL
(
labelStdAccess
),
GTK_JUSTIFY_LEFT
);
gtk_misc_set_alignment
(
GTK_MISC
(
labelStdAccess
),
0
,
0
.
5
);
labelStdMuxer
=
gtk_label_new
(
_
(
"Muxer:"
));
gtk_widget_set_name
(
labelStdMuxer
,
"labelStdMuxer"
);
gtk_widget_show
(
labelStdMuxer
);
gtk_table_attach
(
GTK_TABLE
(
tableTranscode
),
labelStdMuxer
,
0
,
1
,
8
,
9
,
(
GtkAttachOptions
)
(
GTK_FILL
),
(
GtkAttachOptions
)
(
0
),
0
,
0
);
gtk_label_set_justify
(
GTK_LABEL
(
labelStdMuxer
),
GTK_JUSTIFY_LEFT
);
gtk_misc_set_alignment
(
GTK_MISC
(
labelStdMuxer
),
0
,
0
.
5
);
labelStdUrl
=
gtk_label_new
(
_
(
"URL:"
));
gtk_widget_set_name
(
labelStdUrl
,
"labelStdUrl"
);
gtk_widget_show
(
labelStdUrl
);
gtk_table_attach
(
GTK_TABLE
(
tableTranscode
),
labelStdUrl
,
0
,
1
,
9
,
10
,
(
GtkAttachOptions
)
(
GTK_FILL
),
(
GtkAttachOptions
)
(
0
),
0
,
0
);
gtk_label_set_justify
(
GTK_LABEL
(
labelStdUrl
),
GTK_JUSTIFY_LEFT
);
gtk_misc_set_alignment
(
GTK_MISC
(
labelStdUrl
),
0
,
0
.
5
);
labelStdTimeToLive
=
gtk_label_new
(
_
(
"Time To Live (TTL):"
));
gtk_widget_set_name
(
labelStdTimeToLive
,
"labelStdTimeToLive"
);
gtk_widget_show
(
labelStdTimeToLive
);
gtk_table_attach
(
GTK_TABLE
(
tableTranscode
),
labelStdTimeToLive
,
0
,
1
,
10
,
11
,
(
GtkAttachOptions
)
(
GTK_FILL
),
(
GtkAttachOptions
)
(
0
),
0
,
0
);
gtk_label_set_justify
(
GTK_LABEL
(
labelStdTimeToLive
),
GTK_JUSTIFY_LEFT
);
gtk_misc_set_alignment
(
GTK_MISC
(
labelStdTimeToLive
),
0
,
0
.
5
);
entryStdTTL_adj
=
gtk_adjustment_new
(
1
,
0
,
100
,
1
,
10
,
10
);
entryStdTTL
=
gtk_spin_button_new
(
GTK_ADJUSTMENT
(
entryStdTTL_adj
),
1
,
0
);
gtk_widget_set_name
(
entryStdTTL
,
"entryStdTTL"
);
gtk_widget_show
(
entryStdTTL
);
gtk_table_attach
(
GTK_TABLE
(
tableTranscode
),
entryStdTTL
,
1
,
2
,
10
,
11
,
(
GtkAttachOptions
)
(
GTK_EXPAND
|
GTK_FILL
),
(
GtkAttachOptions
)
(
0
),
0
,
0
);
comboStdURL
=
gtk_combo_new
();
g_object_set_data
(
G_OBJECT
(
GTK_COMBO
(
comboStdURL
)
->
popwin
),
"GladeParentKey"
,
comboStdURL
);
gtk_widget_set_name
(
comboStdURL
,
"comboStdURL"
);
gtk_widget_show
(
comboStdURL
);
gtk_table_attach
(
GTK_TABLE
(
tableTranscode
),
comboStdURL
,
1
,
2
,
9
,
10
,
(
GtkAttachOptions
)
(
GTK_EXPAND
|
GTK_FILL
),
(
GtkAttachOptions
)
(
0
),
0
,
0
);
comboStdURL_items
=
g_list_append
(
comboStdURL_items
,
(
gpointer
)
_
(
"127.0.0.1"
));
comboStdURL_items
=
g_list_append
(
comboStdURL_items
,
(
gpointer
)
_
(
"localhost"
));
comboStdURL_items
=
g_list_append
(
comboStdURL_items
,
(
gpointer
)
_
(
"localhost.localdomain"
));
comboStdURL_items
=
g_list_append
(
comboStdURL_items
,
(
gpointer
)
_
(
"239.0.0.42"
));
gtk_combo_set_popdown_strings
(
GTK_COMBO
(
comboStdURL
),
comboStdURL_items
);
g_list_free
(
comboStdURL_items
);
entryStdURL
=
GTK_COMBO
(
comboStdURL
)
->
entry
;
gtk_widget_set_name
(
entryStdURL
,
"entryStdURL"
);
gtk_widget_show
(
entryStdURL
);
gtk_entry_set_text
(
GTK_ENTRY
(
entryStdURL
),
_
(
"127.0.0.1"
));
gtk_entry_set_activates_default
(
GTK_ENTRY
(
entryStdURL
),
TRUE
);
comboStdMuxer
=
gtk_combo_new
();
g_object_set_data
(
G_OBJECT
(
GTK_COMBO
(
comboStdMuxer
)
->
popwin
),
"GladeParentKey"
,
comboStdMuxer
);
gtk_widget_set_name
(
comboStdMuxer
,
"comboStdMuxer"
);
gtk_widget_show
(
comboStdMuxer
);
gtk_table_attach
(
GTK_TABLE
(
tableTranscode
),
comboStdMuxer
,
1
,
2
,
8
,
9
,
(
GtkAttachOptions
)
(
GTK_EXPAND
|
GTK_FILL
),
(
GtkAttachOptions
)
(
0
),
0
,
0
);
comboStdMuxer_items
=
g_list_append
(
comboStdMuxer_items
,
(
gpointer
)
_
(
"udp"
));
gtk_combo_set_popdown_strings
(
GTK_COMBO
(
comboStdMuxer
),
comboStdMuxer_items
);
g_list_free
(
comboStdMuxer_items
);
entryStdMuxer
=
GTK_COMBO
(
comboStdMuxer
)
->
entry
;
gtk_widget_set_name
(
entryStdMuxer
,
"entryStdMuxer"
);
gtk_widget_show
(
entryStdMuxer
);
gtk_entry_set_text
(
GTK_ENTRY
(
entryStdMuxer
),
_
(
"udp"
));
gtk_entry_set_activates_default
(
GTK_ENTRY
(
entryStdMuxer
),
TRUE
);
comboStdAccess
=
gtk_combo_new
();
g_object_set_data
(
G_OBJECT
(
GTK_COMBO
(
comboStdAccess
)
->
popwin
),
"GladeParentKey"
,
comboStdAccess
);
gtk_widget_set_name
(
comboStdAccess
,
"comboStdAccess"
);
gtk_widget_show
(
comboStdAccess
);
gtk_table_attach
(
GTK_TABLE
(
tableTranscode
),
comboStdAccess
,
1
,
2
,
7
,
8
,
(
GtkAttachOptions
)
(
GTK_EXPAND
|
GTK_FILL
),
(
GtkAttachOptions
)
(
0
),
0
,
0
);
comboStdAccess_items
=
g_list_append
(
comboStdAccess_items
,
(
gpointer
)
_
(
"ts"
));
comboStdAccess_items
=
g_list_append
(
comboStdAccess_items
,
(
gpointer
)
_
(
"rtp"
));
gtk_combo_set_popdown_strings
(
GTK_COMBO
(
comboStdAccess
),
comboStdAccess_items
);
g_list_free
(
comboStdAccess_items
);
entryStdAccess
=
GTK_COMBO
(
comboStdAccess
)
->
entry
;
gtk_widget_set_name
(
entryStdAccess
,
"entryStdAccess"
);
gtk_widget_show
(
entryStdAccess
);
gtk_entry_set_text
(
GTK_ENTRY
(
entryStdAccess
),
_
(
"ts"
));
gtk_entry_set_activates_default
(
GTK_ENTRY
(
entryStdAccess
),
TRUE
);
entryAudioBitrate_adj
=
gtk_adjustment_new
(
256
,
0
,
65535
,
1
,
10
,
10
);
entryAudioBitrate
=
gtk_spin_button_new
(
GTK_ADJUSTMENT
(
entryAudioBitrate_adj
),
1
,
0
);
gtk_widget_set_name
(
entryAudioBitrate
,
"entryAudioBitrate"
);
gtk_widget_show
(
entryAudioBitrate
);
gtk_table_attach
(
GTK_TABLE
(
tableTranscode
),
entryAudioBitrate
,
1
,
2
,
6
,
7
,
(
GtkAttachOptions
)
(
GTK_EXPAND
|
GTK_FILL
),
(
GtkAttachOptions
)
(
0
),
0
,
0
);
gtk_tooltips_set_tip
(
tooltips
,
entryAudioBitrate
,
_
(
"kbits/s"
),
NULL
);
gtk_spin_button_set_numeric
(
GTK_SPIN_BUTTON
(
entryAudioBitrate
),
TRUE
);
comboAudioCodec
=
gtk_combo_new
();
g_object_set_data
(
G_OBJECT
(
GTK_COMBO
(
comboAudioCodec
)
->
popwin
),
"GladeParentKey"
,
comboAudioCodec
);
gtk_widget_set_name
(
comboAudioCodec
,
"comboAudioCodec"
);
gtk_widget_show
(
comboAudioCodec
);
gtk_table_attach
(
GTK_TABLE
(
tableTranscode
),
comboAudioCodec
,
1
,
2
,
5
,
6
,
(
GtkAttachOptions
)
(
GTK_EXPAND
|
GTK_FILL
),
(
GtkAttachOptions
)
(
0
),
0
,
0
);
comboAudioCodec_items
=
g_list_append
(
comboAudioCodec_items
,
(
gpointer
)
_
(
"alaw"
));
comboAudioCodec_items
=
g_list_append
(
comboAudioCodec_items
,
(
gpointer
)
_
(
"ulaw"
));
comboAudioCodec_items
=
g_list_append
(
comboAudioCodec_items
,
(
gpointer
)
_
(
"mpga"
));
comboAudioCodec_items
=
g_list_append
(
comboAudioCodec_items
,
(
gpointer
)
_
(
"mp3"
));
gtk_combo_set_popdown_strings
(
GTK_COMBO
(
comboAudioCodec
),
comboAudioCodec_items
);
g_list_free
(
comboAudioCodec_items
);
entryAudioCodec
=
GTK_COMBO
(
comboAudioCodec
)
->
entry
;
gtk_widget_set_name
(
entryAudioCodec
,
"entryAudioCodec"
);
gtk_widget_show
(
entryAudioCodec
);
gtk_entry_set_text
(
GTK_ENTRY
(
entryAudioCodec
),
_
(
"alaw"
));
gtk_entry_set_activates_default
(
GTK_ENTRY
(
entryAudioCodec
),
TRUE
);
checkVideoDeinterlace
=
gtk_check_button_new_with_mnemonic
(
_
(
"enable"
));
gtk_widget_set_name
(
checkVideoDeinterlace
,
"checkVideoDeinterlace"
);
gtk_widget_show
(
checkVideoDeinterlace
);
gtk_table_attach
(
GTK_TABLE
(
tableTranscode
),
checkVideoDeinterlace
,
1
,
2
,
4
,
5
,
(
GtkAttachOptions
)
(
GTK_FILL
),
(
GtkAttachOptions
)
(
0
),
0
,
0
);
entryVideoKeyFrameInterval_adj
=
gtk_adjustment_new
(
80
,
0
,
65535
,
1
,
10
,
10
);
entryVideoKeyFrameInterval
=
gtk_spin_button_new
(
GTK_ADJUSTMENT
(
entryVideoKeyFrameInterval_adj
),
1
,
0
);
gtk_widget_set_name
(
entryVideoKeyFrameInterval
,
"entryVideoKeyFrameInterval"
);
gtk_widget_show
(
entryVideoKeyFrameInterval
);
gtk_table_attach
(
GTK_TABLE
(
tableTranscode
),
entryVideoKeyFrameInterval
,
1
,
2
,
3
,
4
,
(
GtkAttachOptions
)
(
GTK_EXPAND
|
GTK_FILL
),
(
GtkAttachOptions
)
(
0
),
0
,
0
);
gtk_spin_button_set_numeric
(
GTK_SPIN_BUTTON
(
entryVideoKeyFrameInterval
),
TRUE
);
entryVideoBitrateTolerance_adj
=
gtk_adjustment_new
(
800000
,
0
,
1e+06
,
1
,
10
,
10
);
entryVideoBitrateTolerance
=
gtk_spin_button_new
(
GTK_ADJUSTMENT
(
entryVideoBitrateTolerance_adj
),
1
,
0
);
gtk_widget_set_name
(
entryVideoBitrateTolerance
,
"entryVideoBitrateTolerance"
);
gtk_widget_show
(
entryVideoBitrateTolerance
);
gtk_table_attach
(
GTK_TABLE
(
tableTranscode
),
entryVideoBitrateTolerance
,
1
,
2
,
2
,
3
,
(
GtkAttachOptions
)
(
GTK_EXPAND
|
GTK_FILL
),
(
GtkAttachOptions
)
(
0
),
0
,
0
);
gtk_tooltips_set_tip
(
tooltips
,
entryVideoBitrateTolerance
,
_
(
"bits/s"
),
NULL
);
gtk_spin_button_set_numeric
(
GTK_SPIN_BUTTON
(
entryVideoBitrateTolerance
),
TRUE
);
entryVideoBitrate_adj
=
gtk_adjustment_new
(
3000
,
0
,
65535
,
1
,
10
,
10
);
entryVideoBitrate
=
gtk_spin_button_new
(
GTK_ADJUSTMENT
(
entryVideoBitrate_adj
),
1
,
0
);
gtk_widget_set_name
(
entryVideoBitrate
,
"entryVideoBitrate"
);
gtk_widget_show
(
entryVideoBitrate
);
gtk_table_attach
(
GTK_TABLE
(
tableTranscode
),
entryVideoBitrate
,
1
,
2
,
1
,
2
,
(
GtkAttachOptions
)
(
GTK_EXPAND
|
GTK_FILL
),
(
GtkAttachOptions
)
(
0
),
0
,
0
);
gtk_tooltips_set_tip
(
tooltips
,
entryVideoBitrate
,
_
(
"kbits/s"
),
NULL
);
gtk_spin_button_set_numeric
(
GTK_SPIN_BUTTON
(
entryVideoBitrate
),
TRUE
);
labelAudioBitrate
=
gtk_label_new
(
_
(
"Audio Bitrate :"
));
gtk_widget_set_name
(
labelAudioBitrate
,
"labelAudioBitrate"
);
gtk_widget_show
(
labelAudioBitrate
);
gtk_table_attach
(
GTK_TABLE
(
tableTranscode
),
labelAudioBitrate
,
0
,
1
,
6
,
7
,
(
GtkAttachOptions
)
(
GTK_FILL
),
(
GtkAttachOptions
)
(
0
),
0
,
0
);
gtk_label_set_justify
(
GTK_LABEL
(
labelAudioBitrate
),
GTK_JUSTIFY_LEFT
);
gtk_misc_set_alignment
(
GTK_MISC
(
labelAudioBitrate
),
0
,
0
.
5
);
hbox14
=
gtk_hbox_new
(
FALSE
,
0
);
gtk_widget_set_name
(
hbox14
,
"hbox14"
);
...
...
@@ -1136,7 +1439,34 @@ create_pda (void)
GLADE_HOOKUP_OBJECT
(
pda
,
vbox1
,
"vbox1"
);
GLADE_HOOKUP_OBJECT
(
pda
,
scrolledwindowTranscode
,
"scrolledwindowTranscode"
);
GLADE_HOOKUP_OBJECT
(
pda
,
viewport5
,
"viewport5"
);
GLADE_HOOKUP_OBJECT
(
pda
,
table6
,
"table6"
);
GLADE_HOOKUP_OBJECT
(
pda
,
tableTranscode
,
"tableTranscode"
);
GLADE_HOOKUP_OBJECT
(
pda
,
labelVideoCodec
,
"labelVideoCodec"
);
GLADE_HOOKUP_OBJECT
(
pda
,
comboVideoCodec
,
"comboVideoCodec"
);
GLADE_HOOKUP_OBJECT
(
pda
,
entryVideoCodec
,
"entryVideoCodec"
);
GLADE_HOOKUP_OBJECT
(
pda
,
labelVideoBitrate
,
"labelVideoBitrate"
);
GLADE_HOOKUP_OBJECT
(
pda
,
labelVideoBitrateTolerance
,
"labelVideoBitrateTolerance"
);
GLADE_HOOKUP_OBJECT
(
pda
,
labelVideoKeyInterval
,
"labelVideoKeyInterval"
);
GLADE_HOOKUP_OBJECT
(
pda
,
labelAudioCodec
,
"labelAudioCodec"
);
GLADE_HOOKUP_OBJECT
(
pda
,
labelVideoDeinterlace
,
"labelVideoDeinterlace"
);
GLADE_HOOKUP_OBJECT
(
pda
,
labelStdAccess
,
"labelStdAccess"
);
GLADE_HOOKUP_OBJECT
(
pda
,
labelStdMuxer
,
"labelStdMuxer"
);
GLADE_HOOKUP_OBJECT
(
pda
,
labelStdUrl
,
"labelStdUrl"
);
GLADE_HOOKUP_OBJECT
(
pda
,
labelStdTimeToLive
,
"labelStdTimeToLive"
);
GLADE_HOOKUP_OBJECT
(
pda
,
entryStdTTL
,
"entryStdTTL"
);
GLADE_HOOKUP_OBJECT
(
pda
,
comboStdURL
,
"comboStdURL"
);
GLADE_HOOKUP_OBJECT
(
pda
,
entryStdURL
,
"entryStdURL"
);
GLADE_HOOKUP_OBJECT
(
pda
,
comboStdMuxer
,
"comboStdMuxer"
);
GLADE_HOOKUP_OBJECT
(
pda
,
entryStdMuxer
,
"entryStdMuxer"
);
GLADE_HOOKUP_OBJECT
(
pda
,
comboStdAccess
,
"comboStdAccess"
);
GLADE_HOOKUP_OBJECT
(
pda
,
entryStdAccess
,
"entryStdAccess"
);
GLADE_HOOKUP_OBJECT
(
pda
,
entryAudioBitrate
,
"entryAudioBitrate"
);
GLADE_HOOKUP_OBJECT
(
pda
,
comboAudioCodec
,
"comboAudioCodec"
);
GLADE_HOOKUP_OBJECT
(
pda
,
entryAudioCodec
,
"entryAudioCodec"
);
GLADE_HOOKUP_OBJECT
(
pda
,
checkVideoDeinterlace
,
"checkVideoDeinterlace"
);
GLADE_HOOKUP_OBJECT
(
pda
,
entryVideoKeyFrameInterval
,
"entryVideoKeyFrameInterval"
);
GLADE_HOOKUP_OBJECT
(
pda
,
entryVideoBitrateTolerance
,
"entryVideoBitrateTolerance"
);
GLADE_HOOKUP_OBJECT
(
pda
,
entryVideoBitrate
,
"entryVideoBitrate"
);
GLADE_HOOKUP_OBJECT
(
pda
,
labelAudioBitrate
,
"labelAudioBitrate"
);
GLADE_HOOKUP_OBJECT
(
pda
,
hbox14
,
"hbox14"
);
GLADE_HOOKUP_OBJECT
(
pda
,
AddTranscodeToPlaylist
,
"AddTranscodeToPlaylist"
);
GLADE_HOOKUP_OBJECT
(
pda
,
Transcode
,
"Transcode"
);
...
...
@@ -1163,6 +1493,7 @@ create_pda (void)
GLADE_HOOKUP_OBJECT
(
pda
,
labelProgramName
,
"labelProgramName"
);
GLADE_HOOKUP_OBJECT
(
pda
,
labelCopyright
,
"labelCopyright"
);
GLADE_HOOKUP_OBJECT
(
pda
,
about
,
"about"
);
GLADE_HOOKUP_OBJECT_NO_REF
(
pda
,
tooltips
,
"tooltips"
);
return
pda
;
}
...
...
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