Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
eb92562d
Commit
eb92562d
authored
Jun 09, 2015
by
François Cartegnie
🤞
Browse files
demux: adaptative: add representation codecs
parent
11ab2cdc
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/demux/adaptative/playlist/BaseRepresentation.cpp
View file @
eb92562d
...
...
@@ -54,6 +54,16 @@ void BaseRepresentation::setBandwidth( uint64_t 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
{
std
::
string
text
(
indent
,
' '
);
...
...
@@ -71,3 +81,8 @@ std::string BaseRepresentation::contextualize(size_t, const std::string &compone
{
return
component
;
}
bool
BaseRepresentation
::
validateCodec
(
const
std
::
string
&
)
const
{
return
true
;
}
modules/demux/adaptative/playlist/BaseRepresentation.h
View file @
eb92562d
...
...
@@ -26,6 +26,7 @@
#define BASEREPRESENTATION_H_
#include
<string>
#include
<list>
#include
"CommonAttributesElements.h"
#include
"SegmentInformation.hpp"
...
...
@@ -53,6 +54,8 @@ namespace adaptative
*/
uint64_t
getBandwidth
()
const
;
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
;
...
...
@@ -61,8 +64,10 @@ namespace adaptative
const
BaseSegmentTemplate
*
)
const
;
protected:
virtual
bool
validateCodec
(
const
std
::
string
&
)
const
;
BaseAdaptationSet
*
adaptationSet
;
uint64_t
bandwidth
;
std
::
list
<
std
::
string
>
codecs
;
};
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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