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
fdcd1cca
Commit
fdcd1cca
authored
Feb 20, 2001
by
Christophe Massiot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor optimizations in the video decoder.
parent
290dc45a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
8 deletions
+12
-8
include/video.h
include/video.h
+3
-1
plugins/motion/vdec_motion_common.c
plugins/motion/vdec_motion_common.c
+5
-3
src/video_output/video_output.c
src/video_output/video_output.c
+3
-0
src/video_parser/video_parser.c
src/video_parser/video_parser.c
+1
-4
No files found.
include/video.h
View file @
fdcd1cca
...
...
@@ -57,8 +57,10 @@ typedef struct picture_s
/* Picture static properties - those properties are fixed at initialization
* and should NOT be modified */
int
i_width
;
/* picture width */
int
i_height
;
/* picture height */
int
i_chroma_width
;
/* chroma width */
int
i_height
;
/* picture height */
int
i_size
;
/* number of pels */
int
i_chroma_size
;
/* number of chroma pels */
/* Picture dynamic properties - those properties can be changed by the
* decoder */
...
...
plugins/motion/vdec_motion_common.c
View file @
fdcd1cca
...
...
@@ -2,7 +2,7 @@
* vdec_motion_common.c : common motion compensation routines common
*****************************************************************************
* Copyright (C) 1999, 2000 VideoLAN
* $Id: vdec_motion_common.c,v 1.
4 2001/02/19 19:08:59
massiot Exp $
* $Id: vdec_motion_common.c,v 1.
5 2001/02/20 15:03:00
massiot Exp $
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
* Jean-Marc Dressler <polux@via.ecp.fr>
...
...
@@ -207,7 +207,8 @@ static __inline__ void Motion420(
+
b_source_field
)
*
p_mb
->
p_picture
->
i_width
+
(
i_mv_y
>>
1
)
*
i_l_stride
;
if
(
i_source_offset
>=
p_source
->
i_width
*
p_source
->
i_height
)
if
(
i_source_offset
>=
p_source
->
i_size
)
{
intf_WarnMsg
(
2
,
"Bad motion vector (lum)"
);
return
;
...
...
@@ -234,7 +235,8 @@ static __inline__ void Motion420(
+
b_source_field
)
*
p_mb
->
p_picture
->
i_chroma_width
+
((
i_mv_y
/
2
)
>>
1
)
*
i_c_stride
;
if
(
i_source_offset
>=
(
p_source
->
i_width
*
p_source
->
i_height
)
/
4
)
if
(
i_source_offset
>=
p_source
->
i_chroma_size
)
{
intf_WarnMsg
(
2
,
"Bad motion vector (chroma)"
);
return
;
...
...
src/video_output/video_output.c
View file @
fdcd1cca
...
...
@@ -674,6 +674,9 @@ picture_t *vout_CreatePicture( vout_thread_t *p_vout, int i_type,
p_free_picture
->
i_width
=
i_width
;
p_free_picture
->
i_height
=
i_height
;
p_free_picture
->
i_chroma_width
=
i_chroma_width
;
p_free_picture
->
i_size
=
i_width
*
i_height
;
p_free_picture
->
i_chroma_size
=
i_chroma_width
*
i_height
;
p_free_picture
->
i_display_horizontal_offset
=
0
;
p_free_picture
->
i_display_vertical_offset
=
0
;
p_free_picture
->
i_display_width
=
i_width
;
...
...
src/video_parser/video_parser.c
View file @
fdcd1cca
...
...
@@ -2,7 +2,7 @@
* video_parser.c : video parser thread
*****************************************************************************
* Copyright (C) 1999, 2000 VideoLAN
* $Id: video_parser.c,v 1.7
5 2001/02/18 03:32:02 polux
Exp $
* $Id: video_parser.c,v 1.7
6 2001/02/20 15:03:00 massiot
Exp $
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
* Samuel Hocevar <sam@via.ecp.fr>
...
...
@@ -300,9 +300,6 @@ static int InitThread( vpar_thread_t *p_vpar )
#endif
/* Initialize lookup tables */
#if defined(MPEG2_COMPLIANT) && !defined(VDEC_DFT)
vpar_InitCrop
(
p_vpar
);
#endif
vpar_InitMbAddrInc
(
p_vpar
);
vpar_InitDCTTables
(
p_vpar
);
vpar_InitPMBType
(
p_vpar
);
...
...
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