Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
e95de90d
Commit
e95de90d
authored
Jan 15, 2000
by
Stéphane Borel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* Un petit peu de d�buggage dans le video parser
parent
2408a923
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
18 deletions
+10
-18
include/vpar_blocks.h
include/vpar_blocks.h
+0
-2
src/video_parser/vpar_blocks.c
src/video_parser/vpar_blocks.c
+10
-16
No files found.
include/vpar_blocks.h
View file @
e95de90d
...
@@ -60,8 +60,6 @@ typedef struct
...
@@ -60,8 +60,6 @@ typedef struct
{
{
int
i_mb_type
,
i_motion_type
,
i_mv_count
,
i_mv_format
;
int
i_mb_type
,
i_motion_type
,
i_mv_count
,
i_mv_format
;
boolean_t
b_dmv
;
boolean_t
b_dmv
;
/* AddressIncrement information */
int
i_addr_inc
;
/* Macroblock Type */
/* Macroblock Type */
int
i_coded_block_pattern
;
int
i_coded_block_pattern
;
...
...
src/video_parser/vpar_blocks.c
View file @
e95de90d
...
@@ -820,23 +820,25 @@ static __inline__ void InitMacroblock( vpar_thread_t * p_vpar,
...
@@ -820,23 +820,25 @@ static __inline__ void InitMacroblock( vpar_thread_t * p_vpar,
static
__inline__
int
MacroblockAddressIncrement
(
vpar_thread_t
*
p_vpar
)
static
__inline__
int
MacroblockAddressIncrement
(
vpar_thread_t
*
p_vpar
)
{
{
/* Index in the lookup table mb_addr_inc */
/* Index in the lookup table mb_addr_inc */
int
i_index
=
ShowBits
(
&
p_vpar
->
bit_stream
,
11
);
int
i_index
=
ShowBits
(
&
p_vpar
->
bit_stream
,
11
);
p_vpar
->
mb
.
i_addr_inc
=
0
;
int
i_addr_inc
=
0
;
/* Test the presence of the escape character */
/* Test the presence of the escape character */
while
(
i_index
==
8
)
while
(
i_index
==
8
)
{
{
DumpBits
(
&
p_vpar
->
bit_stream
,
11
);
DumpBits
(
&
p_vpar
->
bit_stream
,
11
);
p_vpar
->
mb
.
i_addr_inc
+=
33
;
i_addr_inc
+=
33
;
i_index
=
ShowBits
(
&
p_vpar
->
bit_stream
,
11
);
i_index
=
ShowBits
(
&
p_vpar
->
bit_stream
,
11
);
}
}
/* Affect the value from the lookup table */
/* Affect the value from the lookup table */
p_vpar
->
mb
.
i_addr_inc
+=
p_vpar
->
pl_mb_addr_inc
[
i_index
].
i_value
;
i_addr_inc
+=
p_vpar
->
pl_mb_addr_inc
[
i_index
].
i_value
;
/* Dump the good number of bits */
/* Dump the good number of bits */
DumpBits
(
&
p_vpar
->
bit_stream
,
p_vpar
->
pl_mb_addr_inc
[
i_index
].
i_length
);
DumpBits
(
&
p_vpar
->
bit_stream
,
p_vpar
->
pl_mb_addr_inc
[
i_index
].
i_length
);
return
i_addr_inc
;
}
}
/*****************************************************************************
/*****************************************************************************
...
@@ -1067,17 +1069,11 @@ static void vpar_DecodeMPEG2Non( vpar_thread_t * p_vpar, macroblock_t * p_mb, in
...
@@ -1067,17 +1069,11 @@ static void vpar_DecodeMPEG2Non( vpar_thread_t * p_vpar, macroblock_t * p_mb, in
int
i_code
;
int
i_code
;
int
i_nc
;
int
i_nc
;
int
i_coef
;
int
i_coef
;
int
i_type
;
int
i_select
;
int
i_offset
;
int
i_run
;
int
i_run
;
int
i_level
;
int
i_level
;
boolean_t
b_intra
;
boolean_t
b_intra
;
boolean_t
b_sign
;
boolean_t
b_sign
;
/* Lookup table for the offset in the tables for ac coef decoding */
static
lookup_t
pl_offset_table
[
8
]
=
{
{
12
,
4
},
{
8
,
4
},
{
6
,
8
},
{
4
,
16
},
{
3
,
16
},
{
2
,
16
},
{
1
,
16
},
{
0
,
16
}
};
/* There is no special decodding for DC coefficient in non intra blocs
/* There is no special decodding for DC coefficient in non intra blocs
* except that we won't use exactly the same table B.14 note 3 & 4 */
* except that we won't use exactly the same table B.14 note 3 & 4 */
/* Decoding of the coefficients */
/* Decoding of the coefficients */
...
@@ -1088,8 +1084,10 @@ static void vpar_DecodeMPEG2Non( vpar_thread_t * p_vpar, macroblock_t * p_mb, in
...
@@ -1088,8 +1084,10 @@ static void vpar_DecodeMPEG2Non( vpar_thread_t * p_vpar, macroblock_t * p_mb, in
i_nc
=
0
;
i_nc
=
0
;
#endif
#endif
i_coef
=
0
;
b_intra
=
p_vpar
->
picture
.
b_intra_vlc_format
;
b_intra
=
p_vpar
->
picture
.
b_intra_vlc_format
;
for
(
i_dummy
=
1
;
i_dummy
<
64
;
i_dummy
++
)
for
(
i_dummy
=
0
;
i_dummy
<
64
;
i_dummy
++
)
{
{
i_code
=
ShowBits
(
&
p_vpar
->
bit_stream
,
16
);
i_code
=
ShowBits
(
&
p_vpar
->
bit_stream
,
16
);
i_run
=
(
*
p_vpar
->
pppl_dct_coef
[
b_intra
][
i_code
]).
i_run
;
i_run
=
(
*
p_vpar
->
pppl_dct_coef
[
b_intra
][
i_code
]).
i_run
;
...
@@ -1155,10 +1153,6 @@ static void vpar_DecodeMPEG2Intra( vpar_thread_t * p_vpar, macroblock_t * p_mb,
...
@@ -1155,10 +1153,6 @@ static void vpar_DecodeMPEG2Intra( vpar_thread_t * p_vpar, macroblock_t * p_mb,
/* Lookup Table for the chromatic component */
/* Lookup Table for the chromatic component */
static
int
pi_cc_index
[
12
]
=
{
0
,
0
,
0
,
0
,
1
,
2
,
1
,
2
,
1
,
2
};
static
int
pi_cc_index
[
12
]
=
{
0
,
0
,
0
,
0
,
1
,
2
,
1
,
2
,
1
,
2
};
/* Lookup table for the offset in the tables for ac coef decoding */
static
lookup_t
pl_offset_table
[
8
]
=
{
{
12
,
4
},
{
8
,
4
},
{
6
,
8
},
{
4
,
16
},
{
3
,
16
},
{
2
,
16
},
{
1
,
16
},
{
0
,
16
}
};
i_cc
=
pi_cc_index
[
i_b
];
i_cc
=
pi_cc_index
[
i_b
];
/* Determine whether it is luminance or not (chrominance) */
/* Determine whether it is luminance or not (chrominance) */
...
...
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