Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
a8bca726
Commit
a8bca726
authored
Dec 27, 2000
by
Christophe Massiot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New synchro statistics and warnings.
parent
8a38b8fb
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
116 additions
and
100 deletions
+116
-100
src/video_decoder/vpar_synchro.h
src/video_decoder/vpar_synchro.h
+3
-2
src/video_parser/vpar_headers.c
src/video_parser/vpar_headers.c
+8
-2
src/video_parser/vpar_synchro.c
src/video_parser/vpar_synchro.c
+105
-96
No files found.
src/video_decoder/vpar_synchro.h
View file @
a8bca726
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* vpar_synchro.h : video parser blocks management
* vpar_synchro.h : video parser blocks management
*****************************************************************************
*****************************************************************************
* Copyright (C) 1999, 2000 VideoLAN
* Copyright (C) 1999, 2000 VideoLAN
* $Id: vpar_synchro.h,v 1.
2 2000/12/26 19:14:47
massiot Exp $
* $Id: vpar_synchro.h,v 1.
3 2000/12/27 18:09:02
massiot Exp $
*
*
* Author: Christophe Massiot <massiot@via.ecp.fr>
* Author: Christophe Massiot <massiot@via.ecp.fr>
*
*
...
@@ -66,7 +66,7 @@ typedef struct video_synchro_s
...
@@ -66,7 +66,7 @@ typedef struct video_synchro_s
mtime_t
backward_pts
,
current_pts
;
mtime_t
backward_pts
,
current_pts
;
#ifdef STATS
#ifdef STATS
unsigned
int
i_trashed_pic
,
i_pic
;
unsigned
int
i_trashed_pic
,
i_
not_chosen_pic
,
i_
pic
;
#endif
#endif
}
video_synchro_t
;
}
video_synchro_t
;
...
@@ -94,3 +94,4 @@ void vpar_SynchroDecode ( struct vpar_thread_s * p_vpar,
...
@@ -94,3 +94,4 @@ void vpar_SynchroDecode ( struct vpar_thread_s * p_vpar,
int
i_coding_type
,
int
i_structure
);
int
i_coding_type
,
int
i_structure
);
void
vpar_SynchroEnd
(
struct
vpar_thread_s
*
p_vpar
,
int
i_garbage
);
void
vpar_SynchroEnd
(
struct
vpar_thread_s
*
p_vpar
,
int
i_garbage
);
mtime_t
vpar_SynchroDate
(
struct
vpar_thread_s
*
p_vpar
);
mtime_t
vpar_SynchroDate
(
struct
vpar_thread_s
*
p_vpar
);
void
vpar_SynchroNewPicture
(
struct
vpar_thread_s
*
p_vpar
,
int
i_coding_type
);
src/video_parser/vpar_headers.c
View file @
a8bca726
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* vpar_headers.c : headers parsing
* vpar_headers.c : headers parsing
*****************************************************************************
*****************************************************************************
* Copyright (C) 1999, 2000 VideoLAN
* Copyright (C) 1999, 2000 VideoLAN
* $Id: vpar_headers.c,v 1.6
2 2000/12/22 13:04:45 sam
Exp $
* $Id: vpar_headers.c,v 1.6
3 2000/12/27 18:09:02 massiot
Exp $
*
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
* Authors: Christophe Massiot <massiot@via.ecp.fr>
* Stphane Borel <stef@via.ecp.fr>
* Stphane Borel <stef@via.ecp.fr>
...
@@ -620,6 +620,9 @@ static void PictureHeader( vpar_thread_t * p_vpar )
...
@@ -620,6 +620,9 @@ static void PictureHeader( vpar_thread_t * p_vpar )
}
}
else
else
{
{
/* Warn synchro we have a new picture (updates pictures index). */
vpar_SynchroNewPicture
(
p_vpar
,
p_vpar
->
picture
.
i_coding_type
);
/* Does synchro say we have enough time to decode it ? */
/* Does synchro say we have enough time to decode it ? */
b_parsable
=
vpar_SynchroChoose
(
p_vpar
,
b_parsable
=
vpar_SynchroChoose
(
p_vpar
,
p_vpar
->
picture
.
i_coding_type
,
i_structure
);
p_vpar
->
picture
.
i_coding_type
,
i_structure
);
...
@@ -643,12 +646,15 @@ static void PictureHeader( vpar_thread_t * p_vpar )
...
@@ -643,12 +646,15 @@ static void PictureHeader( vpar_thread_t * p_vpar )
{
{
/* The frame is complete. */
/* The frame is complete. */
p_vpar
->
picture
.
i_current_structure
=
i_structure
;
p_vpar
->
picture
.
i_current_structure
=
i_structure
;
vpar_SynchroNewPicture
(
p_vpar
,
p_vpar
->
picture
.
i_coding_type
);
vpar_SynchroTrash
(
p_vpar
,
p_vpar
->
picture
.
i_coding_type
,
i_structure
);
vpar_SynchroTrash
(
p_vpar
,
p_vpar
->
picture
.
i_coding_type
,
i_structure
);
}
}
}
}
else
else
{
{
/* Warn Synchro we have trashed a picture. */
/* Warn Synchro we have trashed a picture. */
vpar_SynchroNewPicture
(
p_vpar
,
p_vpar
->
picture
.
i_coding_type
);
vpar_SynchroTrash
(
p_vpar
,
p_vpar
->
picture
.
i_coding_type
,
i_structure
);
vpar_SynchroTrash
(
p_vpar
,
p_vpar
->
picture
.
i_coding_type
,
i_structure
);
}
}
p_vpar
->
picture
.
p_picture
=
NULL
;
p_vpar
->
picture
.
p_picture
=
NULL
;
...
...
src/video_parser/vpar_synchro.c
View file @
a8bca726
This diff is collapsed.
Click to expand it.
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