From 49b1ca63975d4f1865ca312ed9c9b5e0008e13e0 Mon Sep 17 00:00:00 2001 From: TatWai Chong Date: Fri, 10 Jun 2022 01:49:13 -0700 Subject: Update TOSA resize to match specification Attribute stride and shift are removed, and has new scale and border. For serializing int16 attributes, add a new member vector container and a building function to do so. Signed-off-by: TatWai Chong Change-Id: I6d101a37d294dcf0a4d5bbb6c64bfa3c49a98f9e --- include/attribute.def | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'include/attribute.def') diff --git a/include/attribute.def b/include/attribute.def index ea91869..b40a77b 100644 --- a/include/attribute.def +++ b/include/attribute.def @@ -65,13 +65,10 @@ DEF_ATTRIBUTE(Slice, 2, DEF_ATTRIBUTE(Tile, 1, int32_t, V, multiples) -DEF_ATTRIBUTE(Resize, 7, - int32_t, V, output_size, - int32_t, V, stride, - int32_t, V, offset, - int32_t, S, shift, - float, V, stride_fp, - float, V, offset_fp, +DEF_ATTRIBUTE(Resize, 4, + int16_t, V, scale, + int16_t, V, offset, + int16_t, V, border, ResizeMode, S, mode) DEF_ATTRIBUTE(Clamp, 4, -- cgit v1.2.1