aboutsummaryrefslogtreecommitdiff
path: root/components/V4L2Decoder.cpp
diff options
context:
space:
mode:
authorChih-Yu Huang <akahuang@google.com>2020-07-02 16:26:52 +0900
committerChih-Yu Huang <akahuang@google.com>2020-07-03 10:14:37 +0900
commitfa546d3397bcd3bf94f26e37b4d62ddb46227f45 (patch)
tree27caf6df6dc37fe51dd8ae36c8fbdf9f83cfa1ae /components/V4L2Decoder.cpp
parentdc952450309a0a16365bf4b6b62d6152b2d4df59 (diff)
downloadv4l2_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/V4L2Decoder.cpp')
-rw-r--r--components/V4L2Decoder.cpp15
1 files changed, 9 insertions, 6 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)));