diff options
| author | 2011-06-27 11:14:12 -0700 | |
|---|---|---|
| committer | 2011-06-27 11:14:12 -0700 | |
| commit | e67e99a9fb176348e7b008d37475786ef212374d (patch) | |
| tree | 486e5f0980042e79f65c641f0cb7206c173df739 | |
| parent | f7ee6692a56167e86c205355df4b3b7be1fae524 (diff) | |
| parent | f167f503c942eb04770d7916ee1196bb975f49bb (diff) | |
Merge "Log video dimensions and crop rectangle."
| -rw-r--r-- | media/libstagefright/OMXCodec.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/media/libstagefright/OMXCodec.cpp b/media/libstagefright/OMXCodec.cpp index 314425f8a241..cd97302c290b 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; } |