Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fe3d1f5a authored by Hirokazu Honda's avatar Hirokazu Honda
Browse files

SoftVpxDec/SoftDav1dDec: Set KEY_PICTURE_SIZE to 4096x4096

This CL enables 4k video decoding with the c2 components of software
libvpx decoder and dav1 decoder.

Bug: 361390685
Test: Play 4k video in native Files app
Flag: EXEMPT bugfix

Change-Id: I79fabbde9098b35c57e3925a8e62c5a4012714f2
parent e78085de
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -139,8 +139,8 @@ class C2SoftDav1dDec::IntfImpl : public SimpleInterface<void>::BaseParams {
        addParameter(DefineParam(mMaxSize, C2_PARAMKEY_MAX_PICTURE_SIZE)
                             .withDefault(new C2StreamMaxPictureSizeTuning::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(MaxPictureSizeSetter, mSize)
                             .build());
+4 −4
Original line number Diff line number Diff line
@@ -69,8 +69,8 @@ public:
                DefineParam(mSize, C2_PARAMKEY_PICTURE_SIZE)
                .withDefault(new C2StreamPictureSizeInfo::output(0u, 320, 240))
                .withFields({
                    C2F(mSize, width).inRange(2, 2048),
                    C2F(mSize, height).inRange(2, 2048),
                    C2F(mSize, width).inRange(2, 4096),
                    C2F(mSize, height).inRange(2, 4096),
                })
                .withSetter(SizeSetter)
                .build());
@@ -167,8 +167,8 @@ public:
                DefineParam(mMaxSize, C2_PARAMKEY_MAX_PICTURE_SIZE)
                .withDefault(new C2StreamMaxPictureSizeTuning::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(MaxPictureSizeSetter, mSize)
                .build());