Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
ad0a1ed9
Commit
ad0a1ed9
authored
Apr 19, 2005
by
Steve Lhomme
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mkv.cpp: demux_sys_t needs to keep the same name
parent
27aff3c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
22 deletions
+22
-22
modules/demux/mkv.cpp
modules/demux/mkv.cpp
+22
-22
No files found.
modules/demux/mkv.cpp
View file @
ad0a1ed9
...
...
@@ -423,12 +423,12 @@ public:
bool
b_ordered
;
};
class
demux_sys_
c
;
class
demux_sys_
t
;
class
matroska_segment_c
{
public:
matroska_segment_c
(
demux_sys_
c
&
demuxer
,
EbmlStream
&
estream
)
matroska_segment_c
(
demux_sys_
t
&
demuxer
,
EbmlStream
&
estream
)
:
segment
(
NULL
)
,
es
(
estream
)
,
i_timescale
(
MKVD_TIMECODESCALE
)
...
...
@@ -544,7 +544,7 @@ public:
std
::
vector
<
chapter_translation_c
>
translations
;
std
::
vector
<
KaxSegmentFamily
>
families
;
demux_sys_
c
&
sys
;
demux_sys_
t
&
sys
;
EbmlParser
*
ep
;
bool
b_preloaded
;
...
...
@@ -643,7 +643,7 @@ protected:
class
matroska_stream_c
{
public:
matroska_stream_c
(
demux_sys_
c
&
demuxer
)
matroska_stream_c
(
demux_sys_
t
&
demuxer
)
:
p_in
(
NULL
)
,
p_es
(
NULL
)
,
sys
(
demuxer
)
...
...
@@ -660,13 +660,13 @@ public:
std
::
vector
<
matroska_segment_c
*>
segments
;
demux_sys_
c
&
sys
;
demux_sys_
t
&
sys
;
};
class
demux_sys_
c
class
demux_sys_
t
{
public:
demux_sys_
c
(
demux_t
&
demux
)
demux_sys_
t
(
demux_t
&
demux
)
:
demuxer
(
demux
)
,
i_pts
(
0
)
,
i_start_pts
(
0
)
...
...
@@ -677,7 +677,7 @@ public:
,
f_duration
(
-
1.0
)
{}
virtual
~
demux_sys_
c
()
virtual
~
demux_sys_
t
()
{
for
(
size_t
i
=
0
;
i
<
streams
.
size
();
i
++
)
delete
streams
[
i
];
...
...
@@ -724,7 +724,7 @@ static char *UTF8ToStr ( const UTFstring &u );
static
int
Open
(
vlc_object_t
*
p_this
)
{
demux_t
*
p_demux
=
(
demux_t
*
)
p_this
;
demux_sys_
c
*
p_sys
;
demux_sys_
t
*
p_sys
;
matroska_stream_c
*
p_stream
;
matroska_segment_c
*
p_segment
;
uint8_t
*
p_peek
;
...
...
@@ -742,7 +742,7 @@ static int Open( vlc_object_t * p_this )
/* Set the demux function */
p_demux
->
pf_demux
=
Demux
;
p_demux
->
pf_control
=
Control
;
p_demux
->
p_sys
=
p_sys
=
new
demux_sys_
c
(
*
p_demux
);
p_demux
->
p_sys
=
p_sys
=
new
demux_sys_
t
(
*
p_demux
);
p_io_callback
=
new
vlc_stream_io_callback
(
p_demux
->
s
);
p_io_stream
=
new
EbmlStream
(
*
p_io_callback
);
...
...
@@ -865,7 +865,7 @@ error:
static
void
Close
(
vlc_object_t
*
p_this
)
{
demux_t
*
p_demux
=
(
demux_t
*
)
p_this
;
demux_sys_
c
*
p_sys
=
p_demux
->
p_sys
;
demux_sys_
t
*
p_sys
=
p_demux
->
p_sys
;
delete
p_sys
;
}
...
...
@@ -875,7 +875,7 @@ static void Close( vlc_object_t *p_this )
*****************************************************************************/
static
int
Control
(
demux_t
*
p_demux
,
int
i_query
,
va_list
args
)
{
demux_sys_
c
*
p_sys
=
p_demux
->
p_sys
;
demux_sys_
t
*
p_sys
=
p_demux
->
p_sys
;
int64_t
*
pi64
;
double
*
pf
,
f
;
int
i_skp
;
...
...
@@ -1112,7 +1112,7 @@ static block_t *MemToBlock( demux_t *p_demux, uint8_t *p_mem, int i_mem)
static
void
BlockDecode
(
demux_t
*
p_demux
,
KaxBlock
*
block
,
mtime_t
i_pts
,
mtime_t
i_duration
)
{
demux_sys_
c
*
p_sys
=
p_demux
->
p_sys
;
demux_sys_
t
*
p_sys
=
p_demux
->
p_sys
;
matroska_segment_c
*
p_segment
=
p_sys
->
p_current_segment
->
Segment
();
size_t
i_track
;
...
...
@@ -1206,7 +1206,7 @@ static void BlockDecode( demux_t *p_demux, KaxBlock *block, mtime_t i_pts,
#undef tk
}
matroska_stream_c
*
demux_sys_
c
::
AnalyseAllSegmentsFound
(
EbmlStream
*
p_estream
)
matroska_stream_c
*
demux_sys_
t
::
AnalyseAllSegmentsFound
(
EbmlStream
*
p_estream
)
{
int
i_upper_lvl
=
0
;
size_t
i
;
...
...
@@ -1697,7 +1697,7 @@ void chapter_item_c::PublishChapters( input_title_t & title, int i_level )
void
virtual_segment_c
::
UpdateCurrentToChapter
(
demux_t
&
demux
)
{
demux_sys_
c
&
sys
=
*
demux
.
p_sys
;
demux_sys_
t
&
sys
=
*
demux
.
p_sys
;
const
chapter_item_c
*
psz_curr_chapter
;
/* update current chapter/seekpoint */
...
...
@@ -1767,7 +1767,7 @@ chapter_item_c * chapter_item_c::FindChapter( const chapter_item_c & chapter )
static
void
Seek
(
demux_t
*
p_demux
,
mtime_t
i_date
,
double
f_percent
,
const
chapter_item_c
*
psz_chapter
)
{
demux_sys_
c
*
p_sys
=
p_demux
->
p_sys
;
demux_sys_
t
*
p_sys
=
p_demux
->
p_sys
;
virtual_segment_c
*
p_vsegment
=
p_sys
->
p_current_segment
;
matroska_segment_c
*
p_segment
=
p_vsegment
->
Segment
();
mtime_t
i_time_offset
=
0
;
...
...
@@ -1852,7 +1852,7 @@ static void Seek( demux_t *p_demux, mtime_t i_date, double f_percent, const chap
*****************************************************************************/
static
int
Demux
(
demux_t
*
p_demux
)
{
demux_sys_
c
*
p_sys
=
p_demux
->
p_sys
;
demux_sys_
t
*
p_sys
=
p_demux
->
p_sys
;
virtual_segment_c
*
p_vsegment
=
p_sys
->
p_current_segment
;
matroska_segment_c
*
p_segmet
=
p_vsegment
->
Segment
();
if
(
p_segmet
==
NULL
)
return
0
;
...
...
@@ -3510,7 +3510,7 @@ const chapter_item_c *chapter_item_c::FindTimecode( mtime_t i_user_timecode ) co
return
psz_result
;
}
void
demux_sys_
c
::
PreloadFamily
(
const
matroska_segment_c
&
of_segment
)
void
demux_sys_
t
::
PreloadFamily
(
const
matroska_segment_c
&
of_segment
)
{
for
(
size_t
i
=
0
;
i
<
opened_segments
.
size
();
i
++
)
{
...
...
@@ -3535,7 +3535,7 @@ bool matroska_segment_c::PreloadFamily( const matroska_segment_c & of_segment )
}
// preload all the linked segments for all preloaded segments
void
demux_sys_
c
::
PreloadLinked
(
matroska_segment_c
*
p_segment
)
void
demux_sys_
t
::
PreloadLinked
(
matroska_segment_c
*
p_segment
)
{
size_t
i_preloaded
,
i
;
...
...
@@ -3556,7 +3556,7 @@ void demux_sys_c::PreloadLinked( matroska_segment_c *p_segment )
p_current_segment
->
PreloadLinked
(
);
}
bool
demux_sys_
c
::
PreparePlayback
(
)
bool
demux_sys_
t
::
PreparePlayback
(
)
{
p_current_segment
->
LoadCues
();
f_duration
=
p_current_segment
->
Duration
();
...
...
@@ -3649,7 +3649,7 @@ bool matroska_segment_c::Preload( )
return
true
;
}
matroska_segment_c
*
demux_sys_
c
::
FindSegment
(
const
EbmlBinary
&
uid
)
const
matroska_segment_c
*
demux_sys_
t
::
FindSegment
(
const
EbmlBinary
&
uid
)
const
{
for
(
size_t
i
=
0
;
i
<
opened_segments
.
size
();
i
++
)
{
...
...
@@ -3849,7 +3849,7 @@ void matroska_segment_c::Seek( mtime_t i_date, mtime_t i_time_offset )
void
virtual_segment_c
::
Seek
(
demux_t
&
demuxer
,
mtime_t
i_date
,
mtime_t
i_time_offset
,
const
chapter_item_c
*
psz_chapter
)
{
demux_sys_
c
*
p_sys
=
demuxer
.
p_sys
;
demux_sys_
t
*
p_sys
=
demuxer
.
p_sys
;
size_t
i
;
// find the actual time for an ordered edition
...
...
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