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
e28fcef8
Commit
e28fcef8
authored
Sep 17, 2012
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: profile_selector: fix widgets for audiorate & scale
parent
eccedd53
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
10 deletions
+17
-10
modules/gui/qt4/components/sout/profile_selector.cpp
modules/gui/qt4/components/sout/profile_selector.cpp
+17
-10
No files found.
modules/gui/qt4/components/sout/profile_selector.cpp
View file @
e28fcef8
...
...
@@ -292,6 +292,7 @@ inline void VLCProfileEditor::registerCodecs()
#undef ADD_ACODEC
#define ADD_SCALING( factor ) ui.vScaleBox->addItem( factor );
ADD_SCALING
(
qtr
(
"Auto"
)
);
ADD_SCALING
(
"1"
)
ADD_SCALING
(
"0.25"
)
ADD_SCALING
(
"0.5"
)
...
...
@@ -302,12 +303,12 @@ inline void VLCProfileEditor::registerCodecs()
ADD_SCALING
(
"2"
)
#undef ADD_SCALING
#define ADD_SAMPLERATE( sample
) ui.aSampleBox->addItem( sample
);
ADD_SAMPLERATE
(
"8000
"
)
ADD_SAMPLERATE
(
"11025
"
)
ADD_SAMPLERATE
(
"22050
"
)
ADD_SAMPLERATE
(
"44100
"
)
ADD_SAMPLERATE
(
"48000
"
)
#define ADD_SAMPLERATE( sample
, val ) ui.aSampleBox->addItem( sample, val
);
ADD_SAMPLERATE
(
"8000
Hz"
,
8000
)
ADD_SAMPLERATE
(
"11025
Hz"
,
11025
)
ADD_SAMPLERATE
(
"22050
Hz"
,
22050
)
ADD_SAMPLERATE
(
"44100
Hz"
,
44100
)
ADD_SAMPLERATE
(
"48000
Hz"
,
48000
)
#undef ADD_SAMPLERATE
#define ADD_SCODEC( name, fourcc ) ui.subsCodecBox->addItem( name, QVariant( fourcc ) );
...
...
@@ -347,7 +348,10 @@ void VLCProfileEditor::fillProfile( const QString& qs )
ui
.
vCodecBox
->
setCurrentIndex
(
ui
.
vCodecBox
->
findData
(
options
[
4
]
)
);
ui
.
vBitrateSpin
->
setValue
(
options
[
5
].
toInt
()
);
if
(
options
[
6
].
toInt
()
>
0
)
ui
.
vScaleBox
->
setEditText
(
options
[
6
]
);
else
ui
.
vScaleBox
->
setCurrentIndex
(
0
);
ui
.
vFrameBox
->
setValue
(
options
[
7
].
toDouble
()
);
ui
.
widthBox
->
setValue
(
options
[
8
].
toInt
()
);
ui
.
heightBox
->
setValue
(
options
[
9
].
toInt
()
);
...
...
@@ -355,7 +359,10 @@ void VLCProfileEditor::fillProfile( const QString& qs )
ui
.
aCodecBox
->
setCurrentIndex
(
ui
.
aCodecBox
->
findData
(
options
[
10
]
)
);
ui
.
aBitrateSpin
->
setValue
(
options
[
11
].
toInt
()
);
ui
.
aChannelsSpin
->
setValue
(
options
[
12
].
toInt
()
);
ui
.
aSampleBox
->
setCurrentIndex
(
ui
.
aSampleBox
->
findText
(
options
[
13
]
)
);
int
index
=
ui
.
aSampleBox
->
findData
(
options
[
13
]
);
if
(
index
==
-
1
)
index
=
ui
.
aSampleBox
->
findData
(
44100
);
ui
.
aSampleBox
->
setCurrentIndex
(
index
);
ui
.
subsCodecBox
->
setCurrentIndex
(
ui
.
subsCodecBox
->
findData
(
options
[
14
]
)
);
ui
.
subsOverlay
->
setChecked
(
options
[
15
].
toInt
()
);
...
...
@@ -446,7 +453,7 @@ QString VLCProfileEditor::transcodeValue()
<<
qs_vcodec
<<
QString
::
number
(
ui
.
vBitrateSpin
->
value
()
)
<<
ui
.
vScaleBox
->
currentText
(
)
<<
(
(
ui
.
vScaleBox
->
currentIndex
()
!=
0
)
?
ui
.
vScaleBox
->
currentText
()
:
QString
(
"0"
)
)
<<
QString
::
number
(
ui
.
vFrameBox
->
value
()
)
<<
QString
::
number
(
ui
.
widthBox
->
value
()
)
<<
QString
::
number
(
ui
.
heightBox
->
value
()
)
...
...
@@ -454,7 +461,7 @@ QString VLCProfileEditor::transcodeValue()
<<
qs_acodec
<<
QString
::
number
(
ui
.
aBitrateSpin
->
value
()
)
<<
QString
::
number
(
ui
.
aChannelsSpin
->
value
()
)
<<
ui
.
aSampleBox
->
currentText
()
<<
currentData
(
ui
.
aSampleBox
).
toString
()
<<
currentData
(
ui
.
subsCodecBox
).
toString
()
<<
QString
::
number
(
ui
.
subsOverlay
->
isChecked
()
);
...
...
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