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
a6bc5de8
Commit
a6bc5de8
authored
Jan 17, 2000
by
Christophe Massiot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Suite des images I.
parent
f0f225c4
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
10 deletions
+17
-10
include/config.h
include/config.h
+2
-2
src/video_decoder/video_decoder.c
src/video_decoder/video_decoder.c
+1
-4
src/video_parser/vpar_headers.c
src/video_parser/vpar_headers.c
+13
-3
src/video_parser/vpar_synchro.c
src/video_parser/vpar_synchro.c
+1
-1
No files found.
include/config.h
View file @
a6bc5de8
...
@@ -293,10 +293,10 @@
...
@@ -293,10 +293,10 @@
/* Number of macroblock buffers available. It should be always greater than
/* Number of macroblock buffers available. It should be always greater than
* twice the number of macroblocks in a picture. VFIFO_SIZE + 1 should also
* twice the number of macroblocks in a picture. VFIFO_SIZE + 1 should also
* be a power of two. */
* be a power of two. */
#define VFIFO_SIZE
4095
#define VFIFO_SIZE
8191
/* Maximum number of macroblocks in a picture. */
/* Maximum number of macroblocks in a picture. */
#define MAX_MB
32767
#define MAX_MB
2048
/*******************************************************************************
/*******************************************************************************
* Video decoder configuration
* Video decoder configuration
...
...
src/video_decoder/video_decoder.c
View file @
a6bc5de8
...
@@ -186,7 +186,7 @@ static void RunThread( vdec_thread_t *p_vdec )
...
@@ -186,7 +186,7 @@ static void RunThread( vdec_thread_t *p_vdec )
return
;
return
;
}
}
p_vdec
->
b_run
=
1
;
p_vdec
->
b_run
=
1
;
p_vdec
->
b_error
=
1
;
/*
/*
* Main loop - it is not executed if an error occured during
* Main loop - it is not executed if an error occured during
* initialization
* initialization
...
@@ -230,9 +230,6 @@ static void ErrorThread( vdec_thread_t *p_vdec )
...
@@ -230,9 +230,6 @@ static void ErrorThread( vdec_thread_t *p_vdec )
{
{
p_mb
=
vpar_GetMacroblock
(
&
p_vdec
->
p_vpar
->
vfifo
);
p_mb
=
vpar_GetMacroblock
(
&
p_vdec
->
p_vpar
->
vfifo
);
vpar_DestroyMacroblock
(
&
p_vdec
->
p_vpar
->
vfifo
,
p_mb
);
vpar_DestroyMacroblock
(
&
p_vdec
->
p_vpar
->
vfifo
,
p_mb
);
/* Sleep a while */
msleep
(
VDEC_IDLE_SLEEP
);
}
}
}
}
...
...
src/video_parser/vpar_headers.c
View file @
a6bc5de8
...
@@ -668,11 +668,17 @@ static void PictureHeader( vpar_thread_t * p_vpar )
...
@@ -668,11 +668,17 @@ static void PictureHeader( vpar_thread_t * p_vpar )
if
(
!
p_vpar
->
picture
.
i_current_structure
)
if
(
!
p_vpar
->
picture
.
i_current_structure
)
{
{
/* This is a new frame. Get a structure from the video_output. */
/* This is a new frame. Get a structure from the video_output. */
P_picture
=
vout_CreatePicture
(
p_vpar
->
p_vout
,
if
(
(
P_picture
=
vout_CreatePicture
(
p_vpar
->
p_vout
,
99
+
p_vpar
->
sequence
.
i_chroma_format
,
/*???*/
99
+
p_vpar
->
sequence
.
i_chroma_format
,
/*???*/
p_vpar
->
sequence
.
i_width
,
p_vpar
->
sequence
.
i_width
,
p_vpar
->
sequence
.
i_height
,
p_vpar
->
sequence
.
i_height
,
p_vpar
->
sequence
.
i_width
*
sizeof
(
yuv_data_t
)
);
p_vpar
->
sequence
.
i_width
*
sizeof
(
yuv_data_t
)
)
)
==
NULL
)
{
intf_ErrMsg
(
"vpar debug: allocation error in vout_CreatePicture
\n
"
);
p_vpar
->
b_error
=
1
;
return
;
}
/* Initialize values. */
/* Initialize values. */
P_picture
->
date
=
vpar_SynchroDecode
(
p_vpar
,
P_picture
->
date
=
vpar_SynchroDecode
(
p_vpar
,
...
@@ -757,14 +763,18 @@ fprintf(stderr, "Image parsee\n");
...
@@ -757,14 +763,18 @@ fprintf(stderr, "Image parsee\n");
/* Link referenced pictures for the decoder
/* Link referenced pictures for the decoder
* They are unlinked in vpar_ReleaseMacroblock() & vpar_DestroyMacroblock() */
* They are unlinked in vpar_ReleaseMacroblock() & vpar_DestroyMacroblock() */
#if 0
if( p_vpar->sequence.p_forward != NULL )
if( p_vpar->sequence.p_forward != NULL )
{
{
vout_LinkPicture
(
p_vpar
->
p_vout
,
p_vpar
->
sequence
.
p_forward
);
vout_LinkPicture( p_vpar->p_vout, p_vpar->sequence.p_forward );
}
}
if( p_vpar->sequence.p_backward != NULL )
if( p_vpar->sequence.p_backward != NULL )
{
{
vout_LinkPicture( p_vpar->p_vout, p_vpar->sequence.p_backward );
vout_LinkPicture( p_vpar->p_vout, p_vpar->sequence.p_backward );
}
}
#endif
/* Send signal to the video_decoder. */
vlc_cond_signal
(
&
p_vpar
->
vfifo
.
wait
);
/* Prepare context for the next picture. */
/* Prepare context for the next picture. */
P_picture
=
NULL
;
P_picture
=
NULL
;
...
...
src/video_parser/vpar_synchro.c
View file @
a6bc5de8
...
@@ -67,7 +67,7 @@ void vpar_SynchroTrash( vpar_thread_t * p_vpar, int i_coding_type,
...
@@ -67,7 +67,7 @@ void vpar_SynchroTrash( vpar_thread_t * p_vpar, int i_coding_type,
mtime_t
vpar_SynchroDecode
(
vpar_thread_t
*
p_vpar
,
int
i_coding_type
,
mtime_t
vpar_SynchroDecode
(
vpar_thread_t
*
p_vpar
,
int
i_coding_type
,
int
i_structure
)
int
i_structure
)
{
{
return
mdate
()
+
500000
;
}
}
/*****************************************************************************
/*****************************************************************************
...
...
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