aboutsummaryrefslogtreecommitdiff
path: root/include/attribute.def
diff options
context:
space:
mode:
authorTatWai Chong <tatwai.chong@arm.com>2022-06-10 01:49:13 -0700
committerTatWai Chong <tatwai.chong@arm.com>2022-08-03 22:08:06 +0000
commit49b1ca63975d4f1865ca312ed9c9b5e0008e13e0 (patch)
tree27a581a656a3c79d0250f4ca490c96aacbb8dfd6 /include/attribute.def
parent4417b428061276a88c41825f2e46e2dce387dd0a (diff)
downloadserialization_lib-49b1ca63975d4f1865ca312ed9c9b5e0008e13e0.tar.gz
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 <tatwai.chong@arm.com> Change-Id: I6d101a37d294dcf0a4d5bbb6c64bfa3c49a98f9e
Diffstat (limited to 'include/attribute.def')
-rw-r--r--include/attribute.def11
1 files changed, 4 insertions, 7 deletions
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,