19 messages in net.java.dev.jna.usersRE: [jna-users] another help c protot...
FromSent OnAttachments
Thomas EneboNov 26, 2007 11:00 am 
Timothy WallNov 26, 2007 1:07 pm 
Timothy WallNov 26, 2007 1:58 pm 
Thomas E EneboNov 27, 2007 8:36 am 
Timothy WallNov 27, 2007 9:16 am 
Glick, Gene (GE Indust, Security)Nov 27, 2007 12:45 pm 
Stephen ConnollyNov 27, 2007 3:18 pm 
Glick, Gene (GE Indust, Security)Nov 28, 2007 6:16 am 
Timothy WallNov 28, 2007 9:15 am 
Glick, Gene (GE Indust, Security)Nov 28, 2007 11:37 am 
Glick, Gene (GE Indust, Security)Nov 28, 2007 11:59 am 
Glick, Gene (GE Indust, Security)Nov 28, 2007 12:05 pm 
Timothy WallNov 28, 2007 12:05 pm 
Wayne MeissnerNov 28, 2007 7:59 pm 
Glick, Gene (GE Indust, Security)Nov 29, 2007 6:43 am 
Nikolas LotzNov 29, 2007 7:41 am 
Glick, Gene (GE Indust, Security)Nov 30, 2007 9:05 am 
Timothy WallNov 30, 2007 11:13 am 
Glick, Gene (GE Indust, Security)Nov 30, 2007 11:56 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:RE: [jna-users] another help c prototype to jnaActions...
From:Glick, Gene (GE Indust, Security) (gene@ge.com)
Date:Nov 28, 2007 12:05:02 pm
List:net.java.dev.jna.users

-----Original Message----- From: Timothy Wall [mailto:twal@dev.java.net] Sent: Wednesday, November 28, 2007 3:06 PM To: use@jna.dev.java.net Subject: Re: [jna-users] another help c prototype to jna

On Nov 28, 2007, at 2:37 PM, Glick, Gene (GE Indust, Security) wrote:

this is from ffmpeg, libswscale, and it's got me confused. What's the correct syntax in jna?

typedef int (*SwsFunc)(struct SwsContext *context, uint8_t* src[], int srcStride[], int srcSliceY, int srcSliceH, uint8_t* dst[], int dstStride[]);

class SwsContext extends Structure { } // or PointerType, if the struct is opaque interface SwsFunc extends Callback { public int callback(SwsContext context, Pointer src, int[] srcStride, int srcSliceY, int srcSliceH, Pointer dst, int[] dstStride); }

How you actually map uint8_t* src[] and uint8_t* dst[] depends on how they're used.

Thanks!