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
c760db38
Commit
c760db38
authored
Jan 16, 2001
by
Christophe Massiot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* Change for the forthcoming fast forward and slow motion support.
parent
6eb70788
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
11 deletions
+13
-11
src/video_decoder/vpar_synchro.h
src/video_decoder/vpar_synchro.h
+5
-4
src/video_parser/vpar_synchro.c
src/video_parser/vpar_synchro.c
+8
-7
No files found.
src/video_decoder/vpar_synchro.h
View file @
c760db38
...
...
@@ -2,7 +2,7 @@
* vpar_synchro.h : video parser blocks management
*****************************************************************************
* Copyright (C) 1999, 2000 VideoLAN
* $Id: vpar_synchro.h,v 1.
6 2001/01/15 19:54:3
4 massiot Exp $
* $Id: vpar_synchro.h,v 1.
7 2001/01/16 13:27:1
4 massiot Exp $
*
* Author: Christophe Massiot <massiot@via.ecp.fr>
*
...
...
@@ -64,9 +64,10 @@ typedef struct video_synchro_s
unsigned
int
i_eta_p
,
i_eta_b
;
boolean_t
b_dropped_last
;
/* for special synchros below */
mtime_t
backward_pts
,
current_pts
;
mtime_t
current_period
;
/* period to add to the next picture */
mtime_t
backward_period
;
/* period to add after the next
* reference picture */
int
i_current_period
;
/* period to add to the next picture */
int
i_backward_period
;
/* period to add after the next
* reference picture
* (backward_period * period / 2) */
#ifdef STATS
unsigned
int
i_trashed_pic
,
i_not_chosen_pic
,
i_pic
;
...
...
src/video_parser/vpar_synchro.c
View file @
c760db38
...
...
@@ -2,7 +2,7 @@
* vpar_synchro.c : frame dropping routines
*****************************************************************************
* Copyright (C) 1999, 2000 VideoLAN
* $Id: vpar_synchro.c,v 1.7
4 2001/01/15 19:54:3
4 massiot Exp $
* $Id: vpar_synchro.c,v 1.7
5 2001/01/16 13:27:1
4 massiot Exp $
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
* Samuel Hocevar <sam@via.ecp.fr>
...
...
@@ -150,8 +150,8 @@ void vpar_SynchroInit( vpar_thread_t * p_vpar )
memset
(
p_vpar
->
synchro
.
pi_meaningful
,
0
,
4
*
sizeof
(
unsigned
int
)
);
p_vpar
->
synchro
.
b_dropped_last
=
0
;
p_vpar
->
synchro
.
current_pts
=
mdate
()
+
DEFAULT_PTS_DELAY
;
p_vpar
->
synchro
.
backward_pts
=
p_vpar
->
synchro
.
current_period
=
p_vpar
->
synchro
.
backward_period
=
0
;
p_vpar
->
synchro
.
backward_pts
=
0
;
p_vpar
->
synchro
.
i_current_period
=
p_vpar
->
synchro
.
i_
backward_period
=
0
;
#ifdef STATS
p_vpar
->
synchro
.
i_trashed_pic
=
p_vpar
->
synchro
.
i_not_chosen_pic
=
p_vpar
->
synchro
.
i_pic
=
0
;
...
...
@@ -469,7 +469,8 @@ void vpar_SynchroNewPicture( vpar_thread_t * p_vpar, int i_coding_type,
break
;
}
p_vpar
->
synchro
.
current_pts
+=
p_vpar
->
synchro
.
current_period
;
p_vpar
->
synchro
.
current_pts
+=
p_vpar
->
synchro
.
i_current_period
*
(
period
>>
1
);
#define PTS_THRESHOLD (period >> 2)
if
(
i_coding_type
==
B_CODING_TYPE
)
...
...
@@ -477,7 +478,7 @@ void vpar_SynchroNewPicture( vpar_thread_t * p_vpar, int i_coding_type,
/* A video frame can be displayed 1, 2 or 3 times, according to
* repeat_first_field, top_field_first, progressive_sequence and
* progressive_frame. */
p_vpar
->
synchro
.
current_period
=
i_repeat_field
*
(
period
>>
1
)
;
p_vpar
->
synchro
.
i_current_period
=
i_repeat_field
;
if
(
p_vpar
->
sequence
.
next_pts
)
{
...
...
@@ -497,8 +498,8 @@ void vpar_SynchroNewPicture( vpar_thread_t * p_vpar, int i_coding_type,
}
else
{
p_vpar
->
synchro
.
current_period
=
p_vpar
->
synchro
.
backward_period
;
p_vpar
->
synchro
.
backward_period
=
i_repeat_field
*
(
period
>>
1
)
;
p_vpar
->
synchro
.
i_current_period
=
p_vpar
->
synchro
.
i_
backward_period
;
p_vpar
->
synchro
.
i_backward_period
=
i_repeat_field
;
if
(
p_vpar
->
synchro
.
backward_pts
)
{
...
...
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