From 884946a23cfe804491ef6067bd9361371d7848fd Mon Sep 17 00:00:00 2001 From: Andreas Huber Date: Fri, 24 Jun 2011 13:15:30 -0700 Subject: Log video dimensions and crop rectangle. Change-Id: Ia56b09df4f6e9a14c4dcc499a6637fc39f8e3bb5 --- media/libstagefright/OMXCodec.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/media/libstagefright/OMXCodec.cpp b/media/libstagefright/OMXCodec.cpp index 314425f..cd97302 100644 --- a/media/libstagefright/OMXCodec.cpp +++ b/media/libstagefright/OMXCodec.cpp @@ -4216,6 +4216,10 @@ void OMXCodec::initOutputFormat(const sp &inputFormat) { mNode, OMX_IndexConfigCommonOutputCrop, &rect, sizeof(rect)); + CODEC_LOGI( + "video dimensions are %ld x %ld", + video_def->nFrameWidth, video_def->nFrameHeight); + if (err == OK) { CHECK_GE(rect.nLeft, 0); CHECK_GE(rect.nTop, 0); @@ -4230,6 +4234,10 @@ void OMXCodec::initOutputFormat(const sp &inputFormat) { rect.nTop, rect.nLeft + rect.nWidth - 1, rect.nTop + rect.nHeight - 1); + + CODEC_LOGI( + "Crop rect is %ld x %ld @ (%ld, %ld)", + rect.nWidth, rect.nHeight, rect.nLeft, rect.nTop); } else { mOutputFormat->setRect( kKeyCropRect, @@ -4238,7 +4246,6 @@ void OMXCodec::initOutputFormat(const sp &inputFormat) { video_def->nFrameHeight - 1); } } - break; } -- cgit v1.1