Use software encoder for time lapse capture.
Change-Id: I7f60eb1af95590c84b0cd98134f5a5a8963338dd
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user