mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-08 06:09:50 +00:00
Merge commit 'a2ca8ed903'
* commit 'a2ca8ed903':
cbs_h264: Add utility functions to insert/delete SEI messages
Merged-by: Mark Thompson <sw@jkqxz.net>
This commit is contained in:
commit
77eba7bd99
2 changed files with 114 additions and 0 deletions
|
|
@ -22,6 +22,7 @@
|
|||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#include "cbs.h"
|
||||
#include "cbs_h2645.h"
|
||||
#include "h264.h"
|
||||
|
||||
|
|
@ -428,4 +429,22 @@ typedef struct CodedBitstreamH264Context {
|
|||
} CodedBitstreamH264Context;
|
||||
|
||||
|
||||
/**
|
||||
* Add an SEI message to an access unit.
|
||||
*/
|
||||
int ff_cbs_h264_add_sei_message(CodedBitstreamContext *ctx,
|
||||
CodedBitstreamFragment *access_unit,
|
||||
const H264RawSEIPayload *payload);
|
||||
|
||||
/**
|
||||
* Delete an SEI message from an access unit.
|
||||
*
|
||||
* Deletes from nal_unit, which must be an SEI NAL unit. If this is the
|
||||
* last message in nal_unit, also deletes it from access_unit.
|
||||
*/
|
||||
int ff_cbs_h264_delete_sei_message(CodedBitstreamContext *ctx,
|
||||
CodedBitstreamFragment *access_unit,
|
||||
CodedBitstreamUnit *nal_unit,
|
||||
int position);
|
||||
|
||||
#endif /* AVCODEC_CBS_H264_H */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue