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
4c7b5876
Commit
4c7b5876
authored
Jan 19, 2000
by
Sam Hocevar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
. pr�paration de la modification de l'API synchro
parent
8d990276
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
13 deletions
+14
-13
include/vpar_synchro.h
include/vpar_synchro.h
+2
-2
src/video_parser/vpar_headers.c
src/video_parser/vpar_headers.c
+4
-3
src/video_parser/vpar_synchro.c
src/video_parser/vpar_synchro.c
+8
-8
No files found.
include/vpar_synchro.h
View file @
4c7b5876
...
...
@@ -49,6 +49,6 @@ boolean_t vpar_SynchroChoose( struct vpar_thread_s * p_vpar, int i_coding_type,
int
i_structure
);
void
vpar_SynchroTrash
(
struct
vpar_thread_s
*
p_vpar
,
int
i_coding_type
,
int
i_structure
);
mtime_t
vpar_SynchroDecode
(
struct
vpar_thread_s
*
p_vpar
,
int
i_coding_type
,
void
vpar_SynchroDecode
(
struct
vpar_thread_s
*
p_vpar
,
int
i_coding_type
,
int
i_structure
);
void
vpar_SynchroEnd
(
struct
vpar_thread_s
*
p_vpar
);
mtime_t
vpar_SynchroEnd
(
struct
vpar_thread_s
*
p_vpar
);
src/video_parser/vpar_headers.c
View file @
4c7b5876
...
...
@@ -677,9 +677,10 @@ static void PictureHeader( vpar_thread_t * p_vpar )
}
/* Initialize values. */
P_picture
->
date
=
vpar_SynchroDecode
(
p_vpar
,
p_vpar
->
picture
.
i_coding_type
,
i_structure
);
vpar_SynchroDecode
(
p_vpar
,
p_vpar
->
picture
.
i_coding_type
,
i_structure
);
/* kludge to be removed once vpar_SynchroEnd is called properly */
P_picture
->
date
=
mdate
()
+
700000
;
P_picture
->
i_aspect_ratio
=
p_vpar
->
sequence
.
i_aspect_ratio
;
P_picture
->
i_matrix_coefficients
=
p_vpar
->
sequence
.
i_matrix_coefficients
;
p_vpar
->
picture
.
i_l_stride
=
(
p_vpar
->
sequence
.
i_width
...
...
src/video_parser/vpar_synchro.c
View file @
4c7b5876
...
...
@@ -48,7 +48,7 @@
/*****************************************************************************
* vpar_SynchroUpdateTab : Update a mean table in the synchro structure
*****************************************************************************/
double
vpar_SynchroUpdateTab
(
video_synchro_tab_t
*
tab
,
int
count
)
float
vpar_SynchroUpdateTab
(
video_synchro_tab_t
*
tab
,
int
count
)
{
tab
->
mean
=
(
tab
->
mean
+
3
*
count
)
/
4
;
...
...
@@ -63,9 +63,9 @@ double vpar_SynchroUpdateTab( video_synchro_tab_t * tab, int count )
void
vpar_SynchroUpdateStructures
(
vpar_thread_t
*
p_vpar
,
int
i_coding_type
)
{
double
candidate_deviation
;
double
optimal_deviation
;
double
predict
;
float
candidate_deviation
;
float
optimal_deviation
;
float
predict
;
switch
(
i_coding_type
)
{
...
...
@@ -167,19 +167,19 @@ void vpar_SynchroTrash( vpar_thread_t * p_vpar, int i_coding_type,
/*****************************************************************************
* vpar_SynchroDecode : Update timers when we decide to decode a picture
*****************************************************************************/
mtime_t
vpar_SynchroDecode
(
vpar_thread_t
*
p_vpar
,
int
i_coding_type
,
void
vpar_SynchroDecode
(
vpar_thread_t
*
p_vpar
,
int
i_coding_type
,
int
i_structure
)
{
vpar_SynchroUpdateStructures
(
p_vpar
,
i_coding_type
);
return
mdate
()
+
700000
;
}
/*****************************************************************************
* vpar_SynchroEnd : Called when the image is totally decoded
*****************************************************************************/
void
vpar_SynchroEnd
(
vpar_thread_t
*
p_vpar
)
mtime_t
vpar_SynchroEnd
(
vpar_thread_t
*
p_vpar
)
{
return
mdate
()
+
700000
;
}
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