Update raw decoder sample and bitrate limits
Support up to 384 kHz sampling rate, and update the bitrate limit
according, since it wasn't even high enough to begin with.
Bug: 133475669
Test: test file
Change-Id: I9a3c578f06ae591c2dffa0f5985b769591703b93
diff --git a/media/codec2/components/raw/C2SoftRawDec.cpp b/media/codec2/components/raw/C2SoftRawDec.cpp
index 8e94a18..95eb909 100644
--- a/media/codec2/components/raw/C2SoftRawDec.cpp
+++ b/media/codec2/components/raw/C2SoftRawDec.cpp
@@ -58,7 +58,7 @@
addParameter(
DefineParam(mSampleRate, C2_PARAMKEY_SAMPLE_RATE)
.withDefault(new C2StreamSampleRateInfo::output(0u, 44100))
- .withFields({C2F(mSampleRate, value).inRange(8000, 192000)})
+ .withFields({C2F(mSampleRate, value).inRange(8000, 384000)})
.withSetter((Setter<decltype(*mSampleRate)>::StrictValueWithNoDeps))
.build());
@@ -72,7 +72,7 @@
addParameter(
DefineParam(mBitrate, C2_PARAMKEY_BITRATE)
.withDefault(new C2StreamBitrateInfo::input(0u, 64000))
- .withFields({C2F(mBitrate, value).inRange(1, 10000000)})
+ .withFields({C2F(mBitrate, value).inRange(1, 98304000)})
.withSetter(Setter<decltype(*mBitrate)>::NonStrictValueWithNoDeps)
.build());