Commit b065c71e authored by James Almer's avatar James Almer

Merge commit 'deefca02'

* commit 'deefca02':
  qsvenc: add the Access Unit Delimiter NAL Unit support
Merged-by: 's avatarJames Almer <jamrial@gmail.com>
parents 20608261 deefca02
...@@ -595,6 +595,7 @@ FF_ENABLE_DEPRECATION_WARNINGS ...@@ -595,6 +595,7 @@ FF_ENABLE_DEPRECATION_WARNINGS
if (q->recovery_point_sei >= 0) if (q->recovery_point_sei >= 0)
q->extco.RecoveryPointSEI = q->recovery_point_sei ? MFX_CODINGOPTION_ON : MFX_CODINGOPTION_OFF; q->extco.RecoveryPointSEI = q->recovery_point_sei ? MFX_CODINGOPTION_ON : MFX_CODINGOPTION_OFF;
q->extco.MaxDecFrameBuffering = q->max_dec_frame_buffering; q->extco.MaxDecFrameBuffering = q->max_dec_frame_buffering;
q->extco.AUDelimiter = q->aud ? MFX_CODINGOPTION_ON : MFX_CODINGOPTION_OFF;
} }
q->extparam_internal[q->nb_extparam_internal++] = (mfxExtBuffer *)&q->extco; q->extparam_internal[q->nb_extparam_internal++] = (mfxExtBuffer *)&q->extco;
......
...@@ -138,6 +138,8 @@ typedef struct QSVEncContext { ...@@ -138,6 +138,8 @@ typedef struct QSVEncContext {
int max_frame_size; int max_frame_size;
int max_slice_size; int max_slice_size;
int aud;
int single_sei_nal_unit; int single_sei_nal_unit;
int max_dec_frame_buffering; int max_dec_frame_buffering;
int trellis; int trellis;
......
...@@ -142,6 +142,9 @@ static const AVOption options[] = { ...@@ -142,6 +142,9 @@ static const AVOption options[] = {
{ "high" , NULL, 0, AV_OPT_TYPE_CONST, { .i64 = MFX_PROFILE_AVC_HIGH }, INT_MIN, INT_MAX, VE, "profile" }, { "high" , NULL, 0, AV_OPT_TYPE_CONST, { .i64 = MFX_PROFILE_AVC_HIGH }, INT_MIN, INT_MAX, VE, "profile" },
{ "a53cc" , "Use A53 Closed Captions (if available)", OFFSET(qsv.a53_cc), AV_OPT_TYPE_INT, {.i64 = 1}, 0, 1, VE}, { "a53cc" , "Use A53 Closed Captions (if available)", OFFSET(qsv.a53_cc), AV_OPT_TYPE_INT, {.i64 = 1}, 0, 1, VE},
{ "aud", "Insert the Access Unit Delimiter NAL", OFFSET(qsv.aud), AV_OPT_TYPE_INT, { .i64 = 0 }, 0, 1, VE},
{ NULL }, { NULL },
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment