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
eb92562d
Commit
eb92562d
authored
Jun 09, 2015
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demux: adaptative: add representation codecs
parent
11ab2cdc
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
0 deletions
+20
-0
modules/demux/adaptative/playlist/BaseRepresentation.cpp
modules/demux/adaptative/playlist/BaseRepresentation.cpp
+15
-0
modules/demux/adaptative/playlist/BaseRepresentation.h
modules/demux/adaptative/playlist/BaseRepresentation.h
+5
-0
No files found.
modules/demux/adaptative/playlist/BaseRepresentation.cpp
View file @
eb92562d
...
@@ -54,6 +54,16 @@ void BaseRepresentation::setBandwidth( uint64_t bandwidth )
...
@@ -54,6 +54,16 @@ void BaseRepresentation::setBandwidth( uint64_t bandwidth )
this
->
bandwidth
=
bandwidth
;
this
->
bandwidth
=
bandwidth
;
}
}
const
std
::
list
<
std
::
string
>
&
BaseRepresentation
::
getCodecs
()
const
{
return
codecs
;
}
void
BaseRepresentation
::
addCodec
(
const
std
::
string
&
codec
)
{
codecs
.
push_back
(
codec
);
}
void
BaseRepresentation
::
debug
(
vlc_object_t
*
obj
,
int
indent
)
const
void
BaseRepresentation
::
debug
(
vlc_object_t
*
obj
,
int
indent
)
const
{
{
std
::
string
text
(
indent
,
' '
);
std
::
string
text
(
indent
,
' '
);
...
@@ -71,3 +81,8 @@ std::string BaseRepresentation::contextualize(size_t, const std::string &compone
...
@@ -71,3 +81,8 @@ std::string BaseRepresentation::contextualize(size_t, const std::string &compone
{
{
return
component
;
return
component
;
}
}
bool
BaseRepresentation
::
validateCodec
(
const
std
::
string
&
)
const
{
return
true
;
}
modules/demux/adaptative/playlist/BaseRepresentation.h
View file @
eb92562d
...
@@ -26,6 +26,7 @@
...
@@ -26,6 +26,7 @@
#define BASEREPRESENTATION_H_
#define BASEREPRESENTATION_H_
#include <string>
#include <string>
#include <list>
#include "CommonAttributesElements.h"
#include "CommonAttributesElements.h"
#include "SegmentInformation.hpp"
#include "SegmentInformation.hpp"
...
@@ -53,6 +54,8 @@ namespace adaptative
...
@@ -53,6 +54,8 @@ namespace adaptative
*/
*/
uint64_t
getBandwidth
()
const
;
uint64_t
getBandwidth
()
const
;
void
setBandwidth
(
uint64_t
bandwidth
);
void
setBandwidth
(
uint64_t
bandwidth
);
const
std
::
list
<
std
::
string
>
&
getCodecs
()
const
;
void
addCodec
(
const
std
::
string
&
);
void
debug
(
vlc_object_t
*
,
int
=
0
)
const
;
void
debug
(
vlc_object_t
*
,
int
=
0
)
const
;
...
@@ -61,8 +64,10 @@ namespace adaptative
...
@@ -61,8 +64,10 @@ namespace adaptative
const
BaseSegmentTemplate
*
)
const
;
const
BaseSegmentTemplate
*
)
const
;
protected:
protected:
virtual
bool
validateCodec
(
const
std
::
string
&
)
const
;
BaseAdaptationSet
*
adaptationSet
;
BaseAdaptationSet
*
adaptationSet
;
uint64_t
bandwidth
;
uint64_t
bandwidth
;
std
::
list
<
std
::
string
>
codecs
;
};
};
}
}
}
}
...
...
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