summaryrefslogtreecommitdiffstats
path: root/test/VTC
diff options
context:
space:
mode:
authorJorge E. Solano <jsolano@ti.com>2011-12-05 20:41:45 -0600
committerDaniel Levin <dendy@ti.com>2012-07-25 08:55:34 -0500
commit4f27dcc1fe44ffe28e861333b03e4930ad18c5b4 (patch)
tree44faace0dbdfb620cbd5a7dfd2c874052542b34f /test/VTC
parente22faacb2a48b3298a70aa9cdc186e05331dffa0 (diff)
downloadhardware_ti_omap4-4f27dcc1fe44ffe28e861333b03e4930ad18c5b4.zip
hardware_ti_omap4-4f27dcc1fe44ffe28e861333b03e4930ad18c5b4.tar.gz
hardware_ti_omap4-4f27dcc1fe44ffe28e861333b03e4930ad18c5b4.tar.bz2
Fix PIP mode and update automated testing
PIP was not exiting at the end of playback. Automated testing parameters were updated. Change-Id: Idc264f0ba98f3398e9930b3e8372d035f9ec6c52 Signed-off-by: Jorge E. Solano <jsolano@ti.com>
Diffstat (limited to 'test/VTC')
-rw-r--r--test/VTC/VTCTestApp.cpp28
1 files changed, 17 insertions, 11 deletions
diff --git a/test/VTC/VTCTestApp.cpp b/test/VTC/VTCTestApp.cpp
index c8c6297..65af490 100644
--- a/test/VTC/VTCTestApp.cpp
+++ b/test/VTC/VTCTestApp.cpp
@@ -235,12 +235,11 @@ int getMediaserverInfo(int *PID, int *VSIZE){
return 0;
}
-void my_pthread_cond_timedwait(pthread_cond_t *cond, pthread_mutex_t * mutex, int waitTimeInMilliSecs)
+int my_pthread_cond_timedwait(pthread_cond_t *cond, pthread_mutex_t * mutex, int waitTimeInMilliSecs)
{
if (waitTimeInMilliSecs == 0)
{
- pthread_cond_wait(cond, mutex);
- return;
+ return pthread_cond_wait(cond, mutex);
}
struct timespec ts;
@@ -250,7 +249,7 @@ void my_pthread_cond_timedwait(pthread_cond_t *cond, pthread_mutex_t * mutex, in
ts.tv_sec += (waitTimeInMilliSecs/1000);
else ts.tv_nsec += waitTimeInMilliSecs * 1000000;
- pthread_cond_timedwait(cond, mutex, &ts);
+ return pthread_cond_timedwait(cond, mutex, &ts);
}
int startPlayback() {
@@ -798,10 +797,14 @@ int test_PlaybackAndRecord_PIP()
startRecording();
while (bPlaying && bRecording && !mMediaPlayerThrewError) {
+ int rc;
pthread_mutex_lock(&mMutex);
- my_pthread_cond_timedwait(&mCond, &mMutex, 100);
+ rc = my_pthread_cond_timedwait(&mCond, &mMutex, 100);
pthread_mutex_unlock(&mMutex);
+ if (rc != ETIMEDOUT){
+ break; //exit while loop
+ }
/* Move preview */
cameraWinY +=2;
if ((cameraWinY+ cameraSurfaceHeight) > panelheight) cameraWinY = 0;
@@ -1045,7 +1048,7 @@ int test_ALL()
LOGD("\n\n###################################################### Recording. Filename: %s\n\n", mRecordFileName);
mPreviewWidth = 640;
mPreviewHeight = 480;
- mIFramesIntervalSec = 1;
+ mIFramesIntervalSec = 15;
mDuration = 30;
status = test_DEFAULT();
updatePassRate(status, true);
@@ -1100,8 +1103,8 @@ int test_ALL()
LOGD("\n\n###################################################### Recording. Filename: %s\n\n", mRecordFileName);
mPreviewWidth = 1280;
mPreviewHeight = 720;
- mVideoFrameRate = 15;
- mNewVideoFrameRate = 30;
+ mVideoFrameRate = 30;
+ mNewVideoFrameRate = 24;
status = test_ChangeFrameRate();
updatePassRate(status, true);
@@ -1109,7 +1112,7 @@ int test_ALL()
LOGD("\n\n###################################################### Recording. Filename: %s\n\n", mRecordFileName);
mPreviewWidth = 1280;
mPreviewHeight = 720;
- mVideoFrameRate = 24;
+ mVideoFrameRate = 15;
mNewVideoFrameRate = 30;
status = test_ChangeFrameRate();
updatePassRate(status, true);
@@ -1127,8 +1130,8 @@ int test_ALL()
LOGD("\n\n###################################################### Recording. Filename: %s\n\n", mRecordFileName);
mPreviewWidth = 640;
mPreviewHeight = 480;
- mVideoFrameRate = 15;
- mNewVideoFrameRate = 30;
+ mVideoFrameRate = 30;
+ mNewVideoFrameRate = 24;
status = test_ChangeFrameRate();
updatePassRate(status, true);
@@ -1323,6 +1326,9 @@ int test_ALL()
mVideoFrameRate = 15;
status = test_DEFAULT();
updatePassRate(status, true);
+ //Framerate and Bitrate change TC done, set default
+ mVideoFrameRate = 30;
+ mVideoBitRate = 1000000;
if(!mDisable1080pTesting){
sprintf(mRecordFileName, "/mnt/sdcard/vtc_videos/UTR_%03d1_1080p_30fps_from-5Mbps-to-100kbps.3gp", mTestCount);