Skip to content

Commit

Permalink
libstagefright: Enable meta mode for 7x27a video encoder
Browse files Browse the repository at this point in the history
msm7627a family of chipsets supports only one input frame at
one time. camera expects the input frame to be released before
sending another frame. so send one input buffer and available
output bufefrs to video encoder component. Release the input
buffer to camera (to get another frame) after receiving input
frame done callback from video encoder component.

Change-Id: I8fbc911f046ff7e2a3047dd65d8c09ac2d8608e1
  • Loading branch information
Mahesh Lanka authored and KonstaT committed Sep 14, 2013
1 parent 7e46eb5 commit 2eb7345
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions media/libmediaplayerservice/StagefrightRecorder.cpp
Expand Up @@ -1614,8 +1614,18 @@ status_t StagefrightRecorder::setupVideoEncoder(
CHECK_EQ(client.connect(), (status_t)OK);

uint32_t encoder_flags = 0;
#ifdef QCOM_HARDWARE
char value[PROPERTY_VALUE_MAX];
#endif
if (mIsMetaDataStoredInVideoBuffers) {
encoder_flags |= OMXCodec::kStoreMetaDataInVideoBuffers;
#ifdef QCOM_HARDWARE
if (property_get("ro.board.platform", value, "0")
&& (!strncmp(value, "msm7x27a", sizeof("msm7x27a") - 1))) {
ALOGW("msm7627 family of chipsets supports, only one buffer at a time");
encoder_flags |= OMXCodec::kOnlySubmitOneInputBufferAtOneTime;
}
#endif
}

// Do not wait for all the input buffers to become available.
Expand Down

0 comments on commit 2eb7345

Please sign in to comment.