summaryrefslogtreecommitdiffstats
path: root/media
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2011-06-27 11:14:12 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-06-27 11:14:12 -0700
commite5b2a43058438da3f5795dd9abf9419d640a004f (patch)
tree4ca5f8154754f8e38676d1f7116d64d31aed68e9 /media
parentbab4b56c93a3fc26767687bffd5d10c5250b35ea (diff)
parent884946a23cfe804491ef6067bd9361371d7848fd (diff)
downloadframeworks_av-e5b2a43058438da3f5795dd9abf9419d640a004f.zip
frameworks_av-e5b2a43058438da3f5795dd9abf9419d640a004f.tar.gz
frameworks_av-e5b2a43058438da3f5795dd9abf9419d640a004f.tar.bz2
Merge "Log video dimensions and crop rectangle."
Diffstat (limited to 'media')
-rw-r--r--media/libstagefright/OMXCodec.cpp9
1 files changed, 8 insertions, 1 deletions
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<MetaData> &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<MetaData> &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<MetaData> &inputFormat) {
video_def->nFrameHeight - 1);
}
}
-
break;
}