Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
bitstream
Manage
Activity
Members
Labels
Plan
Issues
3
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN
bitstream
Commits
e3a4a99e
Commit
e3a4a99e
authored
1 year ago
by
Christophe Massiot
Browse files
Options
Downloads
Plain Diff
Merge branch 'kierank-scte104'
parents
757e0e6b
95930673
No related branches found
Branches containing commit
Tags
2.0.0
Tags containing commit
No related merge requests found
Pipeline
#447661
failed with stage
in 9 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scte/104.h
+52
-0
52 additions, 0 deletions
scte/104.h
with
52 additions
and
0 deletions
scte/104.h
+
52
−
0
View file @
e3a4a99e
...
...
@@ -40,6 +40,14 @@ extern "C"
{
#endif
/*****************************************************************************
* SCTE 104 - result codes
*****************************************************************************/
#define SCTE104_RESULT_SUCCESSFUL 100
#define SCTE104_RESULT_INVALID_MESSAGE_SIZE 114
#define SCTE104_RESULT_INVALID_MESSAGE_SYNTAX 115
/*****************************************************************************
* SCTE 104 - timestamp structure
*****************************************************************************/
...
...
@@ -175,6 +183,8 @@ static inline void scte104t_set_gpi_edge(uint8_t *p, uint8_t i_gpi_edge)
#define SCTE104_OPID_INIT_RESPONSE_DATA 0x0002
#define SCTE104_OPID_ALIVE_REQUEST_DATA 0x0003
#define SCTE104_OPID_ALIVE_RESPONSE_DATA 0x0004
#define SCTE104_OPID_INJECT_RESPONSE 0x0007
#define SCTE104_OPID_INJECT_COMPLETE_RESPONSE 0x0008
#define SCTE104_OPID_INJECT_SECTION 0x0100
#define SCTE104_OPID_SPLICE 0x0101
#define SCTE104_OPID_SPLICE_NULL 0x0102
...
...
@@ -430,6 +440,48 @@ static inline bool scte104m_validate(const uint8_t *p, const int buf_size)
return
true
;
}
/*****************************************************************************
* SCTE-104 : inject_response_data
*****************************************************************************/
#define SCTE104IRD_HEADER_SIZE 1
static
inline
uint8_t
scte104ird_get_message_number
(
const
uint8_t
*
p
)
{
return
p
[
0
];
}
static
inline
void
scte104ird_set_message_number
(
uint8_t
*
p
,
uint8_t
i_message_number
)
{
p
[
0
]
=
i_message_number
;
}
/*****************************************************************************
* SCTE-104 : inject_complete_response_data
*****************************************************************************/
#define SCTE104ICRD_HEADER_SIZE 2
static
inline
uint8_t
scte104icrd_get_message_number
(
const
uint8_t
*
p
)
{
return
p
[
0
];
}
static
inline
void
scte104icrd_set_message_number
(
uint8_t
*
p
,
uint8_t
i_message_number
)
{
p
[
0
]
=
i_message_number
;
}
static
inline
uint8_t
scte104icrd_get_cue_message_count
(
const
uint8_t
*
p
)
{
return
p
[
1
];
}
static
inline
void
scte104icrd_set_cue_message_count
(
uint8_t
*
p
,
uint8_t
i_cue_message_count
)
{
p
[
1
]
=
i_cue_message_count
;
}
/*****************************************************************************
* SCTE-104 : splice_request_data
*****************************************************************************/
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment