×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Feb 2013
    Posts
    5

    1080p Native Image capture problem

    I'm trying to do Native image/video capture on a Windows Phone 8, and I'm having trouble with the AudioVideoCaptureDevice interface. I am mostly following this approach from the developer wiki. I want to create an app that can take in a sample stream, (by passing in an `ICameraCaptureSampleSink`) but when I call `StartRecordingToSinkAsync()`, everything is fine for the first few (<10) frames, and then my Sink stops getting called. What's more, if I try to stop by calling `StopRecordingToSinkAsync()` my program hangs indefinitely there. If I kill the app and try to start it up again, any camera-based API calls I try to make never return. I have to restart my phone (Lumia 920) to get it to respond to camera APIs again.

    This only happens when capturing at 1080p (full) resolution, I can capture at any other resolution and it works just fine, it's only at 1080p that things break down. Can anyone help me figure out what's going wrong? As a test, I confirmed that the same thing happens to the wiki sample if you change `captureDimensions` to reflect 1080p. Here is a gist with the changed `NativeCameraInterface.cpp`, where you can see the "Full!" output stops being sent after a few frames when performing native debugging.

  2. #2
    Registered User
    Join Date
    Feb 2013
    Posts
    5

    Re: 1080p Native Image capture problem

    Full disclosure: I posted this same question on StackOverflow. They told me to come here, so that is why the questions are posted in two places at once.

  3. #3
    Registered User
    Join Date
    Feb 2013
    Posts
    5

    Native photo capture code

    Hello, I want to use the native image APIs to capture photos, not just video. The example given in Getting started with the Camera APIs for Native Code seems to work only for the Video resolutions provided, I can't figure out how to make it work for the Photo resolutions. How do we do photo-based native image capture?

    Thanks!

Similar Threads

  1. capture the photo with the frame overlay for S40
    By phanviet_bang in forum Mobile Java General
    Replies: 4
    Last Post: 2011-09-20, 07:42
  2. Code to capture a photo and send it to web server ?
    By mr.natrix in forum Mobile Java General
    Replies: 2
    Last Post: 2010-08-06, 12:34
  3. Photo Capture
    By sunithadevim in forum Symbian
    Replies: 14
    Last Post: 2009-09-07, 19:40
  4. MMAPI photo capture in emulator
    By radou in forum Mobile Java General
    Replies: 1
    Last Post: 2003-05-27, 10:19
  5. MMAPI photo capture in emulator
    By radou in forum Mobile Java Tools & SDKs
    Replies: 0
    Last Post: 2003-05-26, 11:17

Posting Permissions

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