Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c1c6e576 authored by Lajos Molnar's avatar Lajos Molnar Committed by android-build-merger
Browse files

Merge "MediaCodec: make setVideoScalingMode usable for IGBP-based clients"...

Merge "MediaCodec: make setVideoScalingMode usable for IGBP-based clients" into pi-dev am: 604064e8
am: 226687cb

Change-Id: Ie4ff2a9d4a268944d96b6dbed7a0eb734cd0cd71
parents 87c2b0d4 226687cb
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -742,7 +742,12 @@ status_t JMediaCodec::setParameters(const sp<AMessage> &msg) {

void JMediaCodec::setVideoScalingMode(int mode) {
    if (mSurfaceTextureClient != NULL) {
        // this works for components that queue to surface
        native_window_set_scaling_mode(mSurfaceTextureClient.get(), mode);
        // also signal via param for components that queue to IGBP
        sp<AMessage> msg = new AMessage;
        msg->setInt32("android._video-scaling", mode);
        (void)mCodec->setParameters(msg);
    }
}