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
3c607262
Commit
3c607262
authored
Oct 01, 2001
by
Christophe Massiot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Dramatically improve compilation time, with a negligible performance
tradeoff.
parent
6cd676bc
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
13 deletions
+13
-13
include/config.h.in
include/config.h.in
+1
-1
src/video_decoder/video_parser.h
src/video_decoder/video_parser.h
+5
-5
src/video_decoder/vpar_blocks.c
src/video_decoder/vpar_blocks.c
+5
-5
src/video_decoder/vpar_headers.c
src/video_decoder/vpar_headers.c
+2
-2
No files found.
include/config.h.in
View file @
3c607262
...
@@ -421,7 +421,7 @@
...
@@ -421,7 +421,7 @@
/* Optimization level, from 0 to 2 - 1 is generally a good compromise. Remember
/* Optimization level, from 0 to 2 - 1 is generally a good compromise. Remember
* that raising this level dramatically lengthens the compilation time. */
* that raising this level dramatically lengthens the compilation time. */
#define VPAR_OPTIM_LEVEL
2
#define VPAR_OPTIM_LEVEL
1
/* Maximum number of macroblocks in a picture. */
/* Maximum number of macroblocks in a picture. */
#define MAX_MB 2048
#define MAX_MB 2048
...
...
src/video_decoder/video_parser.h
View file @
3c607262
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* video_parser.h : video parser thread
* video_parser.h : video parser thread
*****************************************************************************
*****************************************************************************
* Copyright (C) 1999, 2000 VideoLAN
* Copyright (C) 1999, 2000 VideoLAN
* $Id: video_parser.h,v 1.1
4 2001/10/01 16:18:49
massiot Exp $
* $Id: video_parser.h,v 1.1
5 2001/10/01 16:44:07
massiot Exp $
*
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
* Authors: Christophe Massiot <massiot@via.ecp.fr>
* Jean-Marc Dressler <polux@via.ecp.fr>
* Jean-Marc Dressler <polux@via.ecp.fr>
...
@@ -68,10 +68,6 @@ void FUNCNAME( struct vpar_thread_s * p_vpar );
...
@@ -68,10 +68,6 @@ void FUNCNAME( struct vpar_thread_s * p_vpar );
PROTO_PICD
(
vpar_PictureDataGENERIC
)
PROTO_PICD
(
vpar_PictureDataGENERIC
)
#if (VPAR_OPTIM_LEVEL > 0)
#if (VPAR_OPTIM_LEVEL > 0)
PROTO_PICD
(
vpar_PictureData1I
)
PROTO_PICD
(
vpar_PictureData1P
)
PROTO_PICD
(
vpar_PictureData1B
)
PROTO_PICD
(
vpar_PictureData1D
)
PROTO_PICD
(
vpar_PictureData2IF
)
PROTO_PICD
(
vpar_PictureData2IF
)
PROTO_PICD
(
vpar_PictureData2PF
)
PROTO_PICD
(
vpar_PictureData2PF
)
PROTO_PICD
(
vpar_PictureData2BF
)
PROTO_PICD
(
vpar_PictureData2BF
)
...
@@ -83,6 +79,10 @@ PROTO_PICD( vpar_PictureData2BT )
...
@@ -83,6 +79,10 @@ PROTO_PICD( vpar_PictureData2BT )
PROTO_PICD
(
vpar_PictureData2IB
)
PROTO_PICD
(
vpar_PictureData2IB
)
PROTO_PICD
(
vpar_PictureData2PB
)
PROTO_PICD
(
vpar_PictureData2PB
)
PROTO_PICD
(
vpar_PictureData2BB
)
PROTO_PICD
(
vpar_PictureData2BB
)
PROTO_PICD
(
vpar_PictureData1I
)
PROTO_PICD
(
vpar_PictureData1P
)
PROTO_PICD
(
vpar_PictureData1B
)
PROTO_PICD
(
vpar_PictureData1D
)
#endif
#endif
...
...
src/video_decoder/vpar_blocks.c
View file @
3c607262
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* vpar_blocks.c : blocks parsing
* vpar_blocks.c : blocks parsing
*****************************************************************************
*****************************************************************************
* Copyright (C) 1999, 2000 VideoLAN
* Copyright (C) 1999, 2000 VideoLAN
* $Id: vpar_blocks.c,v 1.1
1 2001/10/01 10:27:1
7 massiot Exp $
* $Id: vpar_blocks.c,v 1.1
2 2001/10/01 16:44:0
7 massiot Exp $
*
*
* Authors: Michel Lespinasse <walken@zoy.org>
* Authors: Michel Lespinasse <walken@zoy.org>
* Aaron Holtzman <aholtzma@ess.engr.uvic.ca>
* Aaron Holtzman <aholtzma@ess.engr.uvic.ca>
...
@@ -2176,10 +2176,6 @@ void FUNCNAME( vpar_thread_t * p_vpar ) \
...
@@ -2176,10 +2176,6 @@ void FUNCNAME( vpar_thread_t * p_vpar ) \
DECLARE_PICD
(
vpar_PictureDataGENERIC
,
p_vpar
->
sequence
.
b_mpeg2
,
DECLARE_PICD
(
vpar_PictureDataGENERIC
,
p_vpar
->
sequence
.
b_mpeg2
,
p_vpar
->
picture
.
i_coding_type
,
p_vpar
->
picture
.
i_structure
);
p_vpar
->
picture
.
i_coding_type
,
p_vpar
->
picture
.
i_structure
);
#if (VPAR_OPTIM_LEVEL > 0)
#if (VPAR_OPTIM_LEVEL > 0)
DECLARE_PICD
(
vpar_PictureData1I
,
0
,
I_CODING_TYPE
,
FRAME_STRUCTURE
);
DECLARE_PICD
(
vpar_PictureData1P
,
0
,
P_CODING_TYPE
,
FRAME_STRUCTURE
);
DECLARE_PICD
(
vpar_PictureData1B
,
0
,
B_CODING_TYPE
,
FRAME_STRUCTURE
);
DECLARE_PICD
(
vpar_PictureData1D
,
0
,
D_CODING_TYPE
,
FRAME_STRUCTURE
);
DECLARE_PICD
(
vpar_PictureData2IF
,
1
,
I_CODING_TYPE
,
FRAME_STRUCTURE
);
DECLARE_PICD
(
vpar_PictureData2IF
,
1
,
I_CODING_TYPE
,
FRAME_STRUCTURE
);
DECLARE_PICD
(
vpar_PictureData2PF
,
1
,
P_CODING_TYPE
,
FRAME_STRUCTURE
);
DECLARE_PICD
(
vpar_PictureData2PF
,
1
,
P_CODING_TYPE
,
FRAME_STRUCTURE
);
DECLARE_PICD
(
vpar_PictureData2BF
,
1
,
B_CODING_TYPE
,
FRAME_STRUCTURE
);
DECLARE_PICD
(
vpar_PictureData2BF
,
1
,
B_CODING_TYPE
,
FRAME_STRUCTURE
);
...
@@ -2191,6 +2187,10 @@ DECLARE_PICD( vpar_PictureData2BT, 1, B_CODING_TYPE, TOP_FIELD );
...
@@ -2191,6 +2187,10 @@ DECLARE_PICD( vpar_PictureData2BT, 1, B_CODING_TYPE, TOP_FIELD );
DECLARE_PICD
(
vpar_PictureData2IB
,
1
,
I_CODING_TYPE
,
BOTTOM_FIELD
);
DECLARE_PICD
(
vpar_PictureData2IB
,
1
,
I_CODING_TYPE
,
BOTTOM_FIELD
);
DECLARE_PICD
(
vpar_PictureData2PB
,
1
,
P_CODING_TYPE
,
BOTTOM_FIELD
);
DECLARE_PICD
(
vpar_PictureData2PB
,
1
,
P_CODING_TYPE
,
BOTTOM_FIELD
);
DECLARE_PICD
(
vpar_PictureData2BB
,
1
,
B_CODING_TYPE
,
BOTTOM_FIELD
);
DECLARE_PICD
(
vpar_PictureData2BB
,
1
,
B_CODING_TYPE
,
BOTTOM_FIELD
);
DECLARE_PICD
(
vpar_PictureData1I
,
0
,
I_CODING_TYPE
,
FRAME_STRUCTURE
);
DECLARE_PICD
(
vpar_PictureData1P
,
0
,
P_CODING_TYPE
,
FRAME_STRUCTURE
);
DECLARE_PICD
(
vpar_PictureData1B
,
0
,
B_CODING_TYPE
,
FRAME_STRUCTURE
);
DECLARE_PICD
(
vpar_PictureData1D
,
0
,
D_CODING_TYPE
,
FRAME_STRUCTURE
);
#endif
#endif
#undef DECLARE_PICD
#undef DECLARE_PICD
...
...
src/video_decoder/vpar_headers.c
View file @
3c607262
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* vpar_headers.c : headers parsing
* vpar_headers.c : headers parsing
*****************************************************************************
*****************************************************************************
* Copyright (C) 1999, 2000 VideoLAN
* Copyright (C) 1999, 2000 VideoLAN
* $Id: vpar_headers.c,v 1.1
0 2001/10/01 16:18:49
massiot Exp $
* $Id: vpar_headers.c,v 1.1
1 2001/10/01 16:44:07
massiot Exp $
*
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
* Authors: Christophe Massiot <massiot@via.ecp.fr>
* Stphane Borel <stef@via.ecp.fr>
* Stphane Borel <stef@via.ecp.fr>
...
@@ -794,7 +794,7 @@ static void PictureHeader( vpar_thread_t * p_vpar )
...
@@ -794,7 +794,7 @@ static void PictureHeader( vpar_thread_t * p_vpar )
}
}
else
else
{
{
#if (VPAR_OPTIM_LEVEL >
0
)
#if (VPAR_OPTIM_LEVEL >
1
)
static
f_picture_data_t
pf_picture_data
[
5
]
=
static
f_picture_data_t
pf_picture_data
[
5
]
=
{
NULL
,
vpar_PictureData1I
,
vpar_PictureData1P
,
vpar_PictureData1B
,
{
NULL
,
vpar_PictureData1I
,
vpar_PictureData1P
,
vpar_PictureData1B
,
vpar_PictureData1D
};
vpar_PictureData1D
};
...
...
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