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
cf49edcd
Commit
cf49edcd
authored
Jan 19, 2000
by
Christophe Massiot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
support de vout_DatePicture().
parent
6f1316be
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
5 deletions
+19
-5
include/vpar_synchro.h
include/vpar_synchro.h
+2
-1
src/video_parser/vpar_headers.c
src/video_parser/vpar_headers.c
+11
-3
src/video_parser/vpar_synchro.c
src/video_parser/vpar_synchro.c
+6
-1
No files found.
include/vpar_synchro.h
View file @
cf49edcd
...
@@ -51,4 +51,5 @@ void vpar_SynchroTrash( struct vpar_thread_s * p_vpar, int i_coding_type,
...
@@ -51,4 +51,5 @@ void vpar_SynchroTrash( struct vpar_thread_s * p_vpar, int i_coding_type,
int
i_structure
);
int
i_structure
);
void
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
);
int
i_structure
);
mtime_t
vpar_SynchroEnd
(
struct
vpar_thread_s
*
p_vpar
);
void
vpar_SynchroEnd
(
struct
vpar_thread_s
*
p_vpar
);
mtime_t
vpar_SynchroDate
(
struct
vpar_thread_s
*
p_vpar
);
src/video_parser/vpar_headers.c
View file @
cf49edcd
...
@@ -181,6 +181,11 @@ static void __inline__ ReferenceUpdate( vpar_thread_t * p_vpar,
...
@@ -181,6 +181,11 @@ static void __inline__ ReferenceUpdate( vpar_thread_t * p_vpar,
{
{
if
(
p_vpar
->
sequence
.
p_forward
!=
NULL
)
if
(
p_vpar
->
sequence
.
p_forward
!=
NULL
)
vout_UnlinkPicture
(
p_vpar
->
p_vout
,
p_vpar
->
sequence
.
p_forward
);
vout_UnlinkPicture
(
p_vpar
->
p_vout
,
p_vpar
->
sequence
.
p_forward
);
if
(
p_vpar
->
sequence
.
p_backward
!=
NULL
)
{
vout_DatePicture
(
p_vpar
->
p_vout
,
p_vpar
->
sequence
.
p_backward
,
vpar_SynchroDate
(
p_vpar
)
);
}
p_vpar
->
sequence
.
p_forward
=
p_vpar
->
sequence
.
p_backward
;
p_vpar
->
sequence
.
p_forward
=
p_vpar
->
sequence
.
p_backward
;
p_vpar
->
sequence
.
p_backward
=
p_newref
;
p_vpar
->
sequence
.
p_backward
=
p_newref
;
if
(
p_newref
!=
NULL
)
if
(
p_newref
!=
NULL
)
...
@@ -678,9 +683,12 @@ static void PictureHeader( vpar_thread_t * p_vpar )
...
@@ -678,9 +683,12 @@ static void PictureHeader( vpar_thread_t * p_vpar )
/* Initialize values. */
/* Initialize values. */
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 */
if
(
p_vpar
->
picture
.
i_coding_type
==
B_CODING_TYPE
)
P_picture
->
date
=
mdate
()
+
700000
;
{
/* Put date immediately. */
vout_DatePicture
(
p_vpar
->
p_vout
,
P_picture
,
vpar_SynchroDate
(
p_vpar
)
);
}
P_picture
->
i_aspect_ratio
=
p_vpar
->
sequence
.
i_aspect_ratio
;
P_picture
->
i_aspect_ratio
=
p_vpar
->
sequence
.
i_aspect_ratio
;
P_picture
->
i_matrix_coefficients
=
p_vpar
->
sequence
.
i_matrix_coefficients
;
P_picture
->
i_matrix_coefficients
=
p_vpar
->
sequence
.
i_matrix_coefficients
;
p_vpar
->
picture
.
i_l_stride
=
(
p_vpar
->
sequence
.
i_width
p_vpar
->
picture
.
i_l_stride
=
(
p_vpar
->
sequence
.
i_width
...
...
src/video_parser/vpar_synchro.c
View file @
cf49edcd
...
@@ -177,9 +177,14 @@ void vpar_SynchroDecode( vpar_thread_t * p_vpar, int i_coding_type,
...
@@ -177,9 +177,14 @@ void vpar_SynchroDecode( vpar_thread_t * p_vpar, int i_coding_type,
/*****************************************************************************
/*****************************************************************************
* vpar_SynchroEnd : Called when the image is totally decoded
* vpar_SynchroEnd : Called when the image is totally decoded
*****************************************************************************/
*****************************************************************************/
mtime_t
vpar_SynchroEnd
(
vpar_thread_t
*
p_vpar
)
void
vpar_SynchroEnd
(
vpar_thread_t
*
p_vpar
)
{
{
// return mdate() + 700000;
}
mtime_t
vpar_SynchroDate
(
vpar_thread_t
*
p_vpar
)
{
return
mdate
()
+
700000
;
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