diff options
author | Hangyu Kuang <hkuang@google.com> | 2019-06-02 04:27:11 -0700 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2019-06-02 04:27:11 -0700 |
commit | 6ec5abd30f995b6a501d7bfd5aba72d8575d0bfc (patch) | |
tree | 7eb5a1ea9d78a51a18daa85c45432f3f3d7ed374 | |
parent | 6895a2cadd4b48e0a249d95ddc4f4618763c15e1 (diff) | |
parent | ed5d5a7bec931314779486a0ced74aa5d1ffd9ba (diff) | |
download | av-6ec5abd30f995b6a501d7bfd5aba72d8575d0bfc.tar.gz |
[ECOService]: Handle output width/height from encoder.
am: ed5d5a7bec
Change-Id: Id2582706967d5c6e274d8d50a60dd7f2a889316d
-rw-r--r-- | media/eco/ECOSession.cpp | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/media/eco/ECOSession.cpp b/media/eco/ECOSession.cpp index 811e874..a7b919f 100644 --- a/media/eco/ECOSession.cpp +++ b/media/eco/ECOSession.cpp @@ -209,13 +209,25 @@ void ECOSession::processSessionStats(const ECOData& stats) { if (width != mWidth) { ECOLOGW("Codec width: %d, expected: %d", width, mWidth); } - ECOLOGV("codec width is %d", width); + ECOLOGV("codec input width is %d", width); } else if (!key.compare(ENCODER_INPUT_HEIGHT)) { int32_t height = std::get<int32_t>(value); if (height != mHeight) { ECOLOGW("Codec height: %d, expected: %d", height, mHeight); } - ECOLOGV("codec height is %d", height); + ECOLOGV("codec input height is %d", height); + } else if (!key.compare(ENCODER_OUTPUT_WIDTH)) { + mOutputWidth = std::get<int32_t>(value); + if (mOutputWidth != mWidth) { + ECOLOGW("Codec output width: %d, expected: %d", mOutputWidth, mWidth); + } + ECOLOGV("codec output width is %d", mOutputWidth); + } else if (!key.compare(ENCODER_OUTPUT_HEIGHT)) { + mOutputHeight = std::get<int32_t>(value); + if (mOutputHeight != mHeight) { + ECOLOGW("Codec output height: %d, expected: %d", mOutputHeight, mHeight); + } + ECOLOGV("codec output height is %d", mOutputHeight); } else { ECOLOGW("Unknown session stats key %s from provider.", key.c_str()); continue; |