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, 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 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, 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(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; }
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; }