×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Nov 2007
    Posts
    49

    unknown errors in taking image and encoding

    Hi,
    I get the following errors ,
    but none of the lines are marked to represent where the errors are......



    1.Undefined symbol: 'CFbsBitmap::CFbsBitmap(void) (??0CFbsBitmap@@QAE@XZ)'[]
    2.Undefined symbol: 'class CImageEncoder * CImageEncoder:ataNewL(class HBufC8 * &, class TDesC8 const &, enum CImageEncoder::TOptions)

    3.Undefined symbol: 'class TSize CFbsBitmap::SizeInPixels(void) const (?SizeInPixels@CFbsBitmap@@QBE?AVTSize@@XZ)'[]
    4.Undefined symbol: 'int CFbsBitmap:uplicate(int) (?Duplicate@CFbsBitmap@@QAEHH@Z)'[]
    5.Undefined symbol: 'int CFbsBitmap::Handle(void) const (?Handle@CFbsBitmap@@QBEHXZ)'[]
    6.Undefined symbol: 'void CImageEncoder::Convert(class TRequestStatus *, class CFbsBitmap const &, class CFrameImageData const *) (?Convert@CImageEncoder@@QAEXPAVTRequestStatus@@ABVCFbsBitmap@@PBVCFrameImageData@@@Z)'[]

    I think probably errors are in 2 classes (which I have pasted below):- 1. TAKING image
    2. image encoding


    IMAGE TAKER CLASS
    ------------------------------------------------
    void CSnapTaker::ConstructL()
    {
    iCamera=CCamera::NewL(*this,0);


    iCamera->Reserve();
    }

    void CSnapTaker::ReserveComplete(TInt aError)
    {
    if(aError==KErrNone)
    {
    iCamera->PowerOn();
    }
    }

    void CSnapTaker::PowerOnComplete(TInt aError)
    {
    if(aError==KErrNone)
    {
    TCameraInfo aInfo;
    iCamera->CameraInfo(aInfo);




    iCamera->PrepareImageCaptureL(CCamera::EFormatFbsBitmapColor16M,0);

    ------------------------
    ------------------------------
    if(aInfo.iOptionsSupported && aInfo.EViewFinderDirectSupported)
    {
    ViewFinderDirectScreenAccessL();
    }
    if(aInfo.iOptionsSupported && aInfo.EViewFinderBitmapsSupported)
    {
    ViewFinderBitmapsL();
    }
    }
    }







    void CSnapTaker::ViewFinderDirectScreenAccessL()
    {
    TRect aScreenRect=iAppView->Rect();
    aScreenRect.Shrink(10,10);
    iCamera->StartViewFinderDirectL(CCoeEnv::Static()->WsSession(),*CCoeEnv::Static()->ScreenDevice(),*iAppView->DrawableWindow(),aScreenRect);

    iCamera->CaptureImage();
    }

    void CSnapTaker::ViewFinderBitmapsL()
    {
    TSize size;
    TInt i;
    TCameraInfo info;
    iCamera->CameraInfo(info);
    i=info.iNumImageSizesSupported-1;
    if(info.iImageFormatsSupported && CCamera::EFormatFbsBitmapColor16M)
    {
    iCamera->EnumerateCaptureSizes(size,i,CCamera::EFormatFbsBitmapColor16M);
    iCamera->StartViewFinderBitmapsL(size);
    }
    }
    void CSnapTaker::HandleFrame(CFbsBitmap& aFrame)
    {
    iSms->setCopyBitmap(&aFrame);
    iAppView->DisplayFrame(&aFrame);
    if(iFrameEncoder->IsActive())
    {
    iFrameBmp=new(ELeave)CFbsBitmap();
    iFrameBmp->Duplicate(aFrame.Handle());
    iFrameEncoder->EncodeImageToBuffer(*iFrameBmp,iEncodedFrameToSend);
    }
    }



    void CSnapTaker::ViewFinderFrameReady(CFbsBitmap& aFrame)
    {
    HandleFrame(aFrame);
    iCamera->CaptureImage();

    }

    void CSnapTaker::ImageReady(CFbsBitmap* aFrame,HBufC8* aData,TInt aError)
    {
    HandleFrame(*aFrame);
    if(aFrame!=NULL)
    {
    delete aFrame;
    }

    }

    void CSnapTaker::FrameBufferReady(MFrameBuffer* aBuffer,TInt aError)
    {

    }






    ENCODER CLASS
    --------------------------------------------


    void CSmsEncoder::ConstructL()
    {
    TJpegImageData* imageData=new(ELeave)TJpegImageData;
    imageData->iSampleScheme=TJpegImageData::EColor444;
    imageData->iQualityFactor=KJpegQualityFactor;
    iFrameImgData=CFrameImageData::NewL();
    iFrameImgData->AppendImageData(imageData);
    //User::LeaveIfError( iTimer.CreateLocal() ); // Initialize timer
    CActiveScheduler::Add( this ); // Add to scheduler
    }

    void CSmsEncoder::EncodeImageToBuffer(CFbsBitmap& aBitmap, HBufC8*& aDestBuffer)
    {
    if(iImgEncoder!=NULL)
    {
    delete iImgEncoder;
    iImgEncoder=NULL;
    iImgEncoder=CImageEncoder:ataNewL(aDestBuffer,KJpgMime,CImageEncoder::EOptionNone);//DataNewL(aDestBuffer,KJpgMime);
    iImgEncoder->Convert(&iStatus,aBitmap,iFrameImgData);
    SetActive();
    }
    }

  2. #2
    Registered User
    Join Date
    Nov 2007
    Posts
    49

    Re: unknown errors in taking image and encoding

    Hi, Problem solved:-----

    I did not include libraries

  3. #3
    Registered User
    Join Date
    Jul 2009
    Posts
    2

    Re: unknown errors in taking image and encoding

    i have the same problem but the lib already included in Epoc32\release\winscw\udeb but error still exist and error only in NewL line if i comment it no error
    do u know the solution?

  4. #4
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,764

    Re: unknown errors in taking image and encoding

    If you have "Undefined symbol: xy"-s, probably some library is still missing.

Similar Threads

  1. Opening a JPEG Image
    By ummarbhutta in forum Mobile Java Media (Graphics & Sounds)
    Replies: 8
    Last Post: 2007-02-15, 07:34
  2. How to Encode image and Music file??
    By DancingWave in forum Browsing and Mark-ups
    Replies: 0
    Last Post: 2007-01-10, 02:23
  3. Image capture resolution limited to 160x120 vs. encoding format - 6600/6670
    By frmichel in forum Mobile Java Media (Graphics & Sounds)
    Replies: 4
    Last Post: 2005-12-20, 17:16
  4. i have a question about binary encoding
    By tinduc in forum General Messaging
    Replies: 0
    Last Post: 2003-04-07, 10:55
  5. encoding of image size on mms header
    By pautamo in forum General Messaging
    Replies: 1
    Last Post: 2002-08-15, 11:55

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×