X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Finternal.h;h=000fe263cc2911dbfbb95a814822215c8799c8f1;hb=d4b1b3b06c210be9088eb0940acca0a914b6b916;hp=be54471ef6d622c5ffdbdf5dee88b205d5d3cc21;hpb=3fd5f09845e54bcd61a817b57c054d55f6b6fe5d;p=ffmpeg diff --git a/libavcodec/internal.h b/libavcodec/internal.h index be54471ef6d..000fe263cc2 100644 --- a/libavcodec/internal.h +++ b/libavcodec/internal.h @@ -345,4 +345,19 @@ AVCPBProperties *ff_add_cpb_side_data(AVCodecContext *avctx); int ff_side_data_set_encoder_stats(AVPacket *pkt, int quality, int64_t *error, int error_count, int pict_type); +/** + * Check AVFrame for A53 side data and allocate and fill SEI message with A53 info + * + * @param frame Raw frame to get A53 side data from + * @param prefix_len Number of bytes to allocate before SEI message + * @param data Pointer to a variable to store allocated memory + * Upon return the variable will hold NULL on error or if frame has no A53 info. + * Otherwise it will point to prefix_len uninitialized bytes followed by + * *sei_size SEI message + * @param sei_size Pointer to a variable to store generated SEI message length + * @return Zero on success, negative error code on failure + */ +int ff_alloc_a53_sei(const AVFrame *frame, size_t prefix_len, + void **data, size_t *sei_size); + #endif /* AVCODEC_INTERNAL_H */