Skip to content
Snippets Groups Projects
Commit a94478a4 authored by Benjamin Gaignard's avatar Benjamin Gaignard
Browse files

media: verisilicon: g2: Use common helpers to compute chroma and mv

offsets

HEVC and VP9 are running on the same hardware and share the same
chroma and motion vectors offset constraint.
Create common helpers functions for these computation.
Source and destination buffer height may not be the same because
alignment constraint are different so use destination height to
compute chroma offset because we target this buffer as hardware
output.
To be able to use the helpers in both VP9 HEVC code remove dec_params
and use context->bit_depth instead.

Signed-off-by: default avatarBenjamin Gaignard <benjamin.gaignard@collabora.com>
parent 5184d22e
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment