mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-26 01:02:33 +00:00
avcodec/dovi_rpuenc: add flags
to ff_dovi_rpu_generate()
Will be used to control compression, encapsulation etc.
This commit is contained in:
parent
c62b364dcb
commit
1e6fdb89bd
@ -135,7 +135,7 @@ int ff_dovi_configure(DOVIContext *s, AVCodecContext *avctx);
|
||||
* including the EMDF header (profile 10) or NAL encapsulation (otherwise).
|
||||
*/
|
||||
int ff_dovi_rpu_generate(DOVIContext *s, const AVDOVIMetadata *metadata,
|
||||
uint8_t **out_rpu, int *out_size);
|
||||
int flags, uint8_t **out_rpu, int *out_size);
|
||||
|
||||
|
||||
/***************************************************
|
||||
|
@ -435,7 +435,7 @@ static void generate_ext_v2(PutBitContext *pb, const AVDOVIDmData *dm)
|
||||
}
|
||||
|
||||
int ff_dovi_rpu_generate(DOVIContext *s, const AVDOVIMetadata *metadata,
|
||||
uint8_t **out_rpu, int *out_size)
|
||||
int flags, uint8_t **out_rpu, int *out_size)
|
||||
{
|
||||
PutBitContext *pb = &(PutBitContext){0};
|
||||
const AVDOVIRpuDataHeader *hdr;
|
||||
|
@ -1294,7 +1294,7 @@ FF_ENABLE_DEPRECATION_WARNINGS
|
||||
const AVDOVIMetadata *metadata = (const AVDOVIMetadata *)sd->data;
|
||||
uint8_t *t35;
|
||||
int size;
|
||||
if ((res = ff_dovi_rpu_generate(&ctx->dovi, metadata, &t35, &size)) < 0)
|
||||
if ((res = ff_dovi_rpu_generate(&ctx->dovi, metadata, 0, &t35, &size)) < 0)
|
||||
return res;
|
||||
res = aom_img_add_metadata(rawimg, OBU_METADATA_TYPE_ITUT_T35,
|
||||
t35, size, AOM_MIF_ANY_FRAME);
|
||||
|
@ -541,7 +541,7 @@ static int eb_send_frame(AVCodecContext *avctx, const AVFrame *frame)
|
||||
const AVDOVIMetadata *metadata = (const AVDOVIMetadata *)sd->data;
|
||||
uint8_t *t35;
|
||||
int size;
|
||||
if ((ret = ff_dovi_rpu_generate(&svt_enc->dovi, metadata, &t35, &size)) < 0)
|
||||
if ((ret = ff_dovi_rpu_generate(&svt_enc->dovi, metadata, 0, &t35, &size)) < 0)
|
||||
return ret;
|
||||
ret = svt_add_metadata(headerPtr, EB_AV1_METADATA_TYPE_ITUT_T35, t35, size);
|
||||
av_free(t35);
|
||||
|
@ -789,7 +789,8 @@ static int libx265_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
|
||||
sd = av_frame_get_side_data(pic, AV_FRAME_DATA_DOVI_METADATA);
|
||||
if (ctx->dovi.cfg.dv_profile && sd) {
|
||||
const AVDOVIMetadata *metadata = (const AVDOVIMetadata *)sd->data;
|
||||
ret = ff_dovi_rpu_generate(&ctx->dovi, metadata, &x265pic.rpu.payload,
|
||||
ret = ff_dovi_rpu_generate(&ctx->dovi, metadata, 0,
|
||||
&x265pic.rpu.payload,
|
||||
&x265pic.rpu.payloadSize);
|
||||
if (ret < 0) {
|
||||
free_picture(ctx, &x265pic);
|
||||
|
Loading…
Reference in New Issue
Block a user