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
ce68167e
Commit
ce68167e
authored
Dec 22, 1999
by
Christophe Massiot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
suite du parseur.
parent
54f82a15
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
64 additions
and
4 deletions
+64
-4
include/video_parser.h
include/video_parser.h
+12
-0
src/video_parser/vpar_headers.c
src/video_parser/vpar_headers.c
+52
-4
No files found.
include/video_parser.h
View file @
ce68167e
...
...
@@ -105,6 +105,18 @@ typedef struct vpar_thread_s
#define SEQUENCE_END_CODE 0x1B7
#define GROUP_START_CODE 0x1B8
/* extension start code IDs */
#define SEQUENCE_EXTENSION_ID 1
#define SEQUENCE_DISPLAY_EXTENSION_ID 2
#define QUANT_MATRIX_EXTENSION_ID 3
#define COPYRIGHT_EXTENSION_ID 4
#define SEQUENCE_SCALABLE_EXTENSION_ID 5
#define PICTURE_DISPLAY_EXTENSION_ID 7
#define PICTURE_CODING_EXTENSION_ID 8
#define PICTURE_SPATIAL_SCALABLE_EXTENSION_ID 9
#define PICTURE_TEMPORAL_SCALABLE_EXTENSION_ID 10
/*******************************************************************************
* Prototypes
*******************************************************************************/
...
...
src/video_parser/vpar_headers.c
View file @
ce68167e
...
...
@@ -383,7 +383,7 @@ static void SequenceHeader( vpar_thread_t * p_vpar )
*****************************************************************************/
static
void
GroupHeader
(
vpar_thread_t
*
p_vpar
)
{
/* Nothing to do, we don't care */
/* Nothing to do, we don't care
.
*/
DumpBits
(
&
p_vpar
->
bit_stream
,
27
);
ExtensionAndUserData
(
p_vpar
);
}
...
...
@@ -467,9 +467,57 @@ static void __inline__ ReferenceUpdate( vpar_thread_t * p_vpar,
*****************************************************************************/
static
void
ExtensionAndUserData
(
vpar_thread_t
*
p_vpar
)
{
/* Nothing to do, we don't care. */
DumpBits
(
&
p_vpar
->
bit_stream
,
27
);
ExtensionAndUserData
(
p_vpar
);
while
(
!
p_vpar
->
b_die
)
{
NextStartCode
(
p_vpar
);
switch
(
ShowBits
(
&
p_vpar
->
bit_stream
,
32
)
)
{
case
EXTENSION_START_CODE
:
DumpBits32
(
&
p_vpar
->
bit_stream
);
switch
(
GetBits
(
&
p_vpar
->
bit_stream
,
4
)
)
{
case
SEQUENCE_DISPLAY_EXTENSION_ID
:
SequenceDisplayExtension
(
p_vpar
);
break
;
case
QUANT_MATRIX_EXTENSION_ID
:
QuantMatrixExtension
(
p_vpar
);
break
;
case
SEQUENCE_SCALABLE_EXTENSION_ID
:
SequenceScalableExtension
(
p_vpar
);
break
;
case
PICTURE_DISPLAY_EXTENSION_ID
:
PictureDisplayExtension
(
p_vpar
);
break
;
case
PICTURE_SPATIAL_SCALABLE_EXTENSION_ID
:
PictureSpatialScalableExtension
(
p_vpar
);
break
;
case
PICTURE_TEMPORAL_SCALABLE_EXTENSION_ID
:
PictureTemporalScalableExtension
(
p_vpar
);
break
;
case
COPYRIGHT_EXTENSION_ID
:
CopyrightExtension
(
p_vpar
);
break
;
default:
}
break
;
case
USER_DATA_START_CODE
:
DumpBits32
(
&
p_vpar
->
bit_stream
);
/* Wait for the next start code */
break
;
default:
return
;
}
}
}
/*****************************************************************************
* SequenceDisplayExtension : Parse the sequence_display_extension structure
*****************************************************************************/
static
void
SequenceDisplayExtension
(
vpar_thread_t
*
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