Loading media/libeffects/downmix/aidl/DownmixContext.cpp +4 −6 Original line number Diff line number Diff line Loading @@ -111,12 +111,11 @@ void DownmixContext::reset() { } IEffect::Status DownmixContext::downmixProcess(float* in, float* out, int samples) { LOG(VERBOSE) << __func__ << " in " << in << " out " << out << " sample " << samples; LOG(DEBUG) << __func__ << " in " << in << " out " << out << " sample " << samples; IEffect::Status status = {EX_ILLEGAL_ARGUMENT, 0, 0}; if (in == nullptr || out == nullptr || getCommon().input.frameCount != getCommon().output.frameCount || getInputFrameSize() == 0) { LOG(ERROR) << __func__ << " either in/out buffer invalid or framecount mismatch"; return status; } Loading @@ -129,7 +128,7 @@ IEffect::Status DownmixContext::downmixProcess(float* in, float* out, int sample return status; } LOG(VERBOSE) << __func__ << " start processing"; LOG(DEBUG) << __func__ << " start processing"; bool accumulate = false; int frames = samples * sizeof(float) / getInputFrameSize(); if (mType == Downmix::Type::STRIP) { Loading @@ -154,9 +153,8 @@ IEffect::Status DownmixContext::downmixProcess(float* in, float* out, int sample return status; } } int producedSamples = samples * getOutputFrameSize() / getInputFrameSize(); LOG(VERBOSE) << __func__ << " done processing generated samples " << producedSamples; return {STATUS_OK, samples, producedSamples}; LOG(DEBUG) << __func__ << " done processing"; return {STATUS_OK, samples, samples}; } void DownmixContext::init_params(const Parameter::Common& common) { Loading Loading
media/libeffects/downmix/aidl/DownmixContext.cpp +4 −6 Original line number Diff line number Diff line Loading @@ -111,12 +111,11 @@ void DownmixContext::reset() { } IEffect::Status DownmixContext::downmixProcess(float* in, float* out, int samples) { LOG(VERBOSE) << __func__ << " in " << in << " out " << out << " sample " << samples; LOG(DEBUG) << __func__ << " in " << in << " out " << out << " sample " << samples; IEffect::Status status = {EX_ILLEGAL_ARGUMENT, 0, 0}; if (in == nullptr || out == nullptr || getCommon().input.frameCount != getCommon().output.frameCount || getInputFrameSize() == 0) { LOG(ERROR) << __func__ << " either in/out buffer invalid or framecount mismatch"; return status; } Loading @@ -129,7 +128,7 @@ IEffect::Status DownmixContext::downmixProcess(float* in, float* out, int sample return status; } LOG(VERBOSE) << __func__ << " start processing"; LOG(DEBUG) << __func__ << " start processing"; bool accumulate = false; int frames = samples * sizeof(float) / getInputFrameSize(); if (mType == Downmix::Type::STRIP) { Loading @@ -154,9 +153,8 @@ IEffect::Status DownmixContext::downmixProcess(float* in, float* out, int sample return status; } } int producedSamples = samples * getOutputFrameSize() / getInputFrameSize(); LOG(VERBOSE) << __func__ << " done processing generated samples " << producedSamples; return {STATUS_OK, samples, producedSamples}; LOG(DEBUG) << __func__ << " done processing"; return {STATUS_OK, samples, samples}; } void DownmixContext::init_params(const Parameter::Common& common) { Loading