[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] progress on camera module
- To: pygame-users@xxxxxxxx
- Subject: Re: [pygame] progress on camera module
- From: Nirav Patel <olpc@xxxxxxxxxxxxxx>
- Date: Sat, 27 Jun 2009 18:51:07 -0400
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Sat, 27 Jun 2009 19:14:10 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to :content-type:content-transfer-encoding; bh=K+7mlmEXPgbuRaxSGayvhDKB+FwNcxCMVorOk1DYO0M=; b=jRvMYztiIG5t/dX4FQVcRU9U4zxLodNzSBT3E/CCIEZg24HeI4APIvrxef/XRn3xqb AzggjPl4Sbgpx22a94hFLbi+gR5o3aIr8iLRny2db0TxcJOt2VRroHP5IyMyRKniXDKt t1nyWs+MVVgvQujfdGBw7ZzEUFmhu72gRu3cc=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; b=q3U+cMDLf5pY0B3ag4ghMgPpQ26ZzBRO8XENi+v7r5yFW0nWoGO9COZK0g0dAiKRwc PjejiKSpg2XMYyC7Ljbo8xWvNC+kSGz8Ts5vwS9wl79GAoMNW6yG72NP4mjHqQARVAfe 6T0hhAqwiIfFYMYQiXknn6QfGnTnaWVAgD0oQ=
- In-reply-to: <D897CB7D-924F-4A3A-B3E4-C59EE858E167@xxxxxxxxx>
- References: <D897CB7D-924F-4A3A-B3E4-C59EE858E167@xxxxxxxxx>
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
Mac users who like to live on the bleeding edge of development or
would be interested in testing in a few weeks can get the code Werner
is writing from his git repository at http://github.com/ab3
Nirav
On Sat, Jun 27, 2009 at 6:38 PM, el lauwer<el.lauwer@xxxxxxxxx> wrote:
> Hoi,
>
> Nirav Patel asked me to post the info on my blog on this mailing list, so
> here is for those that who are interested:
>
> The past two weeks I was busy studying for my examinations, so I didn't have
> much time to work on my GSOC project.
> However I was able to do a lot of work to get the __PyCameraObject struct__
> integrated in the existing code and implemented some additional functions.
>
> Here is the definition of this struct, it isn't completed yet because some
> types I would like to put into it cause compile errors.
>
> **PyCameraObject:**
>
> typedef struct {
> PyObject_HEAD
> char* device_name; // unieke name of the device
> SeqGrabComponent component; // A type used by the Sequence
> Grabber API
> SGChannel channel; // Channel of the Sequence Grabber
> GWorldPtr gWorld; // Pointer to the struct that holds
> the data of the captured image
> Rect boundsRect; // bounds of the image frame
> } PyCameraObject;
>
> In addition of implementing the __PyCameraObject struct__, I have writen the
> folowing functions.
>
> * **mac_device_init():**
> This function initializes the sequence grabber component and prepares it for
> capturing images.
> * **mac_device_close():**
> I have extended this function so it works with the __PyCameraObject
> struct__.
> * **mac_start_capturing():**
> At this moment this function
> * **camera_start():**
> This function just calls the above functions.
> * **camera_get_size():**
> Simple function that returns the size of the image frame.
>
> ###Schedule for this week
> This week I am planning to finish the __mac_start_capturing__ function so
> that I can capture images from my camera an put then in a SDL_Surface
> object.
>
>