equal
deleted
inserted
replaced
22 #include "t_camera_display.h" |
22 #include "t_camera_display.h" |
23 #include "d_mmcsc.h" |
23 #include "d_mmcsc.h" |
24 |
24 |
25 _LIT(KTstLddFileName,"D_MMCSC.LDD"); |
25 _LIT(KTstLddFileName,"D_MMCSC.LDD"); |
26 _LIT(KCamLddFileName,"ECAMERASC.LDD"); |
26 _LIT(KCamLddFileName,"ECAMERASC.LDD"); |
|
27 |
|
28 #ifdef __WINSCW__ |
|
29 _LIT(KCamPddFileName,"_TEMPLATE_CAMERASC.PDD"); |
|
30 #else |
27 _LIT(KCamPddFileName,"CAMERASC.PDD"); |
31 _LIT(KCamPddFileName,"CAMERASC.PDD"); |
|
32 #endif |
|
33 |
28 _LIT(KCamFreePddExtension,".*"); |
34 _LIT(KCamFreePddExtension,".*"); |
29 |
35 |
30 const TInt KUnit0=0; |
36 const TInt KUnit0=0; |
31 const TInt KFrameRate=30; // Run the test at 30fps |
37 const TInt KFrameRate=30; // Run the test at 30fps |
32 |
38 |
295 iCamera.BufferIdToOffset(iCaptureMode,retId,retOffset); |
301 iCamera.BufferIdToOffset(iCaptureMode,retId,retOffset); |
296 if (retId>=0) |
302 if (retId>=0) |
297 { |
303 { |
298 TUint8* imgBase=iChunk[iCaptureMode].Base()+retOffset; |
304 TUint8* imgBase=iChunk[iCaptureMode].Base()+retOffset; |
299 TInt r=iDispHandler[iCaptureMode].Process(imgBase); |
305 TInt r=iDispHandler[iCaptureMode].Process(imgBase); |
|
306 |
|
307 #ifdef __WINSCW__ |
|
308 test(r==KErrNotSupported); |
|
309 #else |
300 test(r==KErrNone); |
310 test(r==KErrNone); |
|
311 #endif |
|
312 |
301 // Release the buffer |
313 // Release the buffer |
302 test(iCamera.ReleaseBuffer(retId)==KErrNone); |
314 test(iCamera.ReleaseBuffer(retId)==KErrNone); |
303 iFrameCount++; |
315 iFrameCount++; |
304 } |
316 } |
305 else |
317 else |