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
cc1f8bf6
Commit
cc1f8bf6
authored
Jul 15, 2012
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: CAS: implemented information retrieval from the customization panel
parent
a4ca93cf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
92 additions
and
1 deletion
+92
-1
modules/gui/macosx/ConvertAndSave.m
modules/gui/macosx/ConvertAndSave.m
+92
-1
No files found.
modules/gui/macosx/ConvertAndSave.m
View file @
cc1f8bf6
...
@@ -271,9 +271,47 @@ static VLCConvertAndSave *_o_sharedInstance = nil;
...
@@ -271,9 +271,47 @@ static VLCConvertAndSave *_o_sharedInstance = nil;
-
(
IBAction
)
closeCustomizationSheet
:(
id
)
sender
-
(
IBAction
)
closeCustomizationSheet
:(
id
)
sender
{
{
// sender == _customize_ok_btn ?
[
_customize_panel
orderOut
:
sender
];
[
_customize_panel
orderOut
:
sender
];
[
NSApp
endSheet
:
_customize_panel
];
[
NSApp
endSheet
:
_customize_panel
];
/* update current profile based upon the sheet's values */
/* Container(string), transcode video(bool), transcode audio(bool),
* use subtitles(bool), video codec(string), video bitrate(integer),
* scale(float), fps(float), width(integer, height(integer),
* audio codec(string), audio bitrate(integer), channels(integer),
* samplerate(integer), subtitle codec(string), subtitle overlay(bool) */
if
(
sender
==
_customize_ok_btn
&&
[
_currentProfile
count
]
==
16
)
{
NSInteger
i
;
[
_currentProfile
replaceObjectAtIndex
:
0
withObject
:[
self
currentEncapsulationFormat
]];
[
_currentProfile
replaceObjectAtIndex
:
1
withObject
:[
NSString
stringWithFormat
:
@"%li"
,
[
_customize_vid_ckb
state
]]];
[
_currentProfile
replaceObjectAtIndex
:
2
withObject
:[
NSString
stringWithFormat
:
@"%li"
,
[
_customize_aud_ckb
state
]]];
[
_currentProfile
replaceObjectAtIndex
:
3
withObject
:[
NSString
stringWithFormat
:
@"%li"
,
[
_customize_subs_ckb
state
]]];
i
=
[
_customize_vid_codec_pop
indexOfSelectedItem
];
if
(
i
>=
0
)
[
_currentProfile
replaceObjectAtIndex
:
4
withObject
:[
_videoCodecs
objectAtIndex
:
i
]];
else
[
_currentProfile
replaceObjectAtIndex
:
4
withObject
:
@"none"
];
[
_currentProfile
replaceObjectAtIndex
:
5
withObject
:[
_customize_vid_bitrate_fld
stringValue
]];
[
_currentProfile
replaceObjectAtIndex
:
6
withObject
:[[
_customize_vid_scale_pop
selectedItem
]
title
]];
[
_currentProfile
replaceObjectAtIndex
:
7
withObject
:[
_customize_vid_framerate_fld
stringValue
]];
[
_currentProfile
replaceObjectAtIndex
:
8
withObject
:[
_customize_vid_width_fld
stringValue
]];
[
_currentProfile
replaceObjectAtIndex
:
9
withObject
:[
_customize_vid_height_fld
stringValue
]];
i
=
[
_customize_aud_codec_pop
indexOfSelectedItem
];
if
(
i
>=
0
)
[
_currentProfile
replaceObjectAtIndex
:
10
withObject
:[
_audioCodecs
objectAtIndex
:
i
]];
else
[
_currentProfile
replaceObjectAtIndex
:
10
withObject
:
@"none"
];
[
_currentProfile
replaceObjectAtIndex
:
11
withObject
:[
_customize_aud_bitrate_fld
stringValue
]];
[
_currentProfile
replaceObjectAtIndex
:
12
withObject
:[
_customize_aud_channels_fld
stringValue
]];
[
_currentProfile
replaceObjectAtIndex
:
13
withObject
:[[
_customize_aud_samplerate_pop
selectedItem
]
title
]];
i
=
[
_customize_subs_pop
indexOfSelectedItem
];
if
(
i
>=
0
)
[
_currentProfile
replaceObjectAtIndex
:
14
withObject
:[
_subsCodecs
objectAtIndex
:
i
]];
else
[
_currentProfile
replaceObjectAtIndex
:
14
withObject
:
@"none"
];
[
_currentProfile
replaceObjectAtIndex
:
15
withObject
:[
NSString
stringWithFormat
:
@"%li"
,
[
_customize_subs_overlay_ckb
state
]]];
}
}
}
-
(
IBAction
)
chooseDestination
:(
id
)
sender
-
(
IBAction
)
chooseDestination
:(
id
)
sender
...
@@ -469,6 +507,59 @@ static VLCConvertAndSave *_o_sharedInstance = nil;
...
@@ -469,6 +507,59 @@ static VLCConvertAndSave *_o_sharedInstance = nil;
msg_Err
(
VLCIntf
,
"CAS: unknown encap format requested for customization"
);
msg_Err
(
VLCIntf
,
"CAS: unknown encap format requested for customization"
);
}
}
-
(
NSString
*
)
currentEncapsulationFormat
{
NSUInteger
cellTag
=
[[
_customize_encap_matrix
selectedCell
]
tag
];
NSString
*
returnValue
;
switch
(
cellTag
)
{
case
MPEGTS
:
returnValue
=
@"ts"
;
break
;
case
WEBM
:
returnValue
=
@"webm"
;
break
;
case
OGG
:
returnValue
=
@"ogg"
;
break
;
case
MP4
:
returnValue
=
@"mp4"
;
break
;
case
MPEGPS
:
returnValue
=
@"ps"
;
break
;
case
MJPEG
:
returnValue
=
@"mjpeg"
;
break
;
case
WAV
:
returnValue
=
@"wav"
;
break
;
case
FLV
:
returnValue
=
@"flv"
;
break
;
case
MPEG1
:
returnValue
=
@"mpg"
;
break
;
case
MKV
:
returnValue
=
@"mkv"
;
break
;
case
RAW
:
returnValue
=
@"raw"
;
break
;
case
AVI
:
returnValue
=
@"avi"
;
break
;
case
ASF
:
returnValue
=
@"asf"
;
break
;
default:
returnValue
=
@"none"
;
break
;
}
return
returnValue
;
}
@end
@end
# pragma mark -
# pragma mark -
...
...
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