summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLakshman Gowda <lakshman79@ti.com>2011-09-29 17:47:35 -0700
committerAndreas Huber <andih@google.com>2011-10-05 10:29:27 -0700
commitd20bf0676d6db8f12edcd2307f82409c076c7015 (patch)
treef8d91ec301e522a273fae3bf85cf8e6483cb66ed /include
parentd3523f89a867afa111bb332887bf006ec3ae93e6 (diff)
downloadframeworks_av-d20bf0676d6db8f12edcd2307f82409c076c7015.zip
frameworks_av-d20bf0676d6db8f12edcd2307f82409c076c7015.tar.gz
frameworks_av-d20bf0676d6db8f12edcd2307f82409c076c7015.tar.bz2
Set crop params to ANative Window during Initialization.
The native_window_set_crop() is called when port reconfig event callback comes from decoder's and crop parameters are changed from default getconfig() OMX_IndexConfigCommonOutputCrop values. Since the default crop params are same as port reconfig crop params, the native_window_set_crop() is not called, hence resulting in displaying the whole frame(paddedWidth x paddedHeight). By calling native_window_set_crop() during initilaization of output port of decoder ensures in setting up ANative window to crop region. Change-Id: I68926464a1f5c7e6053804615c8b9bd32ea85688 Signed-off-by: Lakshman Gowda <lakshman79@ti.com>
Diffstat (limited to 'include')
-rw-r--r--include/media/stagefright/OMXCodec.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/media/stagefright/OMXCodec.h b/include/media/stagefright/OMXCodec.h
index 21b8c74..0d5a726 100644
--- a/include/media/stagefright/OMXCodec.h
+++ b/include/media/stagefright/OMXCodec.h
@@ -319,6 +319,8 @@ private:
void initOutputFormat(const sp<MetaData> &inputFormat);
status_t initNativeWindow();
+ void initNativeWindowCrop();
+
void dumpPortStatus(OMX_U32 portIndex);
status_t configureCodec(const sp<MetaData> &meta);