Skip to content

Commit 9c2d2ae

Browse files
nowrepXinfengZhang
authored andcommitted
va_dec_av1: Add max_frame_width/height_minus_1
1 parent bb8a9eb commit 9c2d2ae

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
@@ -5421,6 +5421,9 @@ static void va_TraceVAPictureParameterBufferAV1(
54215421
va_TraceMsg(trace_ctx, "\t\twm[%d].invalid = %d:\n", i, p->wm[i].invalid);
54225422
}
54235423

5424+
va_TraceMsg(trace_ctx, "\tmax_frame_width_minus_1 = %d\n", p->max_frame_width_minus_1);
5425+
va_TraceMsg(trace_ctx, "\tmax_frame_height_minus_1 = %d\n", p->max_frame_height_minus_1);
5426+
54245427
va_TraceMsg(trace_ctx, NULL);
54255428

54265429
return;

0 commit comments

Comments
 (0)