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
b93dcabc
Commit
b93dcabc
authored
Jul 23, 2015
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adaptative: merge both modules
parent
58a0a847
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
99 additions
and
233 deletions
+99
-233
modules/MODULES_LIST
modules/MODULES_LIST
+1
-2
modules/demux/Makefile.am
modules/demux/Makefile.am
+15
-25
modules/demux/adaptative/adaptative.cpp
modules/demux/adaptative/adaptative.cpp
+74
-36
modules/demux/dash/DASHManager.cpp
modules/demux/dash/DASHManager.cpp
+3
-3
modules/demux/dash/dash.cpp
modules/demux/dash/dash.cpp
+0
-160
modules/demux/hls/HLSManager.cpp
modules/demux/hls/HLSManager.cpp
+3
-3
modules/demux/hls/playlist/Parser.cpp
modules/demux/hls/playlist/Parser.cpp
+2
-2
po/POTFILES.in
po/POTFILES.in
+1
-2
No files found.
modules/MODULES_LIST
View file @
b93dcabc
...
...
@@ -22,6 +22,7 @@ $Id$
* access_output_udp: UDP Network access_output module
* access_realrtsp: Real RTSP access
* access_wasapi: WASAPI audio input
* adaptative: Unified adaptative streaming module (DASH/HLS)
* addonsfsstorage: Local storage extensions repository
* addonsvorepository: Videolan extensions repository
* adjust: Contrast/Hue/saturation/Brightness adjust module
...
...
@@ -85,7 +86,6 @@ $Id$
* d3d11_surface: Convert D3D11 GPU textures to YUV planes
* d3d11va: Direct3D11 hardware-accelerated decoding
* daala: a daala video decoder/packetizer using libdaala
* dash: MPEG DASH playback
* dbus: D-Bus control interface
* dbus_screensaver: preventing the computer from suspending
* dc1394: IIDC (DCAM) FireWire input module
...
...
@@ -174,7 +174,6 @@ $Id$
* hevc: HEVC demuxer
* hotkeys: hotkeys control module
* hqdn3d: High Quality denoising filter
* hls: HTTP Live Streaming demuxer
* http: HTTP Network access module
* httplive: HTTP Live streaming for playback
* i420_rgb: planar YUV to packed RGB conversion functions
...
...
modules/demux/Makefile.am
View file @
b93dcabc
...
...
@@ -244,7 +244,7 @@ if HAVE_DVBPSI
demux_LTLIBRARIES
+=
libts_plugin.la
endif
adaptative
_SOURCES
=
\
libadaptative_plugin_la
_SOURCES
=
\
demux/adaptative/playlist/AbstractPlaylist.cpp
\
demux/adaptative/playlist/AbstractPlaylist.hpp
\
demux/adaptative/playlist/BaseAdaptationSet.cpp
\
...
...
@@ -311,7 +311,7 @@ adaptative_SOURCES = \
demux/adaptative/tools/Retrieve.cpp
\
demux/adaptative/tools/Retrieve.hpp
lib
dash_plugin_la
_SOURCES
=
\
lib
adaptative_dash
_SOURCES
=
\
demux/dash/mpd/AdaptationSet.cpp
\
demux/dash/mpd/AdaptationSet.h
\
demux/dash/mpd/DASHCommonAttributesElements.cpp
\
...
...
@@ -344,22 +344,11 @@ libdash_plugin_la_SOURCES = \
demux/dash/xml/DOMParser.h
\
demux/dash/xml/Node.cpp
\
demux/dash/xml/Node.h
\
demux/dash/dash.cpp
\
demux/dash/DASHManager.cpp
\
demux/dash/DASHManager.h
\
demux/dash/DASHStreamFormat.hpp
libdash_plugin_la_SOURCES
+=
$(adaptative_SOURCES)
libdash_plugin_la_SOURCES
+=
demux/mp4/libmp4.c demux/mp4/libmp4.h
libdash_plugin_la_CXXFLAGS
=
$(AM_CFLAGS)
-I
$(srcdir)
/demux/dash
libdash_plugin_la_LIBADD
=
$(SOCKET_LIBS)
$(LIBM)
if
HAVE_ZLIB
libdash_plugin_la_LIBADD
+=
-lz
endif
demux_LTLIBRARIES
+=
libdash_plugin.la
libhls_plugin_la_SOURCES
=
\
libadaptative_hls_SOURCES
=
\
demux/hls/playlist/M3U8.hpp
\
demux/hls/playlist/M3U8.cpp
\
demux/hls/playlist/Parser.hpp
\
...
...
@@ -374,21 +363,22 @@ libhls_plugin_la_SOURCES = \
demux/hls/HLSManager.cpp
\
demux/hls/HLSStreamFormat.hpp
\
demux/hls/HLSStreams.hpp
\
demux/hls/HLSStreams.cpp
\
demux/hls/hls.cpp
libhls_plugin_la_SOURCES
+=
$(adaptative_SOURCES)
libhls_plugin_la_CXXFLAGS
=
$(AM_CFLAGS)
-I
$(srcdir)
/demux/hls
libhls_plugin_la_LIBADD
=
$(SOCKET_LIBS)
$(LIBM)
demux/hls/HLSStreams.cpp
libadaptative_plugin_la_SOURCES
+=
$(libadaptative_hls_SOURCES)
libadaptative_plugin_la_SOURCES
+=
$(libadaptative_dash_SOURCES)
libadaptative_plugin_la_SOURCES
+=
demux/adaptative/adaptative.cpp
libadaptative_plugin_la_SOURCES
+=
demux/mp4/libmp4.c demux/mp4/libmp4.h
libadaptative_plugin_la_CXXFLAGS
=
$(AM_CFLAGS)
-I
$(srcdir)
/demux/adaptative
libadaptative_plugin_la_LIBADD
=
$(SOCKET_LIBS)
$(LIBM)
if
HAVE_ZLIB
lib
hls
_plugin_la_LIBADD
+=
-lz
lib
adaptative
_plugin_la_LIBADD
+=
-lz
endif
if
HAVE_GCRYPT
lib
hls
_plugin_la_CXXFLAGS
+=
$(GCRYPT_CFLAGS)
lib
hls
_plugin_la_LIBADD
+=
$(GCRYPT_LIBS)
lib
adaptative
_plugin_la_CXXFLAGS
+=
$(GCRYPT_CFLAGS)
lib
adaptative
_plugin_la_LIBADD
+=
$(GCRYPT_LIBS)
endif
demux_LTLIBRARIES
+=
libhls_plugin.la
demux_LTLIBRARIES
+=
libadaptative_plugin.la
libttml_plugin_la_SOURCES
=
demux/ttml.c
demux_LTLIBRARIES
+=
libttml_plugin.la
...
...
modules/demux/
hls/hls
.cpp
→
modules/demux/
adaptative/adaptative
.cpp
View file @
b93dcabc
/*****************************************************************************
*
hls.cpp: HTTP Live S
treaming module
*
adaptative.cpp: Adaptative s
treaming module
*****************************************************************************
* Copyright © 2015 - VideoLAN and VLC Authors
*
...
...
@@ -32,16 +32,23 @@
#include <vlc_plugin.h>
#include <vlc_demux.h>
#include "../adaptative/logic/AbstractAdaptationLogic.h"
#include "HLSManager.hpp"
#include "HLSStreams.hpp"
#include "playlist/BasePeriod.h"
#include "../dash/xml/DOMParser.h"
#include "../dash/mpd/MPDFactory.h"
#include "../dash/DASHManager.h"
#include "../hls/HLSManager.hpp"
#include "../hls/HLSStreams.hpp"
#include "../hls/playlist/Parser.hpp"
#include "../hls/playlist/M3U8.hpp"
#include "playlist/Parser.hpp"
#include "playlist/M3U8.hpp"
using
namespace
adaptative
;
using
namespace
adaptative
::
logic
;
using
namespace
adaptative
::
playlist
;
using
namespace
dash
::
mpd
;
using
namespace
dash
::
xml
;
using
namespace
dash
;
using
namespace
hls
;
using
namespace
hls
::
playlist
;
...
...
@@ -51,16 +58,14 @@ using namespace hls::playlist;
static
int
Open
(
vlc_object_t
*
);
static
void
Close
(
vlc_object_t
*
);
#define HLS_WIDTH_TEXT N_("Preferred Width")
#define HLS_WIDTH_LONGTEXT N_("Preferred Width")
#define ADAPT_WIDTH_TEXT N_("Preferred Width")
#define HLS_HEIGHT_TEXT N_("Preferred Height")
#define HLS_HEIGHT_LONGTEXT N_("Preferred Height")
#define ADAPT_HEIGHT_TEXT N_("Preferred Height")
#define
HLS
_BW_TEXT N_("Fixed Bandwidth in KiB/s")
#define
HLS
_BW_LONGTEXT N_("Preferred bandwidth for non adaptative streams")
#define
ADAPT
_BW_TEXT N_("Fixed Bandwidth in KiB/s")
#define
ADAPT
_BW_LONGTEXT N_("Preferred bandwidth for non adaptative streams")
#define
HLS
_LOGIC_TEXT N_("Adaptation Logic")
#define
ADAPT
_LOGIC_TEXT N_("Adaptation Logic")
static
const
int
pi_logics
[]
=
{
AbstractAdaptationLogic
::
RateBased
,
AbstractAdaptationLogic
::
FixedRate
,
...
...
@@ -73,17 +78,17 @@ static const char *const ppsz_logics[] = { N_("Bandwidth Adaptive"),
N_
(
"Highest Bandwith/Quality"
)};
vlc_module_begin
()
set_shortname
(
N_
(
"
hls
"
))
set_description
(
N_
(
"
HTTP Live Streaming
"
)
)
set_shortname
(
N_
(
"
Adaptative
"
))
set_description
(
N_
(
"
Unified adaptative streaming for DASH/HLS
"
)
)
set_capability
(
"demux"
,
12
)
set_category
(
CAT_INPUT
)
set_subcategory
(
SUBCAT_INPUT_DEMUX
)
add_integer
(
"
hls-logic"
,
AbstractAdaptationLogic
::
Default
,
HLS
_LOGIC_TEXT
,
NULL
,
false
)
add_integer
(
"
adaptative-logic"
,
AbstractAdaptationLogic
::
Default
,
ADAPT
_LOGIC_TEXT
,
NULL
,
false
)
change_integer_list
(
pi_logics
,
ppsz_logics
)
add_integer
(
"
hls-prefwidth"
,
480
,
HLS_WIDTH_TEXT
,
HLS_WIDTH_LONG
TEXT
,
true
)
add_integer
(
"
hls-prefheight"
,
360
,
HLS_HEIGHT_TEXT
,
HLS_HEIGHT_LONG
TEXT
,
true
)
add_integer
(
"
hls-prefbw"
,
250
,
HLS_BW_TEXT
,
HLS
_BW_LONGTEXT
,
false
)
add_integer
(
"
adaptative-width"
,
480
,
ADAPT_WIDTH_TEXT
,
ADAPT_WIDTH_
TEXT
,
true
)
add_integer
(
"
adaptative-height"
,
360
,
ADAPT_HEIGHT_TEXT
,
ADAPT_HEIGHT_
TEXT
,
true
)
add_integer
(
"
adaptative-bw"
,
250
,
ADAPT_BW_TEXT
,
ADAPT
_BW_LONGTEXT
,
false
)
set_callbacks
(
Open
,
Close
)
vlc_module_end
()
...
...
@@ -98,23 +103,56 @@ static int Open(vlc_object_t *p_obj)
{
demux_t
*
p_demux
=
(
demux_t
*
)
p_obj
;
if
(
!
HLSManager
::
isHTTPLiveStreaming
(
p_demux
->
s
))
return
VLC_EGENERIC
;
Parser
parser
(
p_demux
->
s
);
M3U8
*
p_playlist
=
parser
.
parse
(
std
::
string
()
);
if
(
!
p_playlist
)
return
VLC_EGENERIC
;
bool
b_mimematched
=
false
;
char
*
psz_mime
=
stream_ContentType
(
p_demux
->
s
)
;
if
(
psz_mime
)
{
b_mimematched
=
!
strcmp
(
psz_mime
,
"application/dash+xml"
);
free
(
psz_mime
);
}
int
logic
=
var_InheritInteger
(
p_obj
,
"hls-logic"
);
PlaylistManager
*
p_manager
=
NULL
;
int
logic
=
var_InheritInteger
(
p_obj
,
"adaptative-logic"
);
HLSManager
*
p_manager
=
new
(
std
::
nothrow
)
HLSManager
(
p_demux
,
p_playlist
,
new
(
std
::
nothrow
)
HLSStreamOutputFactory
,
static_cast
<
AbstractAdaptationLogic
::
LogicType
>
(
logic
));
if
(
b_mimematched
||
DASHManager
::
isDASH
(
p_demux
->
s
))
{
//Build a XML tree
DOMParser
parser
(
p_demux
->
s
);
if
(
!
parser
.
parse
()
)
{
msg_Err
(
p_demux
,
"Could not parse MPD"
);
return
VLC_EGENERIC
;
}
//Begin the actual MPD parsing:
MPD
*
p_playlist
=
MPDFactory
::
create
(
parser
.
getRootNode
(),
p_demux
->
s
,
parser
.
getProfile
());
if
(
p_playlist
==
NULL
)
{
msg_Err
(
p_demux
,
"Cannot create/unknown MPD for profile"
);
return
VLC_EGENERIC
;
}
p_manager
=
new
DASHManager
(
p_demux
,
p_playlist
,
new
(
std
::
nothrow
)
DASHStreamOutputFactory
,
static_cast
<
AbstractAdaptationLogic
::
LogicType
>
(
logic
)
);
}
else
if
(
HLSManager
::
isHTTPLiveStreaming
(
p_demux
->
s
))
{
Parser
parser
(
p_demux
->
s
);
M3U8
*
p_playlist
=
parser
.
parse
(
std
::
string
());
if
(
!
p_playlist
)
{
msg_Err
(
p_demux
,
"Could not parse MPD"
);
return
VLC_EGENERIC
;
}
p_manager
=
new
(
std
::
nothrow
)
HLSManager
(
p_demux
,
p_playlist
,
new
(
std
::
nothrow
)
HLSStreamOutputFactory
,
static_cast
<
AbstractAdaptationLogic
::
LogicType
>
(
logic
));
}
BasePeriod
*
period
=
p_playlist
->
getFirstPeriod
();
if
(
period
&&
!
p_manager
->
start
())
if
(
!
p_manager
->
start
())
{
delete
p_manager
;
return
VLC_EGENERIC
;
...
...
@@ -124,7 +162,7 @@ static int Open(vlc_object_t *p_obj)
p_demux
->
pf_demux
=
p_manager
->
demux_callback
;
p_demux
->
pf_control
=
p_manager
->
control_callback
;
msg_Dbg
(
p_obj
,
"opening
mpd
file (%s)"
,
p_demux
->
s
->
psz_path
);
msg_Dbg
(
p_obj
,
"opening
playlist
file (%s)"
,
p_demux
->
s
->
psz_path
);
return
VLC_SUCCESS
;
}
...
...
modules/demux/dash/DASHManager.cpp
View file @
b93dcabc
...
...
@@ -218,14 +218,14 @@ AbstractAdaptationLogic *DASHManager::createLogic(AbstractAdaptationLogic::Logic
{
case
AbstractAdaptationLogic
:
:
FixedRate
:
{
size_t
bps
=
var_InheritInteger
(
p_demux
,
"
dash-pref
bw"
)
*
8192
;
size_t
bps
=
var_InheritInteger
(
p_demux
,
"
adaptative-
bw"
)
*
8192
;
return
new
(
std
::
nothrow
)
FixedRateAdaptationLogic
(
bps
);
}
case
AbstractAdaptationLogic
:
:
Default
:
case
AbstractAdaptationLogic
:
:
RateBased
:
{
int
width
=
var_InheritInteger
(
p_demux
,
"
dash-pref
width"
);
int
height
=
var_InheritInteger
(
p_demux
,
"
dash-pref
height"
);
int
width
=
var_InheritInteger
(
p_demux
,
"
adaptative-
width"
);
int
height
=
var_InheritInteger
(
p_demux
,
"
adaptative-
height"
);
return
new
(
std
::
nothrow
)
RateBasedAdaptationLogic
(
width
,
height
);
}
default:
...
...
modules/demux/dash/dash.cpp
deleted
100644 → 0
View file @
58a0a847
/*****************************************************************************
* dash.cpp: DASH module
*****************************************************************************
* Copyright © 2010 - 2011 Klagenfurt University
*
* Created on: Aug 10, 2010
* Authors: Christopher Mueller <christopher.mueller@itec.uni-klu.ac.at>
* Christian Timmerer <christian.timmerer@itec.uni-klu.ac.at>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published
* by the Free Software Foundation; either version 2.1 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
/*****************************************************************************
* Preamble
*****************************************************************************/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include <stdint.h>
#include <vlc_common.h>
#include <vlc_plugin.h>
#include <vlc_demux.h>
#include "xml/DOMParser.h"
#include "mpd/MPDFactory.h"
#include "mpd/Period.h"
#include "DASHManager.h"
using
namespace
adaptative
::
logic
;
using
namespace
adaptative
::
playlist
;
using
namespace
dash
::
mpd
;
using
namespace
dash
::
xml
;
using
namespace
dash
;
/*****************************************************************************
* Module descriptor
*****************************************************************************/
static
int
Open
(
vlc_object_t
*
);
static
void
Close
(
vlc_object_t
*
);
#define DASH_WIDTH_TEXT N_("Preferred Width")
#define DASH_WIDTH_LONGTEXT N_("Preferred Width")
#define DASH_HEIGHT_TEXT N_("Preferred Height")
#define DASH_HEIGHT_LONGTEXT N_("Preferred Height")
#define DASH_BW_TEXT N_("Fixed Bandwidth in KiB/s")
#define DASH_BW_LONGTEXT N_("Preferred bandwidth for non adaptative streams")
#define DASH_LOGIC_TEXT N_("Adaptation Logic")
static
const
int
pi_logics
[]
=
{
AbstractAdaptationLogic
::
RateBased
,
AbstractAdaptationLogic
::
FixedRate
,
AbstractAdaptationLogic
::
AlwaysLowest
,
AbstractAdaptationLogic
::
AlwaysBest
};
static
const
char
*
const
ppsz_logics
[]
=
{
N_
(
"Bandwidth Adaptive"
),
N_
(
"Fixed Bandwidth"
),
N_
(
"Lowest Bandwidth/Quality"
),
N_
(
"Highest Bandwith/Quality"
)};
vlc_module_begin
()
set_shortname
(
N_
(
"DASH"
))
set_description
(
N_
(
"Dynamic Adaptive Streaming over HTTP"
)
)
set_capability
(
"demux"
,
10
)
set_category
(
CAT_INPUT
)
set_subcategory
(
SUBCAT_INPUT_DEMUX
)
add_integer
(
"dash-logic"
,
dash
::
logic
::
AbstractAdaptationLogic
::
Default
,
DASH_LOGIC_TEXT
,
NULL
,
false
)
change_integer_list
(
pi_logics
,
ppsz_logics
)
add_integer
(
"dash-prefwidth"
,
480
,
DASH_WIDTH_TEXT
,
DASH_WIDTH_LONGTEXT
,
true
)
add_integer
(
"dash-prefheight"
,
360
,
DASH_HEIGHT_TEXT
,
DASH_HEIGHT_LONGTEXT
,
true
)
add_integer
(
"dash-prefbw"
,
250
,
DASH_BW_TEXT
,
DASH_BW_LONGTEXT
,
false
)
set_callbacks
(
Open
,
Close
)
vlc_module_end
()
/*****************************************************************************
* Local prototypes
*****************************************************************************/
/*****************************************************************************
* Open:
*****************************************************************************/
static
int
Open
(
vlc_object_t
*
p_obj
)
{
demux_t
*
p_demux
=
(
demux_t
*
)
p_obj
;
bool
b_mimematched
=
false
;
char
*
psz_mime
=
stream_ContentType
(
p_demux
->
s
);
if
(
psz_mime
)
{
b_mimematched
=
!
strcmp
(
psz_mime
,
"application/dash+xml"
);
free
(
psz_mime
);
}
if
(
!
b_mimematched
&&
!
DASHManager
::
isDASH
(
p_demux
->
s
))
return
VLC_EGENERIC
;
//Build a XML tree
DOMParser
parser
(
p_demux
->
s
);
if
(
!
parser
.
parse
()
)
{
msg_Err
(
p_demux
,
"Could not parse MPD"
);
return
VLC_EGENERIC
;
}
//Begin the actual MPD parsing:
MPD
*
mpd
=
MPDFactory
::
create
(
parser
.
getRootNode
(),
p_demux
->
s
,
parser
.
getProfile
());
if
(
mpd
==
NULL
)
{
msg_Err
(
p_demux
,
"Cannot create/unknown MPD for profile"
);
return
VLC_EGENERIC
;
}
int
logic
=
var_InheritInteger
(
p_obj
,
"dash-logic"
);
DASHManager
*
p_dashManager
=
new
(
std
::
nothrow
)
DASHManager
(
p_demux
,
mpd
,
new
(
std
::
nothrow
)
DASHStreamOutputFactory
,
static_cast
<
AbstractAdaptationLogic
::
LogicType
>
(
logic
));
BasePeriod
*
period
=
mpd
->
getFirstPeriod
();
if
(
period
&&
!
p_dashManager
->
start
())
{
delete
p_dashManager
;
return
VLC_EGENERIC
;
}
p_demux
->
p_sys
=
reinterpret_cast
<
demux_sys_t
*>
(
p_dashManager
);
p_demux
->
pf_demux
=
p_dashManager
->
demux_callback
;
p_demux
->
pf_control
=
p_dashManager
->
control_callback
;
msg_Dbg
(
p_obj
,
"opening mpd file (%s)"
,
p_demux
->
s
->
psz_path
);
return
VLC_SUCCESS
;
}
/*****************************************************************************
* Close:
*****************************************************************************/
static
void
Close
(
vlc_object_t
*
p_obj
)
{
demux_t
*
p_demux
=
(
demux_t
*
)
p_obj
;
PlaylistManager
*
p_manager
=
reinterpret_cast
<
PlaylistManager
*>
(
p_demux
->
p_sys
);
delete
p_manager
;
}
modules/demux/hls/HLSManager.cpp
View file @
b93dcabc
...
...
@@ -108,14 +108,14 @@ AbstractAdaptationLogic *HLSManager::createLogic(AbstractAdaptationLogic::LogicT
{
case
AbstractAdaptationLogic
:
:
FixedRate
:
{
size_t
bps
=
var_InheritInteger
(
p_demux
,
"
hls-pref
bw"
)
*
8192
;
size_t
bps
=
var_InheritInteger
(
p_demux
,
"
adaptative-
bw"
)
*
8192
;
return
new
(
std
::
nothrow
)
FixedRateAdaptationLogic
(
bps
);
}
case
AbstractAdaptationLogic
:
:
Default
:
case
AbstractAdaptationLogic
:
:
RateBased
:
{
int
width
=
var_InheritInteger
(
p_demux
,
"
hls-pref
width"
);
int
height
=
var_InheritInteger
(
p_demux
,
"
hls-pref
height"
);
int
width
=
var_InheritInteger
(
p_demux
,
"
adaptative-
width"
);
int
height
=
var_InheritInteger
(
p_demux
,
"
adaptative-
height"
);
return
new
(
std
::
nothrow
)
RateBasedAdaptationLogic
(
width
,
height
);
}
default:
...
...
modules/demux/hls/playlist/Parser.cpp
View file @
b93dcabc
...
...
@@ -22,8 +22,8 @@
#endif
#include "Parser.hpp"
#include "
playlist/
HLSSegment.hpp"
#include "
playlist/
Representation.hpp"
#include "HLSSegment.hpp"
#include "Representation.hpp"
#include "../adaptative/playlist/BasePeriod.h"
#include "../adaptative/playlist/BaseAdaptationSet.h"
#include "../adaptative/playlist/SegmentList.h"
...
...
po/POTFILES.in
View file @
b93dcabc
...
...
@@ -447,6 +447,7 @@ modules/control/ntservice.c
modules/control/oldrc.c
modules/control/unimotion.c
modules/control/unimotion.h
modules/demux/adaptative/adaptative.cpp
modules/demux/aiff.c
modules/demux/asf/asf.c
modules/demux/asf/libasf.c
...
...
@@ -461,12 +462,10 @@ modules/demux/avi/libavi.c
modules/demux/avi/libavi.h
modules/demux/caf.c
modules/demux/cdg.c
modules/demux/dash/dash.cpp
modules/demux/demuxdump.c
modules/demux/dirac.c
modules/demux/flac.c
modules/demux/gme.c
modules/demux/hls/hls.cpp
modules/demux/image.c
modules/demux/mjpeg.c
modules/demux/mkv/chapter_command.cpp
...
...
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