public static CVPixelBuffer create(long width, long height, CVPixelFormatType pixelFormatType, CVPixelBufferAttributes pixelBufferAttributes) { return create(null, width, height, pixelFormatType, pixelBufferAttributes); } public static CVPixelBuffer create(CFAllocator allocator, long width, long height, CVPixelFormatType pixelFormatType, CVPixelBufferAttributes pixelBufferAttributes) {
public static CVPixelBufferAttributes createResolvedAttributesDictionary(List<CVPixelBufferAttributes> attributes) { return createResolvedAttributesDictionary(null, attributes); } public static CVPixelBufferAttributes createResolvedAttributesDictionary(CFAllocator allocator, List<CVPixelBufferAttributes> attributes) {
public long[] getExtendedPixels() { MachineSizedUIntPtr left = new MachineSizedUIntPtr(); MachineSizedUIntPtr right = new MachineSizedUIntPtr(); MachineSizedUIntPtr top = new MachineSizedUIntPtr(); MachineSizedUIntPtr bottom = new MachineSizedUIntPtr(); getExtendedPixels(left, right, top, bottom); return new long[] {left.get(), right.get(), top.get(), bottom.get()}; } /*<methods>*/
public long[] getExtendedPixels() { MachineSizedUIntPtr left = new MachineSizedUIntPtr(); MachineSizedUIntPtr right = new MachineSizedUIntPtr(); MachineSizedUIntPtr top = new MachineSizedUIntPtr(); MachineSizedUIntPtr bottom = new MachineSizedUIntPtr(); getExtendedPixels(left, right, top, bottom); return new long[] {left.get(), right.get(), top.get(), bottom.get()}; } /*<methods>*/
public static CVPixelBuffer create(long width, long height, CVPixelFormatType pixelFormatType, VoidPtr baseAddress, long bytesPerRow, ReleaseBytesCallback releaseCallback, CVPixelBufferAttributes pixelBufferAttributes) { return create(null, width, height, pixelFormatType, baseAddress, bytesPerRow, releaseCallback, pixelBufferAttributes); } public static CVPixelBuffer create(CFAllocator allocator, long width, long height, CVPixelFormatType pixelFormatType, VoidPtr baseAddress, long bytesPerRow, ReleaseBytesCallback releaseCallback, CVPixelBufferAttributes pixelBufferAttributes) {
public static CVPixelBufferAttributes createResolvedAttributesDictionary(CFAllocator allocator, List<CVPixelBufferAttributes> attributes) { CFDictionary.CFDictionaryPtr ptr = new CFDictionary.CFDictionaryPtr(); createResolvedAttributesDictionary(allocator, attributes, ptr); return new CVPixelBufferAttributes(ptr.get()); } public static CVPixelBuffer create(long width, long height, CVPixelFormatType pixelFormatType, CVPixelBufferAttributes pixelBufferAttributes) {
public long[] getExtendedPixels() { MachineSizedUIntPtr left = new MachineSizedUIntPtr(); MachineSizedUIntPtr right = new MachineSizedUIntPtr(); MachineSizedUIntPtr top = new MachineSizedUIntPtr(); MachineSizedUIntPtr bottom = new MachineSizedUIntPtr(); getExtendedPixels(left, right, top, bottom); return new long[] {left.get(), right.get(), top.get(), bottom.get()}; } /*<methods>*/
public static CVPixelBuffer create(CFAllocator allocator, long width, long height, CVPixelFormatType pixelFormatType, CVPixelBufferAttributes pixelBufferAttributes) { long refconId = CVPixelBuffer.refconId.getAndIncrement(); CVPixelBufferPtr ptr = new CVPixelBufferPtr(); CVReturn err = create(allocator, width, height, pixelFormatType, pixelBufferAttributes, ptr); if (err == CVReturn.Success) { CVPixelBuffer buffer = ptr.get(); buffer.localRefconId = refconId; return buffer; } return null; } public static CVPixelBuffer create(long width, long height, CVPixelFormatType pixelFormatType, VoidPtr baseAddress, long bytesPerRow, ReleaseBytesCallback releaseCallback, CVPixelBufferAttributes pixelBufferAttributes) {
public static CVPixelBufferAttributes createResolvedAttributesDictionary(List<CVPixelBufferAttributes> attributes) { return createResolvedAttributesDictionary(null, attributes); } public static CVPixelBufferAttributes createResolvedAttributesDictionary(CFAllocator allocator, List<CVPixelBufferAttributes> attributes) {
public static CVPixelBuffer create(CFAllocator allocator, long width, long height, CVPixelFormatType pixelFormatType, VoidPtr baseAddress, long bytesPerRow, ReleaseBytesCallback releaseCallback, CVPixelBufferAttributes pixelBufferAttributes) { long refconId = CVPixelBuffer.refconId.getAndIncrement(); CVPixelBufferPtr ptr = new CVPixelBufferPtr(); CVReturn err = create(allocator, width, height, pixelFormatType, baseAddress, bytesPerRow, new FunctionPtr(cbReleaseBytes), refconId, pixelBufferAttributes, ptr); if (err == CVReturn.Success) { CVPixelBuffer buffer = ptr.get(); buffer.localRefconId = refconId; synchronized (releaseBytesCallbacks) { releaseBytesCallbacks.put(refconId, releaseCallback); } return buffer; } return null; }
public static CVPixelBufferAttributes createResolvedAttributesDictionary(List<CVPixelBufferAttributes> attributes) { return createResolvedAttributesDictionary(null, attributes); } public static CVPixelBufferAttributes createResolvedAttributesDictionary(CFAllocator allocator, List<CVPixelBufferAttributes> attributes) {
public static CVPixelBuffer create(long width, long height, CVPixelFormatType pixelFormatType, CVPixelBufferAttributes pixelBufferAttributes) { return create(null, width, height, pixelFormatType, pixelBufferAttributes); } public static CVPixelBuffer create(CFAllocator allocator, long width, long height, CVPixelFormatType pixelFormatType, CVPixelBufferAttributes pixelBufferAttributes) {
public static CVPixelBufferAttributes createResolvedAttributesDictionary(CFAllocator allocator, List<CVPixelBufferAttributes> attributes) { CFDictionary.CFDictionaryPtr ptr = new CFDictionary.CFDictionaryPtr(); createResolvedAttributesDictionary(allocator, attributes, ptr); return new CVPixelBufferAttributes(ptr.get()); } public static CVPixelBuffer create(long width, long height, CVPixelFormatType pixelFormatType, CVPixelBufferAttributes pixelBufferAttributes) {
public static CVPixelBuffer create(long width, long height, CVPixelFormatType pixelFormatType, VoidPtr baseAddress, long bytesPerRow, ReleaseBytesCallback releaseCallback, CVPixelBufferAttributes pixelBufferAttributes) { return create(null, width, height, pixelFormatType, baseAddress, bytesPerRow, releaseCallback, pixelBufferAttributes); } public static CVPixelBuffer create(CFAllocator allocator, long width, long height, CVPixelFormatType pixelFormatType, VoidPtr baseAddress, long bytesPerRow, ReleaseBytesCallback releaseCallback, CVPixelBufferAttributes pixelBufferAttributes) {
public static CVPixelBufferAttributes createResolvedAttributesDictionary(CFAllocator allocator, List<CVPixelBufferAttributes> attributes) { CFDictionary.CFDictionaryPtr ptr = new CFDictionary.CFDictionaryPtr(); createResolvedAttributesDictionary(allocator, attributes, ptr); return new CVPixelBufferAttributes(ptr.get()); } public static CVPixelBuffer create(long width, long height, CVPixelFormatType pixelFormatType, CVPixelBufferAttributes pixelBufferAttributes) {
public static CVPixelBuffer create(long width, long height, CVPixelFormatType pixelFormatType, CVPixelBufferAttributes pixelBufferAttributes) { return create(null, width, height, pixelFormatType, pixelBufferAttributes); } public static CVPixelBuffer create(CFAllocator allocator, long width, long height, CVPixelFormatType pixelFormatType, CVPixelBufferAttributes pixelBufferAttributes) {
public static CVPixelBuffer create(long width, long height, CVPixelFormatType pixelFormatType, VoidPtr baseAddress, long bytesPerRow, ReleaseBytesCallback releaseCallback, CVPixelBufferAttributes pixelBufferAttributes) { return create(null, width, height, pixelFormatType, baseAddress, bytesPerRow, releaseCallback, pixelBufferAttributes); } public static CVPixelBuffer create(CFAllocator allocator, long width, long height, CVPixelFormatType pixelFormatType, VoidPtr baseAddress, long bytesPerRow, ReleaseBytesCallback releaseCallback, CVPixelBufferAttributes pixelBufferAttributes) {
public static CVPixelBuffer create(CFAllocator allocator, long width, long height, CVPixelFormatType pixelFormatType, CVPixelBufferAttributes pixelBufferAttributes) { long refconId = CVPixelBuffer.refconId.getAndIncrement(); CVPixelBufferPtr ptr = new CVPixelBufferPtr(); CVReturn err = create(allocator, width, height, pixelFormatType, pixelBufferAttributes, ptr); if (err == CVReturn.Success) { CVPixelBuffer buffer = ptr.get(); buffer.localRefconId = refconId; return buffer; } return null; } public static CVPixelBuffer create(long width, long height, CVPixelFormatType pixelFormatType, VoidPtr baseAddress, long bytesPerRow, ReleaseBytesCallback releaseCallback, CVPixelBufferAttributes pixelBufferAttributes) {
public static CVPixelBuffer create(CFAllocator allocator, long width, long height, CVPixelFormatType pixelFormatType, CVPixelBufferAttributes pixelBufferAttributes) { long refconId = CVPixelBuffer.refconId.getAndIncrement(); CVPixelBufferPtr ptr = new CVPixelBufferPtr(); CVReturn err = create(allocator, width, height, pixelFormatType, pixelBufferAttributes, ptr); if (err == CVReturn.Success) { CVPixelBuffer buffer = ptr.get(); buffer.localRefconId = refconId; return buffer; } return null; } public static CVPixelBuffer create(long width, long height, CVPixelFormatType pixelFormatType, VoidPtr baseAddress, long bytesPerRow, ReleaseBytesCallback releaseCallback, CVPixelBufferAttributes pixelBufferAttributes) {
public static CVPixelBuffer create(CFAllocator allocator, long width, long height, CVPixelFormatType pixelFormatType, VoidPtr baseAddress, long bytesPerRow, ReleaseBytesCallback releaseCallback, CVPixelBufferAttributes pixelBufferAttributes) { long refconId = CVPixelBuffer.refconId.getAndIncrement(); CVPixelBufferPtr ptr = new CVPixelBufferPtr(); CVReturn err = create(allocator, width, height, pixelFormatType, baseAddress, bytesPerRow, new FunctionPtr(cbReleaseBytes), refconId, pixelBufferAttributes, ptr); if (err == CVReturn.Success) { CVPixelBuffer buffer = ptr.get(); buffer.localRefconId = refconId; synchronized (releaseBytesCallbacks) { releaseBytesCallbacks.put(refconId, releaseCallback); } return buffer; } return null; }