Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libdvbpsi
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
libdvbpsi
Commits
56eefbbe
Commit
56eefbbe
authored
Mar 15, 2015
by
Daniel Kamil Kozar
Committed by
Jean-Paul Saman
Mar 16, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Dump functionality for the
MPEG-4
descriptor in dvbinfo
Signed-off-by:
Jean-Paul Saman
<
jpsaman@videolan.org
>
parent
ab797e24
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
59 additions
and
0 deletions
+59
-0
examples/dvbinfo/libdvbpsi.c
examples/dvbinfo/libdvbpsi.c
+59
-0
No files found.
examples/dvbinfo/libdvbpsi.c
View file @
56eefbbe
...
@@ -982,6 +982,61 @@ static void DumpIBPDescriptor(const void *p_descriptor)
...
@@ -982,6 +982,61 @@ static void DumpIBPDescriptor(const void *p_descriptor)
printf
(
"Max GOP length: %"
PRIu16
"
\n
"
,
ibp_descriptor
->
i_max_gop_length
);
printf
(
"Max GOP length: %"
PRIu16
"
\n
"
,
ibp_descriptor
->
i_max_gop_length
);
}
}
static
const
char
*
MPEG4VideoProfileToString
(
dvbpsi_mpeg4_visual_profile_and_level_t
profile
)
{
switch
(
profile
)
{
case
DVBPSI_MPEG4V_PROFILE_SIMPLE_L1
:
return
"Simple Profile/Level 1"
;
case
DVBPSI_MPEG4V_PROFILE_SIMPLE_L2
:
return
"Simple Profile/Level 2"
;
case
DVBPSI_MPEG4V_PROFILE_SIMPLE_L3
:
return
"Simple Profile/Level 3"
;
case
DVBPSI_MPEG4V_PROFILE_SIMPLE_SCALABLE_L1
:
return
"Simple Scalable Profile/Level 1"
;
case
DVBPSI_MPEG4V_PROFILE_SIMPLE_SCALABLE_L2
:
return
"Simple Scalable Profile/Level 2"
;
case
DVBPSI_MPEG4V_PROFILE_CORE_L1
:
return
"Core Profile/Level 1"
;
case
DVBPSI_MPEG4V_PROFILE_CORE_L2
:
return
"Core Profile/Level 2"
;
case
DVBPSI_MPEG4V_PROFILE_MAIN_L2
:
return
"Main Profile/Level 2"
;
case
DVBPSI_MPEG4V_PROFILE_MAIN_L3
:
return
"Main Profile/Level 3"
;
case
DVBPSI_MPEG4V_PROFILE_MAIN_L4
:
return
"Main Profile/Level 4"
;
case
DVBPSI_MPEG4V_PROFILE_N_BIT_L2
:
return
"N-bit Profile/Level 2"
;
case
DVBPSI_MPEG4V_PROFILE_SCALABLE_TEXTURE_L1
:
return
"Scalable Texture Profile/Level 1"
;
case
DVBPSI_MPEG4V_PROFILE_SIMPLE_FACE_ANIMATION_L1
:
return
"Simple Face Animation Profile/Level 1"
;
case
DVBPSI_MPEG4V_PROFILE_SIMPLE_FACE_ANIMATION_L2
:
return
"Simple Face Animation Profile/Level 2"
;
case
DVBPSI_MPEG4V_PROFILE_SIMPLE_FBA_L1
:
return
"Simple FBA Profile/Level 1"
;
case
DVBPSI_MPEG4V_PROFILE_SIMPLE_FBA_L2
:
return
"Simple FBA Profile/Level 2"
;
case
DVBPSI_MPEG4V_PROFILE_BASIC_ANIMATED_TEXTURE_L1
:
return
"Basic Animated Texture Profile/Level 1"
;
case
DVBPSI_MPEG4V_PROFILE_BASIC_ANIMATED_TEXTURE_L2
:
return
"Basic Animated Texture Profile/Level 2"
;
case
DVBPSI_MPEG4V_PROFILE_HYBRID_L1
:
return
"Hybrid Profile/Level 1"
;
case
DVBPSI_MPEG4V_PROFILE_HYBRID_L2
:
return
"Hybrid Profile/Level 2"
;
case
DVBPSI_MPEG4V_PROFILE_ADV_REAL_TIME_SIMPLE_L1
:
return
"Advanced Real Time Simple Profile/Level 1"
;
case
DVBPSI_MPEG4V_PROFILE_ADV_REAL_TIME_SIMPLE_L2
:
return
"Advanced Real Time Simple Profile/Level 2"
;
case
DVBPSI_MPEG4V_PROFILE_ADV_REAL_TIME_SIMPLE_L3
:
return
"Advanced Real Time Simple Profile/Level 3"
;
case
DVBPSI_MPEG4V_PROFILE_ADV_REAL_TIME_SIMPLE_L4
:
return
"Advanced Real Time Simple Profile/Level 4"
;
case
DVBPSI_MPEG4V_PROFILE_CORE_SCALABLE_L1
:
return
"Core Scalable Profile/Level 1"
;
case
DVBPSI_MPEG4V_PROFILE_CORE_SCALABLE_L2
:
return
"Core Scalable Profile/Level 2"
;
case
DVBPSI_MPEG4V_PROFILE_CORE_SCALABLE_L3
:
return
"Core Scalable Profile/Level 3"
;
case
DVBPSI_MPEG4V_PROFILE_ADV_CODING_EFF_L1
:
return
"Advanced Coding Efficiency Profile/Level 1"
;
case
DVBPSI_MPEG4V_PROFILE_ADV_CODING_EFF_L2
:
return
"Advanced Coding Efficiency Profile/Level 2"
;
case
DVBPSI_MPEG4V_PROFILE_ADV_CODING_EFF_L3
:
return
"Advanced Coding Efficiency Profile/Level 3"
;
case
DVBPSI_MPEG4V_PROFILE_ADV_CODING_EFF_L4
:
return
"Advanced Coding Efficiency Profile/Level 4"
;
case
DVBPSI_MPEG4V_PROFILE_ADV_CORE_L1
:
return
"Advanced Core Profile/Level 1"
;
case
DVBPSI_MPEG4V_PROFILE_ADV_CORE_L2
:
return
"Advanced Core Profile/Level 2"
;
case
DVBPSI_MPEG4V_PROFILE_ADV_SCALABLE_TEXTURE_L1
:
return
"Advanced Scalable Texture/Level 1"
;
case
DVBPSI_MPEG4V_PROFILE_ADV_SCALABLE_TEXTURE_L2
:
return
"Advanced Scalable Texture/Level 2"
;
case
DVBPSI_MPEG4V_PROFILE_ADV_SCALABLE_TEXTURE_L3
:
return
"Advanced Scalable Texture/Level 3"
;
case
DVBPSI_MPEG4V_PROFILE_LAST
:
default:
return
"Reserved"
;
}
}
static
void
DumpMPEG4VideoDescriptor
(
const
void
*
p_descriptor
)
{
const
dvbpsi_mpeg4_video_dr_t
*
mpeg4_descriptor
=
p_descriptor
;
printf
(
"MPEG-4 Video Profile and Level : %s (0x%02x)
\n
"
,
MPEG4VideoProfileToString
(
mpeg4_descriptor
->
i_mpeg4_visual_profile_and_level
),
mpeg4_descriptor
->
i_mpeg4_visual_profile_and_level
);
}
/*****************************************************************************
/*****************************************************************************
* DumpSystemClockDescriptor
* DumpSystemClockDescriptor
*****************************************************************************/
*****************************************************************************/
...
@@ -1564,6 +1619,10 @@ static void DumpDescriptor(dvbpsi_descriptor_t *p_descriptor)
...
@@ -1564,6 +1619,10 @@ static void DumpDescriptor(dvbpsi_descriptor_t *p_descriptor)
p_decoded
=
dvbpsi_DecodeIBPDr
(
p_descriptor
);
p_decoded
=
dvbpsi_DecodeIBPDr
(
p_descriptor
);
dump_dr_fn
=
DumpIBPDescriptor
;
dump_dr_fn
=
DumpIBPDescriptor
;
break
;
break
;
case
0x1b
:
p_decoded
=
dvbpsi_DecodeMPEG4VideoDr
(
p_descriptor
);
dump_dr_fn
=
DumpMPEG4VideoDescriptor
;
break
;
case
0x4c
:
case
0x4c
:
p_decoded
=
dvbpsi_DecodeTimeShiftedServiceDr
(
p_descriptor
);
p_decoded
=
dvbpsi_DecodeTimeShiftedServiceDr
(
p_descriptor
);
dump_dr_fn
=
DumpTimeShiftedServiceDescriptor
;
dump_dr_fn
=
DumpTimeShiftedServiceDescriptor
;
...
...
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