Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
6813a07a
Commit
6813a07a
authored
Dec 30, 1999
by
Stéphane Borel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* Modifications de quelques erreurs sur le parseur
parent
2c65bd98
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
19 deletions
+31
-19
include/vpar_headers.h
include/vpar_headers.h
+4
-4
src/video_parser/video_parser.c
src/video_parser/video_parser.c
+5
-0
src/video_parser/vpar_headers.c
src/video_parser/vpar_headers.c
+22
-15
No files found.
include/vpar_headers.h
View file @
6813a07a
...
@@ -60,9 +60,9 @@ typedef struct sequence_s
...
@@ -60,9 +60,9 @@ typedef struct sequence_s
boolean_t
b_copyright_flag
;
/* Whether the following
boolean_t
b_copyright_flag
;
/* Whether the following
information is significant
information is significant
or not. */
or not. */
u8
i_copyright_id
entifier
;
u8
i_copyright_id
;
boolean_t
b_original
_or_copy
;
boolean_t
b_original
;
u64
i_copyright_n
umber
;
u64
i_copyright_n
b
;
}
sequence_t
;
}
sequence_t
;
/*****************************************************************************
/*****************************************************************************
...
@@ -78,7 +78,7 @@ typedef struct picture_parsing_s
...
@@ -78,7 +78,7 @@ typedef struct picture_parsing_s
boolean_t
b_frame_pred_frame_dct
,
b_q_scale_type
;
boolean_t
b_frame_pred_frame_dct
,
b_q_scale_type
;
boolean_t
b_alternate_scan
,
b_progressive_frame
;
boolean_t
b_alternate_scan
,
b_progressive_frame
;
boolean_t
b_top_field_first
,
b_concealment_mv
;
boolean_t
b_top_field_first
,
b_concealment_mv
;
boolean
-
t
b_repeat_first_field
;
boolean
_
t
b_repeat_first_field
;
int
i_lum_incr
,
i_chroma_incr
;
int
i_lum_incr
,
i_chroma_incr
;
/* Used for second field management */
/* Used for second field management */
...
...
src/video_parser/video_parser.c
View file @
6813a07a
...
@@ -183,6 +183,11 @@ static int InitThread( vpar_thread_t *p_vpar )
...
@@ -183,6 +183,11 @@ static int InitThread( vpar_thread_t *p_vpar )
p_vpar
->
sequence
.
chroma_intra_quant
.
b_allocated
=
FALSE
;
p_vpar
->
sequence
.
chroma_intra_quant
.
b_allocated
=
FALSE
;
p_vpar
->
sequence
.
chroma_nonintra_quant
.
b_allocated
=
FALSE
;
p_vpar
->
sequence
.
chroma_nonintra_quant
.
b_allocated
=
FALSE
;
p_vpar
->
sequence
.
i_frame_number
=
0
;
p_vpar
->
sequence
.
i_frame_number
=
0
;
/* Initialize copyright information */
p_vpar
->
sequence
.
b_copyright_flag
=
0
;
p_vpar
->
sequence
.
b_original
=
0
;
p_vpar
->
sequence
.
i_copyright_id
=
0
;
p_vpar
->
sequence
.
i_copyright_nb
=
0
;
/* Initialize other properties */
/* Initialize other properties */
#ifdef STATS
#ifdef STATS
...
...
src/video_parser/vpar_headers.c
View file @
6813a07a
...
@@ -714,8 +714,15 @@ static void ExtensionAndUserData( vpar_thread_t * p_vpar )
...
@@ -714,8 +714,15 @@ static void ExtensionAndUserData( vpar_thread_t * p_vpar )
static
void
SequenceDisplayExtension
(
vpar_thread_t
*
p_vpar
)
static
void
SequenceDisplayExtension
(
vpar_thread_t
*
p_vpar
)
{
{
/* We don't care sequence_display_extension. */
/* We don't care sequence_display_extension. */
DumpBits32
(
&
p_vpar
->
bit_stream
);
/* video_format */
DumpBits
(
&
p_vpar
->
bit_stream
,
25
);
DumpBits
(
&
p_vpar
->
bit_stream
,
3
);
if
(
GetBits
(
&
p_vpar
->
bit_stream
,
1
)
)
{
/* Three bytes for color_desciption */
DumpBits
(
&
p_vpar
->
bit_stream
,
24
);
}
/* display_horizontal and vertical_size and a marker_bit */
DumpBits
(
&
p_vpar
->
bit_stream
,
29
);
}
}
...
@@ -791,8 +798,8 @@ static void QuantMatrixExtension( vpar_thread_t * p_vpar )
...
@@ -791,8 +798,8 @@ static void QuantMatrixExtension( vpar_thread_t * p_vpar )
static
void
SequenceScalableExtension
(
vpar_thread_t
*
p_vpar
)
static
void
SequenceScalableExtension
(
vpar_thread_t
*
p_vpar
)
{
{
/* We don't care about anything scalable. */
/* We don't care about anything scalable
except the scalable mode
. */
switch
(
GetBits
(
&
p_vpar
->
bit_stream
,
2
)
)
switch
(
p_vpar
->
sequence
.
i_scalable_mode
=
GetBits
(
&
p_vpar
->
bit_stream
,
2
)
)
/* The length of the structure depends on the value of the scalable_mode */
/* The length of the structure depends on the value of the scalable_mode */
{
{
case
1
:
case
1
:
...
@@ -820,7 +827,7 @@ static void PictureDisplayExtension( vpar_thread_t * p_vpar )
...
@@ -820,7 +827,7 @@ static void PictureDisplayExtension( vpar_thread_t * p_vpar )
nb
=
p_vpar
->
sequence
.
b_progressive
?
p_vpar
->
sequence
.
b_progressive
+
nb
=
p_vpar
->
sequence
.
b_progressive
?
p_vpar
->
sequence
.
b_progressive
+
p_vpar
->
picture
.
b_repeat_first_field
+
p_vpar
->
picture
.
b_repeat_first_field
+
p_vpar
->
picture
.
b_top_field_first
p_vpar
->
picture
.
b_top_field_first
:
(
(
p_vpar
->
picture
.
i_structure
+
1
)
/
2
)
+
:
(
p_vpar
->
picture
.
b_frame_structure
+
1
)
+
p_vpar
->
picture
.
b_repeat_first_field
;
p_vpar
->
picture
.
b_repeat_first_field
;
DumpBits
(
&
p_vpar
->
bit_stream
,
34
*
nb
);
DumpBits
(
&
p_vpar
->
bit_stream
,
34
*
nb
);
}
}
...
@@ -830,7 +837,7 @@ static void PictureDisplayExtension( vpar_thread_t * p_vpar )
...
@@ -830,7 +837,7 @@ static void PictureDisplayExtension( vpar_thread_t * p_vpar )
* PictureSpatialScalableExtension *
* PictureSpatialScalableExtension *
*****************************************************************************/
*****************************************************************************/
static
void
PictureS
calablePictur
eExtension
(
vpar_thread_t
*
p_vpar
)
static
void
PictureS
patialScalabl
eExtension
(
vpar_thread_t
*
p_vpar
)
{
{
/* That's scalable, so we trash it */
/* That's scalable, so we trash it */
DumpBits32
(
&
p_vpar
->
bit_stream
);
DumpBits32
(
&
p_vpar
->
bit_stream
);
...
@@ -855,25 +862,25 @@ static void PictureTemporalScalableExtension( vpar_thread_t * p_vpar )
...
@@ -855,25 +862,25 @@ static void PictureTemporalScalableExtension( vpar_thread_t * p_vpar )
static
void
CopytrightExtension
(
vpar_thread_t
*
p_vpar
)
static
void
CopytrightExtension
(
vpar_thread_t
*
p_vpar
)
{
{
u32
copyright_number_1
,
copyright_number_2
;
u32
i_copyright_nb_1
,
i_copyright_nb_2
;
/* local integers */
p_vpar
->
sequence
.
copyright_flag
=
GetBits
(
&
p_vpar
->
bit_stream
,
1
);
p_vpar
->
sequence
.
b_
copyright_flag
=
GetBits
(
&
p_vpar
->
bit_stream
,
1
);
/* A flag that says whether the copyright information is significant */
/* A flag that says whether the copyright information is significant */
p_vpar
->
sequence
.
copyright_identifier
=
GetBits
(
&
p_vpar
->
bit_stream
,
8
);
p_vpar
->
sequence
.
i_copyright_id
=
GetBits
(
&
p_vpar
->
bit_stream
,
8
);
/* An identifier compliant with ISO/CEI JTC 1/SC 29 */
/* An identifier compliant with ISO/CEI JTC 1/SC 29 */
p_vpar
->
sequence
.
original_or_copy
=
GetBits
(
&
p_vpar
->
bit_stream
,
1
);
p_vpar
->
sequence
.
b_original
=
GetBits
(
&
p_vpar
->
bit_stream
,
1
);
/* Reserved bits */
/* Reserved bits */
DumpBits
(
&
p_vpar
->
bit_stream
,
8
);
DumpBits
(
&
p_vpar
->
bit_stream
,
8
);
/* The copyright_number is split in three parts */
/* The copyright_number is split in three parts */
/* first part */
/* first part */
copyright_number
_1
=
GetBits
(
&
p_vpar
->
bit_stream
,
20
);
i_copyright_nb
_1
=
GetBits
(
&
p_vpar
->
bit_stream
,
20
);
DumpBits
(
&
p_vpar
->
bit_stream
,
1
);
DumpBits
(
&
p_vpar
->
bit_stream
,
1
);
/* second part */
/* second part */
copyright_number
_2
=
GetBits
(
&
p_vpar
->
bit_stream
,
22
);
i_copyright_nb
_2
=
GetBits
(
&
p_vpar
->
bit_stream
,
22
);
DumpBits
(
&
p_vpar
->
bit_stream
,
1
);
DumpBits
(
&
p_vpar
->
bit_stream
,
1
);
/* third part and sum */
/* third part and sum */
p_vpar
->
sequence
.
copyright_number
=
(
copyright_number
_1
<<
44
)
+
p_vpar
->
sequence
.
i_copyright_nb
=
(
i_copyright_nb
_1
<<
44
)
+
(
copyright_number
_2
<<
22
)
+
(
i_copyright_nb
_2
<<
22
)
+
(
GetBits
(
&
p_vpar
->
bit_stream
,
22
)
);
(
GetBits
(
&
p_vpar
->
bit_stream
,
22
)
);
}
}
...
...
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