mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-30 14:20:11 +01:00
frontends/va: Add VP9 decode ref/mode_deltas information
Reviewed-by: Ruijing Dong <ruijing.dong@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18944>
This commit is contained in:
parent
baad2575ae
commit
bb86bcad71
2 changed files with 4 additions and 2 deletions
|
|
@ -327,13 +327,13 @@ void vlVaDecoderVP9BitstreamHeader(vlVaContext *context, vlVaBuffer *buf)
|
|||
/* update_ref_delta */
|
||||
if (vp9_u(&vlc, 1))
|
||||
/* ref_deltas */
|
||||
vp9_s(&vlc, 6);
|
||||
context->desc.vp9.picture_parameter.ref_deltas[i] = vp9_s(&vlc, 6);
|
||||
}
|
||||
for (i = 0; i < 2; ++i) {
|
||||
/* update_mode_delta */
|
||||
if (vp9_u(&vlc, 1))
|
||||
/* mode_deltas */
|
||||
vp9_s(&vlc, 6);
|
||||
context->desc.vp9.picture_parameter.mode_deltas[i] = vp9_s(&vlc, 6);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -899,6 +899,8 @@ struct pipe_vp9_picture_desc
|
|||
int8_t uv_ac_delta_q;
|
||||
int8_t uv_dc_delta_q;
|
||||
uint8_t abs_delta;
|
||||
uint8_t ref_deltas[4];
|
||||
uint8_t mode_deltas[2];
|
||||
} picture_parameter;
|
||||
|
||||
struct {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue