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

Commit 077cba41 authored by Nipun Kwatra's avatar Nipun Kwatra
Browse files

Use software encoder for time lapse capture.

Change-Id: I7f60eb1af95590c84b0cd98134f5a5a8963338dd
parent f91f2971
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -949,9 +949,11 @@ status_t StagefrightRecorder::setupVideoEncoder(const sp<MediaWriter>& writer) {
    OMXClient client;
    CHECK_EQ(client.connect(), OK);

    uint32_t encoder_flags = (mCaptureTimeLapse) ? OMXCodec::kPreferSoftwareCodecs : 0;
    sp<MediaSource> encoder = OMXCodec::Create(
            client.interface(), enc_meta,
            true /* createEncoder */, cameraSource);
            true /* createEncoder */, cameraSource,
            NULL, encoder_flags);
    if (encoder == NULL) {
        return UNKNOWN_ERROR;
    }