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
e05c74bf
Commit
e05c74bf
authored
Jan 26, 2000
by
Sam Hocevar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
. synchro qui marchouille de plus en plus
parent
93ad3d1a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
12 deletions
+26
-12
src/video_parser/vpar_synchro.c
src/video_parser/vpar_synchro.c
+26
-12
No files found.
src/video_parser/vpar_synchro.c
View file @
e05c74bf
...
...
@@ -183,14 +183,31 @@ void vpar_SynchroUpdateStructures( vpar_thread_t * p_vpar,
boolean_t
vpar_SynchroChoose
(
vpar_thread_t
*
p_vpar
,
int
i_coding_type
,
int
i_structure
)
{
mtime_t
i_delay
=
p_vpar
->
synchro
.
fifo
[
p_vpar
->
synchro
.
i_fifo_start
].
i_pts
-
mdate
();
if
(
i_coding_type
==
B_CODING_TYPE
)
return
(
0
);
if
(
p_vpar
->
synchro
.
fifo
[
p_vpar
->
synchro
.
i_fifo_start
].
i_decode_date
+
((
p_vpar
->
synchro
.
i_fifo_stop
-
p_vpar
->
synchro
.
i_fifo_start
)
&
0xf
)
*
p_vpar
->
synchro
.
i_mean_decode_time
>
mdate
()
)
if
(
i_delay
>
300000
)
{
return
(
1
);
}
else
if
(
i_delay
>
150000
)
{
//fprintf( stderr, "chooser : we are la bourre !\n");
return
(
i_coding_type
==
I_CODING_TYPE
);
return
(
i_coding_type
==
I_CODING_TYPE
||
i_coding_type
==
P_CODING_TYPE
);
}
else
if
(
i_delay
>
100000
)
{
return
(
i_coding_type
==
I_CODING_TYPE
);
}
else
{
//fprintf( stderr, "chooser : we are la bourre - trashing a %i\n", i_coding_type);
//return ( i_coding_type == I_CODING_TYPE );
return
(
0
);
}
return
(
i_coding_type
==
I_CODING_TYPE
||
(
i_coding_type
==
P_CODING_TYPE
));
}
...
...
@@ -241,17 +258,14 @@ void vpar_SynchroEnd( vpar_thread_t * p_vpar )
*****************************************************************************/
mtime_t
vpar_SynchroDate
(
vpar_thread_t
*
p_vpar
)
{
decoder_fifo_t
*
fifo
;
mtime_t
i_displaydate
;
mtime_t
i_delay
;
static
mtime_t
i_delta
=
0
;
i_displaydate
=
p_vpar
->
synchro
.
fifo
[
p_vpar
->
synchro
.
i_fifo_start
].
i_decode_date
;
/* this value should be removed */
i_displaydate
+=
500000
;
i_delay
=
i_displaydate
-
mdate
();
p_vpar
->
synchro
.
fifo
[
p_vpar
->
synchro
.
i_fifo_start
].
i_pts
;
//fprintf(stderr, "displaying type %i with delay %lli)\n", p_vpar->synchro.fifo[p_vpar->synchro.i_fifo_start].i_image_type, i_delay);
//fprintf(stderr, "displaying type %i with delay %lli and delta %lli\n", p_vpar->synchro.fifo[p_vpar->synchro.i_fifo_start].i_image_type, i_displaydate - mdate(), i_displaydate - i_delta);
i_delta
=
i_displaydate
;
return
i_displaydate
;
}
...
...
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