Hi everybody,
I am using MDFDevVideo Record API(http://wiki.forum.nokia.com/index.ph...deo_Record_API), on a N95 8GB.
The problem is that the SetInputFormatL function failed with code error -5, while it works fine on a emulator.
This is the part of code where I use it ;
I found no help on the documentation or in internet, so I don't know what can I do ...Code:// Input format RDebug::Printf("Setting input format"); TSize size(LARGEUR,HAUTEUR); TUncompressedVideoFormat fmt; fmt.iDataFormat = EYuvRawData; fmt.iYuvFormat.iCoefficients = EYuvBt601Range1; // BT.601 coeffs, full rane fmt.iYuvFormat.iPattern = EYuv420Chroma1; //EYuv420Chroma2; fmt.iYuvFormat.iDataLayout = EYuvDataPlanar; fmt.iYuvFormat.iYuv2RgbMatrix = NULL; fmt.iYuvFormat.iRgb2YuvMatrix = NULL; fmt.iYuvFormat.iAspectRatioNum = 3; //1; fmt.iYuvFormat.iAspectRatioDenom = 4; //1; RDebug::Printf("Avant Setting SetinputFormatL 8"); TRAPD(err,iDvr->SetInputFormatL(iEnc, fmt, size)); //iDvr->SetInputFormatL(iEnc, fmt, size); RDebug::Printf("Apres Setting SetinputFormatL"); if ( err != KErrNone ) { //LFPRINT((_L("SetInputFormatL - yuv failed with %d"), err)); RDebug::Printf("SetInputFormatL -yuv failed with %d", err); TestComplete(err); }
Any suggestions can help me, thanks.



