Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(79)

Unified Diff: media/cdm/cdm_adapter.cc

Issue 1536783003: Improve logging output for DecoderBuffer and VideoFrame (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: less output (+rebase) Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« media/base/video_frame.cc ('K') | « media/base/video_frame.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cdm/cdm_adapter.cc
diff --git a/media/cdm/cdm_adapter.cc b/media/cdm/cdm_adapter.cc
index 0bce8b54d58047b0062ad165e914b77fb0a67603..d4eac5708e8c2bca058c7ccb6b8aec3dd9032197 100644
--- a/media/cdm/cdm_adapter.cc
+++ b/media/cdm/cdm_adapter.cc
@@ -661,6 +661,8 @@ void CdmAdapter::DecryptAndDecodeVideo(
std::vector<cdm::SubsampleEntry> subsamples;
scoped_ptr<VideoFrameImpl> video_frame(new VideoFrameImpl());
+ DVLOG(5) << __FUNCTION__
xhwang 2016/01/05 17:29:11 Move this to the beginning of this function? Also
jrummell 2016/01/12 20:00:36 Done.
+ << " encrypted: " << encrypted->AsHumanReadableString();
ToCdmInputBuffer(encrypted, &subsamples, &input_buffer);
cdm::Status status =
cdm_->DecryptAndDecodeFrame(input_buffer, video_frame.get());
@@ -682,6 +684,8 @@ void CdmAdapter::DecryptAndDecodeVideo(
frame_data + video_frame->PlaneOffset(VideoFrameImpl::kUPlane),
frame_data + video_frame->PlaneOffset(VideoFrameImpl::kVPlane),
base::TimeDelta::FromMicroseconds(video_frame->Timestamp()));
+ DVLOG(5) << __FUNCTION__
+ << " decoded_frame: " << decoded_frame->AsHumanReadableString();
xhwang 2016/01/05 17:29:11 We have only 5 cases of DVLOG(5) in the entire cod
jrummell 2016/01/12 20:00:36 Done.
video_decode_cb.Run(Decryptor::kSuccess, decoded_frame);
}
« media/base/video_frame.cc ('K') | « media/base/video_frame.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698