[Mono-osx] CFSampleBuffer Additions

Frank Krueger fak at kruegersystems.com
Sun Apr 17 08:46:29 EDT 2011


I forgot to ask this, but one function makes me angry. I mapped the
following in CMBlockBuffer.cs:

[DllImport(Constants.CoreMediaLibrary)]
extern static int CMBlockBufferCopyDataBytes (IntPtr handle, uint
offsetToData, uint dataLength, IntPtr destination);
public int CopyDataBytes<T> (uint offsetToData, uint dataLength, T[]
destination)
{
return CMBlockBufferCopyDataBytes (handle, offsetToData, dataLength,
destination);
}

I would *much* prefer to map it as either:

public int CopyDataBytes<T> (uint offsetToData, uint dataLength, T[]
destination);

OR

public int CopyDataBytes (uint offsetToData, uint dataLength, Array
destination);

We did this in WPF for the imaging classes to make the programmer's life
easier. Is this possible to do in MM/MT?

-Frank


On Sun, Apr 17, 2011 at 8:30 AM, Frank Krueger <fak at kruegersystems.com>wrote:

> Sorry, I'm not very good at git. I have just recreated the diff after
> telling git to add the files. Please let me know if this is correct now.
>
> atom:maccore fak$ git status
> # On branch master
> # Changes to be committed:
> #   (use "git reset HEAD <file>..." to unstage)
> #
> # copied:     src/CoreMedia/CMSampleBuffer.cs ->
> src/CoreMedia/CMBlockBuffer.cs
> # new file:   src/CoreMedia/CMFormatDescription.cs
> # modified:   src/CoreMedia/CMSampleBuffer.cs
> # modified:   src/CoreMedia/CoreMedia.cs
> #
> atom:maccore fak$ git diff --cached > CMSampleBufferAdditions3.diff
>
> (Why oh why does it say "Copied" for CMBlockBuffer.cs? Does it use some
> kind of heuristic to decide that I "copied" the file? Scary.)
>
>
> On Sat, Apr 16, 2011 at 11:51 PM, Miguel de Icaza <miguel at novell.com>wrote:
>
>> Hello Frank,
>>
>> > I have made fixes requested by Geoff on IRC. I have also mapped a few
>> more
>> > functions to accomplish what I need. Code compiles but is otherwise
>> untested
>> > (I have no way to test until it is in MonoTouch since the iPod library
>> > functions only work on the device.)
>> > I hope this gets included soon. :-)
>>
>> The patch looks good, but it is missing CMBlockBuffer and
>> CMFormatDescription to build
>>
>> Miguel
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-osx/attachments/20110417/ea144ef9/attachment.html 


More information about the Mono-osx mailing list