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

Commit 19d400b4 authored by Harish Mahendrakar's avatar Harish Mahendrakar
Browse files

benchmark: Support "software" instance of codec2 service

If CreateFromService("default") fails, then get codec2client from
CreateFromService("software")

Bug: 147836127
Test: on Pixel 2, C2DecoderTest -P /data/local/tmp/MediaBenchmark/res/
Change-Id: Iedcaa3a462a5c27f5ef843ef1233c8d06ad3d1d1
parent dd8a4a8a
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -22,6 +22,9 @@
int32_t BenchmarkC2Common::setupCodec2() {
    ALOGV("In %s", __func__);
    mClient = android::Codec2Client::CreateFromService("default");
    if (!mClient) {
        mClient = android::Codec2Client::CreateFromService("software");
    }
    if (!mClient) return -1;

    std::shared_ptr<C2AllocatorStore> store = android::GetCodec2PlatformAllocatorStore();