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
efe357eb
Commit
efe357eb
authored
Aug 06, 2004
by
Benjamin Pracht
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* Adds the scale video option
parent
aa61b3ff
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
26 additions
and
10 deletions
+26
-10
extras/MacOSX/Resources/English.lproj/MainMenu.nib/classes.nib
...s/MacOSX/Resources/English.lproj/MainMenu.nib/classes.nib
+2
-0
extras/MacOSX/Resources/English.lproj/MainMenu.nib/info.nib
extras/MacOSX/Resources/English.lproj/MainMenu.nib/info.nib
+1
-2
extras/MacOSX/Resources/English.lproj/MainMenu.nib/objects.nib
...s/MacOSX/Resources/English.lproj/MainMenu.nib/objects.nib
+0
-0
modules/gui/macosx/output.h
modules/gui/macosx/output.h
+8
-6
modules/gui/macosx/output.m
modules/gui/macosx/output.m
+15
-2
No files found.
extras/MacOSX/Resources/English.lproj/MainMenu.nib/classes.nib
View file @
efe357eb
...
...
@@ -352,6 +352,8 @@
"o_transcode_video_bitrate" = id;
"o_transcode_video_bitrate_lbl" = id;
"o_transcode_video_chkbox" = id;
"o_transcode_video_scale" = id;
"o_transcode_video_scale_lbl" = id;
"o_transcode_video_selector" = id;
};
SUPERCLASS = NSObject;
...
...
extras/MacOSX/Resources/English.lproj/MainMenu.nib/info.nib
View file @
efe357eb
...
...
@@ -22,9 +22,8 @@
<key>
IBOpenObjects
</key>
<array>
<integer>
21
</integer>
<integer>
1617
</integer>
<integer>
29
</integer>
<integer>
1
411
</integer>
<integer>
1
617
</integer>
</array>
<key>
IBSystem Version
</key>
<string>
7H63
</string>
...
...
extras/MacOSX/Resources/English.lproj/MainMenu.nib/objects.nib
View file @
efe357eb
No preview for this file type
modules/gui/macosx/output.h
View file @
efe357eb
...
...
@@ -63,6 +63,8 @@
IBOutlet
id
o_transcode_lbl
;
IBOutlet
id
o_transcode_video_bitrate
;
IBOutlet
id
o_transcode_video_bitrate_lbl
;
IBOutlet
id
o_transcode_video_scale
;
IBOutlet
id
o_transcode_video_scale_lbl
;
IBOutlet
id
o_transcode_video_chkbox
;
IBOutlet
id
o_transcode_video_selector
;
...
...
modules/gui/macosx/output.m
View file @
efe357eb
...
...
@@ -94,6 +94,10 @@
selector:
@selector
(
transcodeInfoChanged
:)
name:
NSControlTextDidChangeNotification
object:
o_transcode_video_bitrate
];
[[
NSNotificationCenter
defaultCenter
]
addObserver
:
self
selector:
@selector
(
transcodeInfoChanged
:)
name:
NSControlTextDidChangeNotification
object:
o_transcode_video_scale
];
[[
NSNotificationCenter
defaultCenter
]
addObserver
:
self
selector:
@selector
(
transcodeInfoChanged
:)
name:
NSControlTextDidChangeNotification
...
...
@@ -124,6 +128,7 @@
@"128"
,
@"192"
,
@"256"
,
@"512"
,
nil
];
NSArray
*
o_v_bitrates
=
[
NSArray
arrayWithObjects
:
@"16"
,
@"32"
,
@"64"
,
@"96"
,
@"128"
,
@"192"
,
@"256"
,
@"384"
,
@"512"
,
@"768"
,
@"1024"
,
@"2048"
,
@"3072"
,
nil
];
NSArray
*
o_v_scales
=
[
NSArray
arrayWithObjects
:
@"0.25"
,
@"0.5"
,
@"0.75"
,
@"1"
,
@"1.25"
,
@"1.5"
,
@"1.75"
,
@"2"
,
nil
];
NSArray
*
o_a_codecs
=
[
NSArray
arrayWithObjects
:
@"mpga"
,
@"mp3 "
,
@"mp4a"
,
@"a52 "
,
@"vorb"
,
@"flac"
,
@"spx "
,
nil
];
NSArray
*
o_v_codecs
=
[
NSArray
arrayWithObjects
:
@"mp1v"
,
@"mp2v"
,
@"mp4v"
,
@"DIV1"
,
@"DIV2"
,
@"DIV3"
,
@"H263"
,
@"I263"
,
@"WMV1"
,
@"WMV2"
,
@"MJPG"
,
@"theo"
,
nil
];
...
...
@@ -158,6 +163,10 @@
[
o_transcode_video_bitrate_lbl
setStringValue
:
_NS
(
"Bitrate (kb/s)"
)];
[
o_transcode_video_bitrate
removeAllItems
];
[
o_transcode_video_bitrate
addItemsWithObjectValues
:
o_v_bitrates
];
[
o_transcode_video_scale_lbl
setStringValue
:
_NS
(
"Scale"
)];
[
o_transcode_video_scale
removeAllItems
];
[
o_transcode_video_scale
addItemsWithObjectValues
:
o_v_scales
];
[
o_transcode_video_scale
selectItemWithObjectValue
:
@"1"
];
[
o_transcode_audio_chkbox
setTitle
:
_NS
(
"Audio"
)];
[
o_transcode_audio_selector
removeAllItems
];
[
o_transcode_audio_selector
addItemsWithTitles
:
o_a_codecs
];
...
...
@@ -522,11 +531,13 @@
{
[
o_transcode_video_selector
setEnabled
:
YES
];
[
o_transcode_video_bitrate
setEnabled
:
YES
];
[
o_transcode_video_scale
setEnabled
:
YES
];
}
else
{
[
o_transcode_video_selector
setEnabled
:
NO
];
[
o_transcode_video_bitrate
setEnabled
:
NO
];
[
o_transcode_video_scale
setEnabled
:
NO
];
}
if
(
[
o_transcode_audio_chkbox
state
]
==
NSOnState
)
{
...
...
@@ -554,9 +565,11 @@
o_transcode_string
=
[
NSMutableString
stringWithString
:
@"transcode{"
];
if
(
[
o_transcode_video_chkbox
state
]
==
NSOnState
)
{
[
o_transcode_string
appendFormat
:
@"vcodec=
\"
%@
\"
,vb=
\"
%@
\"
"
,
[
o_transcode_string
appendFormat
:
@"vcodec=
\"
%@
\"
,vb=
\"
%@
\"
"
",scale=
\"
%@
\"
"
,
[
o_transcode_video_selector
titleOfSelectedItem
],
[
o_transcode_video_bitrate
stringValue
]];
[
o_transcode_video_bitrate
stringValue
],
[
o_transcode_video_scale
stringValue
]];
if
(
[
o_transcode_audio_chkbox
state
]
==
NSOnState
)
{
[
o_transcode_string
appendString
:
@","
];
...
...
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