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

Commit 61ba2cf2 authored by Vignesh Venkatasubramanian's avatar Vignesh Venkatasubramanian Committed by Ray Essick
Browse files

codec2: Add log message for the AV1 decoder

Add a log message about which AV1 decoder is being used.

Also remove the TODO for renaming the gav1 component.

Bug: 131989882
Bug: 130249450
Test: cts-tradefed run commandAndExit cts-dev --include-filter CtsMediaTestCases --module-arg "CtsMediaTestCases:include-filter:android.media.cts.DecoderTest#testAV1*" --module-arg "CtsMediaTestCases:include-filter:android.media.cts.AdaptivePlaybackTest#testAV1*"

Merged-In: I3eec15cc74d8ab8f9e6d4539a25407cf93d4efeb
Change-Id: I3eec15cc74d8ab8f9e6d4539a25407cf93d4efeb
parent 0f3e7425
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -340,6 +340,7 @@ status_t C2SoftAomDec::initDecoder() {
    aom_codec_flags_t flags;
    memset(&flags, 0, sizeof(aom_codec_flags_t));

    ALOGV("Using libaom AV1 software decoder.");
    aom_codec_err_t err;
    if ((err = aom_codec_dec_init(mCodecCtx, aom_codec_av1_dx(), &cfg, 0))) {
        ALOGE("av1 decoder failed to initialize. (%d)", err);
+1 −2
Original line number Diff line number Diff line
@@ -27,8 +27,6 @@

namespace android {

// TODO(vigneshv): This will be changed to c2.android.av1.decoder once this
// component is fully functional.
constexpr char COMPONENT_NAME[] = "c2.android.gav1.decoder";

class C2SoftGav1Dec::IntfImpl : public SimpleInterface<void>::BaseParams {
@@ -338,6 +336,7 @@ bool C2SoftGav1Dec::initDecoder() {
  libgav1::DecoderSettings settings = {};
  settings.threads = GetCPUCoreCount();

  ALOGV("Using libgav1 AV1 software decoder.");
  Libgav1StatusCode status = mCodecCtx->Init(&settings);
  if (status != kLibgav1StatusOk) {
    ALOGE("av1 decoder failed to initialize. status: %d.", status);