Professional Web Applications Themes

Getting memory buffer for webcam capture - Mac Programming

Hello, I have a webcam that seems to work with Quicktime (webcam5 from creative). I can initialize the device and capture stuff. I'm using Quicktime SG* functions. But I would like to know how I can access a memory buffer containing the latest captured image. I don't want to save it in a file, I would like to process it directly in memory before doing anything else with it. Can anyone help me on this ? Regards, Stephane...

  1. #1

    Default Getting memory buffer for webcam capture

    Hello,

    I have a webcam that seems to work with Quicktime (webcam5 from
    creative).
    I can initialize the device and capture stuff. I'm using Quicktime SG*
    functions.

    But I would like to know how I can access a memory buffer containing
    the latest captured image. I don't want to save it in a file, I would
    like to process it directly in memory before doing anything else with
    it.

    Can anyone help me on this ?

    Regards,

    Stephane
    Stéphane Vaxelaire Guest

  2. #2

    Default Re: Getting memory buffer for webcam capture

    Thanks for the help.

    But there is something I'd like to know : isn't it possible to access directly
    the GWorld PixMap and then extract some grabbed images after a SGIdle or SGUpdate
    call ?
    > The "SGDataProc" sample code (previously called "MiniMung") on Apple's
    > web site shows how to perform processing captured data. At a WWDC past,
    > we used this code as the basis for an application that displayed
    > histograms of the video (rather than the video itself).
    >
    > <[url]http://developer.apple.com/samplecode/Sample_Code/QuickTime/Capturing/SG[/url]
    > DataProcSample.htm>
    Stéphane Vaxelaire Guest

  3. #3

    Default Re: Getting memory buffer for webcam capture

    Well, I got this stuff working. I really thank you a lot for pointing
    me in the good direction.
    The only little problem I have left is that sometimes (often the first
    captured images) the pics (jpeg format) are black and 45 kB for a
    160x120 image.
    Otherwise it just works great. Thanks again.
    Stéphane Vaxelaire Guest

  4. #4

    Default Re: Getting memory buffer for webcam capture

    In article <bca37bb1.0307280342.7973c791posting.google.com >,
    [email]surfdargentfree.fr[/email] (Stéphane Vaxelaire) wrote:
    > The only little problem I have left is that sometimes (often the first
    > captured images) the pics (jpeg format) are black and 45 kB for a
    > 160x120 image.
    Lots of cameras with automatic white balance/brightness will take
    several seconds between when they are powered on (for capture) and when
    this automatic setting "dials in". During this first stage you can
    expect to get odd data (ie, black images, sometimes strange compression
    amounts, etc).
    Tom Dowdy Guest

Similar Threads

  1. about the buffer memory
    By Lu BaoGuo in forum Macromedia Flex General Discussion
    Replies: 2
    Last Post: July 18th, 05:32 AM
  2. Webcam screen capture
    By Acorna in forum Macromedia Flash Flashcom
    Replies: 1
    Last Post: February 21st, 08:21 PM
  3. Is Flash Player Video and Audio capture from a webcam possible?
    By newecho in forum Macromedia Flash Actionscript
    Replies: 0
    Last Post: February 7th, 02:16 PM
  4. Is Flash Player Video and Audio capture from a webcam possible?
    By newecho in forum Macromedia Flash Actionscript
    Replies: 0
    Last Post: February 7th, 02:16 PM
  5. buffer and memory cache
    By JB in forum Macromedia Director Lingo
    Replies: 1
    Last Post: September 9th, 12:32 PM

Bookmarks

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139