×

Discussion Board

Results 1 to 14 of 14
  1. #1
    Regular Contributor
    Join Date
    Dec 2008
    Posts
    145

    how to utilize some hardwares on N950

    is there a page that list down the hardware spec of N950?
    i specifically want to know if it has HDMI output and whether there is a front facing camera

    how to activate the front facing camera for usage in the camera application?

  2. #2
    Regular Contributor
    Join Date
    Dec 2008
    Posts
    145

    Re: how to utilize some hardwares on N950

    after seeing another thread that the front camera can be used but with problem, i ported my video app which working on symbian^3 to N950. i find i couldn't use it. i get error like, although i only make use of QtMultimedia. i not sure what is this QGstreamerGLTextureRenderer

    Checking if resource 0x0800 is in the set
    Resource 0x000a is now granted
    Checking if resource 0x1000 is in the set
    Resource 0x000b is now granted
    ResourceSet::handleGranted - emitting resourcesGranted(optionalResources)
    virtual GstElement* QGstreamerGLTextureRenderer::videoSink() : Fallback to QVideoSurfaceGstSink since EGLImageTextureHandle is not supported
    Last edited by weiwei2; 2011-09-11 at 22:21. Reason: add link to other thread

  3. #3
    Regular Contributor
    Join Date
    Dec 2008
    Posts
    145

    Re: how to utilize some hardwares on N950

    Quote Originally Posted by weiwei2 View Post
    after seeing some other thread that the front camera can be used but with problem, i ported my video app which working on symbian^3 to N950. i find i couldn't use it. i get error like, although i only make use of QtMultimedia. i not sure what is this QGstreamerGLTextureRenderer

    Checking if resource 0x0800 is in the set
    Resource 0x000a is now granted
    Checking if resource 0x1000 is in the set
    Resource 0x000b is now granted
    ResourceSet::handleGranted - emitting resourcesGranted(optionalResources)
    virtual GstElement* QGstreamerGLTextureRenderer::videoSink() : Fallback to QVideoSurfaceGstSink since EGLImageTextureHandle is not supported
    well i find in this thread that indeed i need to do some extra stuff (generate the Aegis manifest) to make QCamera to work under N950. Well this break the Qt cross platform portability in my view. i'm still thinking how to make a code that can runs on both platforms

    in addition, i not too sure how to generate the file as mentioned by Harmattaneveloper Library/Developing for Harmattan/Harmattan security/Security guide/Aegis manifest file generation tool and in the documentation. is there a way to do it in Qt SDK and how?

    one thing i don't understand though is that in another N950 app, i make use of location service and it can run fine without doing the Aegis manifest step. why??
    Last edited by weiwei2; 2011-09-11 at 22:37. Reason: add more links and text

  4. #4
    Registered User
    Join Date
    Aug 2011
    Posts
    17

    Re: how to utilize some hardwares on N950

    Camera-related resources are different from location services in how underlying hardware works. For GPS signals to access, one doesn't need exclusive access as these signals do not depend on what a client application does with the data, it is always the same coming out of hardware and kernel drivers.

    With camera it is totally different: camera sensor, flash, and other components can be programmed rather uniquely for different tasks but cannot give intermix access in different modes without incurring very noticeable costs on mode switching, video overlays are in limited availability (only two), and it makes no sense to allow simultaneous access to all these memory-bandwidth consuming paths from multiple applications given precise arbitrage that is required to make it working optimally. Thus, camera resources and video overlays are protected with use of Resource Policy and enforced via Aegis capabilities.

    I hope you can understand that different operating systems exist for a purpose and certain things cannot be abstracted as it makes little sense to abstract them to common denominator. Use of specialized platform services is akin to packaging effort -- somehow you are not complaining about Debian packaging here compared to Symbian.

  5. #5
    Nokia Developer Moderator
    Join Date
    Oct 2009
    Location
    Finland
    Posts
    327

    Re: how to utilize some hardwares on N950

    in addition, i not too sure how to generate the file as mentioned by Harmattaneveloper Library/Developing for Harmattan/Harmattan security/Security guide/Aegis manifest file generation tool and in the documentation. is there a way to do it in Qt SDK and how?
    There is actually a snippet provided in the SDK release notes: just past the following into a projectname.aegis file in the qtc_packaging/debian_harmattan directory. If you would be creating a new project with the 1.1.3 SDK, an empty manifest file would have been created automatically (which you can then open from QtCreator).

    Code:
    <aegis>
    <request>
    <credential name="GRP::video" />
    <credential name="GRP::pulse-access" />
    <for path="/full/path/of/your/application" />
    </request>
    </aegis>

  6. #6
    Regular Contributor
    Join Date
    Dec 2008
    Posts
    145

    Re: how to utilize some hardwares on N950

    Thanks folks, this is a meego/maemo crash course for me and the information you provided are helpful. How do i know the full path of my application? is it refers to the installed path of my apps in the N950. i try to search for it under /usr/bin and it is not there.

  7. #7
    Super Contributor
    Join Date
    Mar 2009
    Posts
    1,024

    Re: how to utilize some hardwares on N950

    Hi,
    3rd-party apps are usually in /opt

    Btw you can double check where it's installed just running "dpkg -L yourPackageName"

  8. #8
    Regular Contributor
    Join Date
    Dec 2008
    Posts
    145

    Re: how to utilize some hardwares on N950

    i've checked and indeed my package is installed in /opt
    i created a file named meegoMirror.aegis in qtc_packaging/debian_harmattan , with these contents
    <request>
    <credential name="GRP::video" />
    <credential name="GRP:ulse-access" />
    <for path="/opt/meegoMirror"/>
    </request>
    </aegis>

    but when i try to 'run' it, i get a 'Installing package failed' error. do i miss a step?

  9. #9
    Nokia Developer Moderator
    Join Date
    Oct 2009
    Location
    Finland
    Posts
    327

    Re: how to utilize some hardwares on N950

    You need to specify the full binary path, not just the project directory - something like /opt/meegoMirror/bin/meegoMirror . Can you paste the contents of the output pane to see what the exact error was (probably that, but still). If it doesn't even install, you can list the contents of a package with "dpkg -c /path/to/yourPackageName.deb"

  10. #10
    Regular Contributor
    Join Date
    Dec 2008
    Posts
    145

    Re: how to utilize some hardwares on N950

    Quote Originally Posted by achipa View Post
    You need to specify the full binary path, not just the project directory - something like /opt/meegoMirror/bin/meegoMirror . Can you paste the contents of the output pane to see what the exact error was (probably that, but still). If it doesn't even install, you can list the contents of a package with "dpkg -c /path/to/yourPackageName.deb"
    thanks achipa. now i can deploy my app. however, i still can't access the QCamera. in the application output window in Qt, i see these messages.

    Killing remote process(es)...
    Starting remote process ...
    chmod: /opt/meegoMirror/bin/meegoMirror: Operation not permitted
    Using the meego graphics system
    Successfully resolved MeeGo graphics system: /usr/lib/qt4/plugins/graphicssystems/libqmeegographicssystem.so

    Found SGX/MBX driver, enabling FullClearOnEveryFrame
    Found v1.4 driver, enabling brokenTexSubImage
    MeegoGraphics: found EGL_NOK_image_shared
    MeegoGraphics: found EGL_KHR_lock_surface2
    MeegoGraphics: found EGL_KHR_fence_sync
    hijackWindow() context created for QDeclarativeView(0xaea83a80) 1
    Found SGX/MBX driver, enabling FullClearOnEveryFrame
    Found v1.4 driver, enabling brokenTexSubImage
    QGLWindowSurface: Using plain widget as window surface QGLWindowSurface(0x1fa6a608)
    Found EGL_KHR_image_pixmap & GL_OES_EGL_image extensions (preferred method)!
    Found texture_from_pixmap EGL extension!
    ResourceSet::initAndConnect().... initializing...
    ResourceEngine::ResourceEngine(1) - connectionMode = 0002
    initializing resource engine...
    ResourceEngine(1)::initialize() - **************** locking....
    ResourceEngine (1, 0x1fc8a390) is now initialized. 1 users
    resourceEngine->initialize() returned true
    ResourceEngine(1)::connectToManager() - **************** locking....
    All resources as bitmask is 0x0000
    ResourceEngine(1) - ResourceEngine is now connecting(1, 1, 0)
    ResourceEngine(1)::connectToManager() - **************** unlocked! returning true
    ResourceSet is initialized engine=0x1fc878d8
    **************** ResourceSet::initialize().... 106
    **************** ResourceSet::addResourceObject(1).... 112
    **************** ResourceSet::addResourceObject(1).... 115
    **************** ResourceSet::addResourceObject(1).... 121
    this = 0x1fc96e28
    Audio group changed! New group is: "camera"
    registerAudioProperties(): Connecting to Manager...
    ResourceEngine(1)::connectToManager() - **************** locking....
    ResourceEngine::connectToManager().... allready connecting, ignoring request
    ResourceSet::addResourceObject().... 138 registering audio proprerties later
    **************** ResourceSet::addResourceObject(1).... 112
    **************** ResourceSet::addResourceObject(1).... 115
    **************** ResourceSet::addResourceObject(1).... 145
    **************** ResourceSet::addResourceObject(1).... 112
    **************** ResourceSet::addResourceObject(1).... 115
    **************** ResourceSet::addResourceObject(1).... 112
    **************** ResourceSet::addResourceObject(1).... 115
    **************** ResourceSet::addResourceObject(1).... 112
    **************** ResourceSet::addResourceObject(1).... 115
    **************** ResourceSet::addResourceObject(1).... 112
    **************** ResourceSet::addResourceObject(1).... 115
    **************** ResourceSet::addResourceObject(1).... 112
    **************** ResourceSet::addResourceObject(1).... 115
    ResourceEngine(1)::connectToManager() - **************** locking....
    ResourceEngine::connectToManager().... allready connecting, ignoring request
    ResourceSet::initAndConnect().... connecting...
    ResourceEngine(1)::connectToManager() - **************** locking....
    ResourceEngine::connectToManager().... allready connecting, ignoring request
    **************** statusCallbackHandler().... 416
    **************** statusCallbackHandler().... 424
    **************** statusCallbackHandler().... 426
    **************** statusCallbackHandler().... 427
    recv: status: id=1, engine->id() = 1
    **************** statusCallbackHandler().... 429
    Received a status notification
    Received a status message with id 01 and #:1
    Received a status message: 1(0x00)
    ResourceEngine(1) - connected!
    **************** ResourceSet::connectedHandler().... 476
    ResourceSet::connectedHandler() Connected to manager!
    Registering new audio settings:
    audio group: "camera"
    PID: 0
    audio stream: "" : ""
    ResourceEngine(1)::registerAudioProperties() - **************** locking....
    ResourceEngine(1) - audio group: camera
    ResourceEngine(1) - audio 1:2
    ResourceEngine(1) - resproto_send_message returned 1
    resourceEngine->registerAudioProperties returned true
    ResourceEngine(1)::updateResources() - **************** locking....
    Converted Resource 0x00 to 0x01
    Converted Resource 0x01 to 0x02
    Converted Resource 0x03 to 0x08
    Converted Resource 0x05 to 0x20
    Converted Resource 0x09 to 0x400
    Converted Resource 0x0a to 0x800
    Converted Resource 0x0b to 0x1000
    All resources as bitmask is 0x1c2b
    ResourceEngine(1) - update 1:3
    ResourceSet:roceedIfImFirst()...allowing only request directly.
    ResourceSet::acquire().... acquiring
    ResourceEngine(1)::acquireResources() - **************** locking....
    ResourceEngine(1) - acquire 1:4
    **************** statusCallbackHandler().... 416
    **************** statusCallbackHandler().... 424
    **************** statusCallbackHandler().... 426
    **************** statusCallbackHandler().... 427
    recv: status: id=1, engine->id() = 1
    **************** statusCallbackHandler().... 429
    Received a status notification
    Received a status message with id 01 and #:2
    Received a status message: 2(0x07)
    **************** statusCallbackHandler().... 416
    **************** statusCallbackHandler().... 424
    **************** statusCallbackHandler().... 426
    **************** statusCallbackHandler().... 427
    recv: status: id=1, engine->id() = 1
    **************** statusCallbackHandler().... 429
    Received a status notification
    Received a status message with id 01 and #:3
    Received a status message: 3(0x02)
    ResourceEngine(1) - Update status
    ResourceEngine(1) -- handleStatusMessage.
    ResourceSet::handleUpdateOK().... 719
    ResourceSet::handleUpdateOK()...about to exe next request....
    ResourceSet::executeNextRequest().
    ResourceSet::executeNextRequest()...last request acknowledged and removed.
    **************** handleGrantMessage() - locking....
    recv: grant: type=5, id=1, reqno=3, resc=0x0000 engine->id() = 1
    ResourceEngine(1) -- receivedGrant: type=0x0005, id=0x0001, reqno=0x0003, resc=0x0000
    ResourceEngine(1) -- originalMessageType=2
    ResourceEngine(1) -- emitting signal updateOK() via receivedGrant.
    ResourceSet::handleUpdateOK().... 719
    ResourceSet::handleUpdateOK()...about to exe next request....
    ResourceSet::executeNextRequest().
    ResourceSet::executeNextRequest()...the completed request is not present.
    **************** handleAdviceMessage() - locking....
    recv: advice: type=6, id=1, reqno=0, resc=0x1c2b engine->id() = 1
    Converted Resource 0x00 to 0x01
    Converted Resource 0x01 to 0x02
    Converted Resource 0x03 to 0x08
    Converted Resource 0x05 to 0x20
    Converted Resource 0x09 to 0x400
    Converted Resource 0x0a to 0x800
    Converted Resource 0x0b to 0x1000
    All resources as bitmask is 0x1c2b
    ResourceEngine(1) - receivedAdvice: have: 1c2b got 1c2b
    **************** statusCallbackHandler().... 416
    **************** statusCallbackHandler().... 424
    **************** statusCallbackHandler().... 426
    **************** statusCallbackHandler().... 427
    recv: status: id=1, engine->id() = 1
    **************** statusCallbackHandler().... 429
    Received a status notification
    Received a status message with id 01 and #:4
    Received a status message: 4(0x03)
    ResourceEngine(1) - Acquire status
    **************** handleGrantMessage() - locking....
    recv: grant: type=5, id=1, reqno=4, resc=0x1c2b engine->id() = 1
    ResourceEngine(1) -- receivedGrant: type=0x0005, id=0x0001, reqno=0x0004, resc=0x1c2b
    ResourceEngine(1) - emitting signal resourcesGranted(1c2b).
    ResourceSet::handleGranted
    Acquired resources: 0x1c2b
    Checking if resource 0x0001 is in the set
    Resource 0x0000 is now granted
    Checking if resource 0x0002 is in the set
    Resource 0x0001 is now granted
    Checking if resource 0x0008 is in the set
    Resource 0x0003 is now granted
    Checking if resource 0x0020 is in the set
    Resource 0x0005 is now granted
    Checking if resource 0x0400 is in the set
    Resource 0x0009 is now granted
    Checking if resource 0x0800 is in the set
    Resource 0x000a is now granted
    Checking if resource 0x1000 is in the set
    Resource 0x000b is now granted
    ResourceSet::handleGranted - emitting resourcesGranted(optionalResources)
    virtual GstElement* QGstreamerGLTextureRenderer::videoSink() : Fallback to QVideoSurfaceGstSink since EGLImageTextureHandle is not supported
    ResourceSet::executeNextRequest().
    ResourceSet::executeNextRequest()...the completed request is not present.
    CameraBin error: "Could not negotiate format"

  11. #11
    Super Contributor
    Join Date
    Mar 2009
    Posts
    1,024

    Re: how to utilize some hardwares on N950

    Hi,
    The problem you got it's not related to security framework this time..
    The last line says the problem is in the usage of CameraBin GStreamer element, so it smells like Mobility bug or a bad usage of its API.

  12. #12
    Regular Contributor
    Join Date
    Dec 2008
    Posts
    145

    Re: how to utilize some hardwares on N950

    Quote Originally Posted by gnuton View Post
    Hi,
    The problem you got it's not related to security framework this time..
    The last line says the problem is in the usage of CameraBin GStreamer element, so it smells like Mobility bug or a bad usage of its API.
    It has been many days before i manage to revisit this. you are right. i tried some search and found this link that describes the similar error
    i tried that but i get a slightly different error like this

    Killing remote process(es)...
    Starting remote process ...
    chmod: /opt/meegoMirror/bin/meegoMirror: Operation not permitted
    Using the meego graphics system
    Successfully resolved MeeGo graphics system: /usr/lib/qt4/plugins/graphicssystems/libqmeegographicssystem.so

    Found SGX/MBX driver, enabling FullClearOnEveryFrame
    Found v1.4 driver, enabling brokenTexSubImage
    MeegoGraphics: found EGL_NOK_image_shared
    MeegoGraphics: found EGL_KHR_lock_surface2
    MeegoGraphics: found EGL_KHR_fence_sync
    X Error: BadDamage (invalid Damage parameter) 153
    Extension: 146 (Uknown extension)
    Minor opcode: 2 (Unknown request)
    Resource id: 0x29
    hijackWindow() context created for QDeclarativeView(0xae8f9aa0) 1
    Found SGX/MBX driver, enabling FullClearOnEveryFrame
    Found v1.4 driver, enabling brokenTexSubImage
    QGLWindowSurface: Using plain widget as window surface QGLWindowSurface(0x1fa8b8c0)
    Found EGL_KHR_image_pixmap & GL_OES_EGL_image extensions (preferred method)!
    Found texture_from_pixmap EGL extension!
    ResourceSet::initAndConnect().... initializing...
    ResourceEngine::ResourceEngine(1) - connectionMode = 0002
    initializing resource engine...
    ResourceEngine(1)::initialize() - **************** locking....
    ResourceEngine (1, 0x1fc8a4d0) is now initialized. 1 users
    resourceEngine->initialize() returned true
    ResourceEngine(1)::connectToManager() - **************** locking....
    All resources as bitmask is 0x0000
    ResourceEngine(1) - ResourceEngine is now connecting(1, 1, 0)
    ResourceEngine(1)::connectToManager() - **************** unlocked! returning true
    ResourceSet is initialized engine=0x1fc87910
    **************** ResourceSet::initialize().... 106
    **************** ResourceSet::addResourceObject(1).... 112
    **************** ResourceSet::addResourceObject(1).... 115
    **************** ResourceSet::addResourceObject(1).... 121
    this = 0x1fc9d738
    Audio group changed! New group is: "camera"
    registerAudioProperties(): Connecting to Manager...
    ResourceEngine(1)::connectToManager() - **************** locking....
    ResourceEngine::connectToManager().... allready connecting, ignoring request
    ResourceSet::addResourceObject().... 138 registering audio proprerties later
    **************** ResourceSet::addResourceObject(1).... 112
    **************** ResourceSet::addResourceObject(1).... 115
    **************** ResourceSet::addResourceObject(1).... 145
    **************** ResourceSet::addResourceObject(1).... 112
    **************** ResourceSet::addResourceObject(1).... 115
    **************** ResourceSet::addResourceObject(1).... 112
    **************** ResourceSet::addResourceObject(1).... 115
    **************** ResourceSet::addResourceObject(1).... 112
    **************** ResourceSet::addResourceObject(1).... 115
    **************** ResourceSet::addResourceObject(1).... 112
    **************** ResourceSet::addResourceObject(1).... 115
    **************** ResourceSet::addResourceObject(1).... 112
    **************** ResourceSet::addResourceObject(1).... 115
    ResourceEngine(1)::connectToManager() - **************** locking....
    ResourceEngine::connectToManager().... allready connecting, ignoring request
    ResourceSet::initAndConnect().... connecting...
    ResourceEngine(1)::connectToManager() - **************** locking....
    ResourceEngine::connectToManager().... allready connecting, ignoring request
    **************** statusCallbackHandler().... 416
    **************** statusCallbackHandler().... 424
    **************** statusCallbackHandler().... 426
    **************** statusCallbackHandler().... 427
    recv: status: id=1, engine->id() = 1
    **************** statusCallbackHandler().... 429
    Received a status notification
    Received a status message with id 01 and #:1
    Received a status message: 1(0x00)
    ResourceEngine(1) - connected!
    **************** ResourceSet::connectedHandler().... 476
    ResourceSet::connectedHandler() Connected to manager!
    Registering new audio settings:
    audio group: "camera"
    PID: 0
    audio stream: "" : ""
    ResourceEngine(1)::registerAudioProperties() - **************** locking....
    ResourceEngine(1) - audio group: camera
    ResourceEngine(1) - audio 1:2
    ResourceEngine(1) - resproto_send_message returned 1
    resourceEngine->registerAudioProperties returned true
    ResourceEngine(1)::updateResources() - **************** locking....
    Converted Resource 0x00 to 0x01
    Converted Resource 0x01 to 0x02
    Converted Resource 0x03 to 0x08
    Converted Resource 0x05 to 0x20
    Converted Resource 0x09 to 0x400
    Converted Resource 0x0a to 0x800
    Converted Resource 0x0b to 0x1000
    All resources as bitmask is 0x1c2b
    ResourceEngine(1) - update 1:3
    ResourceSet:roceedIfImFirst()...allowing only request directly.
    ResourceSet::acquire().... acquiring
    ResourceEngine(1)::acquireResources() - **************** locking....
    ResourceEngine(1) - acquire 1:4
    **************** statusCallbackHandler().... 416
    **************** statusCallbackHandler().... 424
    **************** statusCallbackHandler().... 426
    **************** statusCallbackHandler().... 427
    recv: status: id=1, engine->id() = 1
    **************** statusCallbackHandler().... 429
    Received a status notification
    Received a status message with id 01 and #:2
    Received a status message: 2(0x07)
    **************** statusCallbackHandler().... 416
    **************** statusCallbackHandler().... 424
    **************** statusCallbackHandler().... 426
    **************** statusCallbackHandler().... 427
    recv: status: id=1, engine->id() = 1
    **************** statusCallbackHandler().... 429
    Received a status notification
    Received a status message with id 01 and #:3
    Received a status message: 3(0x02)
    ResourceEngine(1) - Update status
    ResourceEngine(1) -- handleStatusMessage.
    ResourceSet::handleUpdateOK().... 719
    ResourceSet::handleUpdateOK()...about to exe next request....
    ResourceSet::executeNextRequest().
    ResourceSet::executeNextRequest()...last request acknowledged and removed.
    **************** handleGrantMessage() - locking....
    recv: grant: type=5, id=1, reqno=3, resc=0x0000 engine->id() = 1
    ResourceEngine(1) -- receivedGrant: type=0x0005, id=0x0001, reqno=0x0003, resc=0x0000
    ResourceEngine(1) -- originalMessageType=2
    ResourceEngine(1) -- emitting signal updateOK() via receivedGrant.
    ResourceSet::handleUpdateOK().... 719
    ResourceSet::handleUpdateOK()...about to exe next request....
    ResourceSet::executeNextRequest().
    ResourceSet::executeNextRequest()...the completed request is not present.
    **************** handleAdviceMessage() - locking....
    recv: advice: type=6, id=1, reqno=0, resc=0x1c2b engine->id() = 1
    Converted Resource 0x00 to 0x01
    Converted Resource 0x01 to 0x02
    Converted Resource 0x03 to 0x08
    Converted Resource 0x05 to 0x20
    Converted Resource 0x09 to 0x400
    Converted Resource 0x0a to 0x800
    Converted Resource 0x0b to 0x1000
    All resources as bitmask is 0x1c2b
    ResourceEngine(1) - receivedAdvice: have: 1c2b got 1c2b
    **************** statusCallbackHandler().... 416
    **************** statusCallbackHandler().... 424
    **************** statusCallbackHandler().... 426
    **************** statusCallbackHandler().... 427
    recv: status: id=1, engine->id() = 1
    **************** statusCallbackHandler().... 429
    Received a status notification
    Received a status message with id 01 and #:4
    Received a status message: 4(0x03)
    ResourceEngine(1) - Acquire status
    **************** handleGrantMessage() - locking....
    recv: grant: type=5, id=1, reqno=4, resc=0x1c2b engine->id() = 1
    ResourceEngine(1) -- receivedGrant: type=0x0005, id=0x0001, reqno=0x0004, resc=0x1c2b
    ResourceEngine(1) - emitting signal resourcesGranted(1c2b).
    ResourceSet::handleGranted
    Acquired resources: 0x1c2b
    Checking if resource 0x0001 is in the set
    Resource 0x0000 is now granted
    Checking if resource 0x0002 is in the set
    Resource 0x0001 is now granted
    Checking if resource 0x0008 is in the set
    Resource 0x0003 is now granted
    Checking if resource 0x0020 is in the set
    Resource 0x0005 is now granted
    Checking if resource 0x0400 is in the set
    Resource 0x0009 is now granted
    Checking if resource 0x0800 is in the set
    Resource 0x000a is now granted
    Checking if resource 0x1000 is in the set
    Resource 0x000b is now granted
    ResourceSet::handleGranted - emitting resourcesGranted(optionalResources)
    virtual GstElement* QGstreamerGLTextureRenderer::videoSink() : Fallback to QVideoSurfaceGstSink since EGLImageTextureHandle is not supported
    ResourceSet::executeNextRequest().
    ResourceSet::executeNextRequest()...the completed request is not present.
    Failed to start video surface
    CameraBin error: "Internal data flow error."

  13. #13
    Regular Contributor
    Join Date
    Dec 2008
    Posts
    145

    Re: how to utilize some hardwares on N950

    i've traced the error to

    Code:
    bool MyVideoSurface::start(const QVideoSurfaceFormat &format)
    {
        m_framesExists = false;
        m_videoFormat = format;
        const QImage::Format imageFormat = QVideoFrame::imageFormatFromPixelFormat(format.pixelFormat());
        const QSize size = format.frameSize();
    
        if (imageFormat != QImage::Format_Invalid && !size.isEmpty()) {
            m_imageFormat = imageFormat;
            qDebug() << "QVideoSurfaceFormat: " << format; //refer to QList<QVideoFrame::PixelFormat> supportedPixelFormats
            QAbstractVideoSurface::start(format);        
            return true;
        } else {
            if(imageFormat==QImage::Format_Invalid)
            {
                qDebug()<<"image format is Format_Invalid";
            }
            qDebug()<< "fail in MyVideoSurface::start else";
            return false;
        }
    }
    where i find that qDebug()<<"image format is Format_Invalid" gets to run. i not sure how to overcome this.

  14. #14
    Super Contributor
    Join Date
    Mar 2009
    Posts
    1,024

    Re: how to utilize some hardwares on N950

    Hard to say where is the problem without seeing the entire code.
    BTW have you taken a look at this example?
    http://doc.qt.nokia.com/4.7-snapshot...ample-cpp.html

Similar Threads

  1. Replies: 0
    Last Post: 2011-08-06, 17:52
  2. How to utilize the standard Nokia FileManager
    By herman_du plessis in forum Symbian
    Replies: 6
    Last Post: 2009-08-28, 15:19
  3. Replies: 5
    Last Post: 2008-10-06, 14:06
  4. Can i utilize sound meter app?
    By kamenoss in forum Mobile Java General
    Replies: 1
    Last Post: 2006-10-12, 17:06

Posting Permissions

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