diff options
author | Chih-Yu Huang <akahuang@google.com> | 2020-07-02 16:26:52 +0900 |
---|---|---|
committer | Chih-Yu Huang <akahuang@google.com> | 2020-07-03 10:14:37 +0900 |
commit | fa546d3397bcd3bf94f26e37b4d62ddb46227f45 (patch) | |
tree | 27caf6df6dc37fe51dd8ae36c8fbdf9f83cfa1ae /components | |
parent | dc952450309a0a16365bf4b6b62d6152b2d4df59 (diff) | |
download | v4l2_codec2-fa546d3397bcd3bf94f26e37b4d62ddb46227f45.tar.gz |
components: Polish some logs.
This CL adds or fixes some information at logging, not changing the
code logic.
Bug: 160110407
Test: m -j32
Change-Id: I97d2cd43a526e56000abcc16886b1f0f6e0f6b71
Diffstat (limited to 'components')
-rw-r--r-- | components/V4L2Decoder.cpp | 15 | ||||
-rw-r--r-- | components/VideoFramePool.cpp | 2 |
2 files changed, 10 insertions, 7 deletions
diff --git a/components/V4L2Decoder.cpp b/components/V4L2Decoder.cpp index 59e3b0c..6a60dda 100644 --- a/components/V4L2Decoder.cpp +++ b/components/V4L2Decoder.cpp @@ -329,10 +329,13 @@ void V4L2Decoder::flush() { } void V4L2Decoder::serviceDeviceTask(bool event) { - ALOGV("%s(event=%d) state=%s InputQueue:%zu+%zu/%zu, OutputQueue:%zu+%zu/%zu", __func__, event, - StateToString(mState), mInputQueue->FreeBuffersCount(), mInputQueue->QueuedBuffersCount(), - mInputQueue->AllocatedBuffersCount(), mOutputQueue->FreeBuffersCount(), - mOutputQueue->QueuedBuffersCount(), mOutputQueue->AllocatedBuffersCount()); + ALOGV("%s(event=%d) state=%s InputQueue(%s):%zu+%zu/%zu, OutputQueue(%s):%zu+%zu/%zu", __func__, + event, StateToString(mState), (mInputQueue->IsStreaming() ? "streamon" : "streamoff"), + mInputQueue->FreeBuffersCount(), mInputQueue->QueuedBuffersCount(), + mInputQueue->AllocatedBuffersCount(), + (mOutputQueue->IsStreaming() ? "streamon" : "streamoff"), + mOutputQueue->FreeBuffersCount(), mOutputQueue->QueuedBuffersCount(), + mOutputQueue->AllocatedBuffersCount()); ALOG_ASSERT(mTaskRunner->RunsTasksInCurrentSequence()); if (mState == State::Error) return; @@ -344,7 +347,7 @@ void V4L2Decoder::serviceDeviceTask(bool event) { media::V4L2ReadableBufferRef dequeuedBuffer; std::tie(success, dequeuedBuffer) = mInputQueue->DequeueBuffer(); if (!success) { - ALOGE("Failed to dequeue buffer from output queue."); + ALOGE("Failed to dequeue buffer from input queue."); onError(); return; } @@ -519,7 +522,7 @@ void V4L2Decoder::onVideoFrameReady(media::V4L2WritableBufferRef outputBuffer, } size_t bufferId = outputBuffer.BufferId(); - ALOGE("QBUF to output queue, bufferId=%zu", bufferId); + ALOGV("QBUF to output queue, bufferId=%zu", bufferId); std::move(outputBuffer).QueueDMABuf(frame->getFDs()); mFrameAtDevice.insert(std::make_pair(bufferId, std::move(frame))); diff --git a/components/VideoFramePool.cpp b/components/VideoFramePool.cpp index acda536..33e01e9 100644 --- a/components/VideoFramePool.cpp +++ b/components/VideoFramePool.cpp @@ -46,7 +46,7 @@ VideoFramePool::VideoFramePool(std::shared_ptr<C2BlockPool> blockPool, const med mMemoryUsage(isSecure ? C2MemoryUsage::READ_PROTECTED : C2MemoryUsage::CPU_READ, static_cast<uint64_t>(BufferUsage::VIDEO_DECODER)), mClientTaskRunner(std::move(taskRunner)) { - ALOGV("%s()", __func__); + ALOGV("%s(size=%dx%d)", __func__, size.width(), size.height()); ALOG_ASSERT(mClientTaskRunner->RunsTasksInCurrentSequence()); DCHECK(mBlockPool); DCHECK(mClientTaskRunner); |