Skip to content

Commit a54607a

Browse files
committed
va_dec_av1: Add max_frame_width/height_minus_1
1 parent e4dc66b commit a54607a

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

va/va_dec_av1.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -621,10 +621,14 @@ typedef struct _VADecPictureParameterBufferAV1 {
621621
*/
622622
VAWarpedMotionParamsAV1 wm[7];
623623

624+
/** \brief corresponds to AV1 spec variable of the same name. */
625+
uint16_t max_frame_width_minus_1;
626+
uint16_t max_frame_height_minus_1;
627+
624628
/**@}*/
625629

626630
/** \brief Reserved bytes for future use, must be zero */
627-
uint32_t va_reserved[VA_PADDING_MEDIUM];
631+
uint32_t va_reserved[VA_PADDING_MEDIUM - 1];
628632
} VADecPictureParameterBufferAV1;
629633

630634

va/va_trace.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5411,6 +5411,9 @@ static void va_TraceVAPictureParameterBufferAV1(
54115411
va_TraceMsg(trace_ctx, "\t\twm[%d].invalid = %d:\n", i, p->wm[i].invalid);
54125412
}
54135413

5414+
va_TraceMsg(trace_ctx, "\tmax_frame_width_minus_1 = %d\n", p->max_frame_width_minus_1);
5415+
va_TraceMsg(trace_ctx, "\tmax_frame_height_minus_1 = %d\n", p->max_frame_height_minus_1);
5416+
54145417
va_TraceMsg(trace_ctx, NULL);
54155418

54165419
return;

0 commit comments

Comments
 (0)