gav1: Increase max supported resolution to 4096x4096
This brings the AV1 decoder in line with other modern codecs. It
also helps the software decoder to decode most practical AVIF
images.
Bug: 141654151
Test: Media CTS tests still pass
Merged-In: Iedbd41f2336585a5d769b1d9c94e40d6e0d155ed
Change-Id: I394e3e652bdb9f4cf5e9f7767d2d31e09aaf7381
diff --git a/media/codec2/components/gav1/C2SoftGav1Dec.cpp b/media/codec2/components/gav1/C2SoftGav1Dec.cpp
index 2fa4f25..44d0049 100644
--- a/media/codec2/components/gav1/C2SoftGav1Dec.cpp
+++ b/media/codec2/components/gav1/C2SoftGav1Dec.cpp
@@ -51,8 +51,8 @@
DefineParam(mSize, C2_PARAMKEY_PICTURE_SIZE)
.withDefault(new C2StreamPictureSizeInfo::output(0u, 320, 240))
.withFields({
- C2F(mSize, width).inRange(2, 2048, 2),
- C2F(mSize, height).inRange(2, 2048, 2),
+ C2F(mSize, width).inRange(2, 4096, 2),
+ C2F(mSize, height).inRange(2, 4096, 2),
})
.withSetter(SizeSetter)
.build());