Package apple.coremedia.struct
Class CMBufferCallbacks
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.c.StructObject
-
- apple.coremedia.struct.CMBufferCallbacks
-
public final class CMBufferCallbacks extends org.moe.natj.c.StructObject
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCMBufferCallbacks.Function_comparestatic interfaceCMBufferCallbacks.Function_getDecodeTimeStampstatic interfaceCMBufferCallbacks.Function_getDurationstatic interfaceCMBufferCallbacks.Function_getPresentationTimeStampstatic interfaceCMBufferCallbacks.Function_getSizestatic interfaceCMBufferCallbacks.Function_isDataReady
-
Constructor Summary
Constructors Modifier Constructor Description CMBufferCallbacks()protectedCMBufferCallbacks(org.moe.natj.general.Pointer peer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CMBufferCallbacks.Function_comparecompare()[@field] isDataReady This callback is called from CMBufferQueueDequeueIfDataReadyAndRetain, to ask if the buffer that is about to be dequeued is ready.CFStringRefdataBecameReadyNotification()[@field] compare This callback is called (multiple times) from CMBufferQueueEnqueue, to perform an insertion sort.CMBufferCallbacks.Function_getDecodeTimeStampgetDecodeTimeStamp()[@field] refcon Client refcon to be passed to all callbacks (can be NULL, if the callbacks don't require it).CMBufferCallbacks.Function_getDurationgetDuration()[@field] getPresentationTimeStamp This callback is called from CMBufferQueueGetFirstPresentationTimeStamp (once) and from CMBufferQueueGetMinPresentationTimeStamp (multiple times).CMBufferCallbacks.Function_getPresentationTimeStampgetPresentationTimeStamp()[@field] getDecodeTimeStamp This callback is called from CMBufferQueueGetFirstDecodeTimeStamp (once), and from CMBufferQueueGetMinDecodeTimeStamp (multiple times).CMBufferCallbacks.Function_getSizegetSize()[@field] dataBecameReadyNotification If triggers of type kCMBufferQueueTrigger_WhenDataBecomesReady are installed, the queue will listen for this notification on the head buffer.CMBufferCallbacks.Function_isDataReadyisDataReady()[@field] getDuration This callback is called (once) during enqueue and dequeue operations to update the total duration of the queue.org.moe.natj.general.ptr.VoidPtrrefcon()[@field] version Must be 0 or 1.voidsetCompare(CMBufferCallbacks.Function_compare value)[@field] isDataReady This callback is called from CMBufferQueueDequeueIfDataReadyAndRetain, to ask if the buffer that is about to be dequeued is ready.voidsetDataBecameReadyNotification(CFStringRef value)[@field] compare This callback is called (multiple times) from CMBufferQueueEnqueue, to perform an insertion sort.voidsetGetDecodeTimeStamp(CMBufferCallbacks.Function_getDecodeTimeStamp value)[@field] refcon Client refcon to be passed to all callbacks (can be NULL, if the callbacks don't require it).voidsetGetDuration(CMBufferCallbacks.Function_getDuration value)[@field] getPresentationTimeStamp This callback is called from CMBufferQueueGetFirstPresentationTimeStamp (once) and from CMBufferQueueGetMinPresentationTimeStamp (multiple times).voidsetGetPresentationTimeStamp(CMBufferCallbacks.Function_getPresentationTimeStamp value)[@field] getDecodeTimeStamp This callback is called from CMBufferQueueGetFirstDecodeTimeStamp (once), and from CMBufferQueueGetMinDecodeTimeStamp (multiple times).voidsetGetSize(CMBufferCallbacks.Function_getSize value)[@field] dataBecameReadyNotification If triggers of type kCMBufferQueueTrigger_WhenDataBecomesReady are installed, the queue will listen for this notification on the head buffer.voidsetIsDataReady(CMBufferCallbacks.Function_isDataReady value)[@field] getDuration This callback is called (once) during enqueue and dequeue operations to update the total duration of the queue.voidsetRefcon(org.moe.natj.general.ptr.VoidPtr value)[@field] version Must be 0 or 1.voidsetVersion(int value)intversion()
-
-
-
Method Detail
-
version
public int version()
-
setVersion
public void setVersion(int value)
-
refcon
public org.moe.natj.general.ptr.VoidPtr refcon()
[@field] version Must be 0 or 1.
-
setRefcon
public void setRefcon(org.moe.natj.general.ptr.VoidPtr value)
[@field] version Must be 0 or 1.
-
getDecodeTimeStamp
public CMBufferCallbacks.Function_getDecodeTimeStamp getDecodeTimeStamp()
[@field] refcon Client refcon to be passed to all callbacks (can be NULL, if the callbacks don't require it).
-
setGetDecodeTimeStamp
public void setGetDecodeTimeStamp(CMBufferCallbacks.Function_getDecodeTimeStamp value)
[@field] refcon Client refcon to be passed to all callbacks (can be NULL, if the callbacks don't require it).
-
getPresentationTimeStamp
public CMBufferCallbacks.Function_getPresentationTimeStamp getPresentationTimeStamp()
[@field] getDecodeTimeStamp This callback is called from CMBufferQueueGetFirstDecodeTimeStamp (once), and from CMBufferQueueGetMinDecodeTimeStamp (multiple times). It should return the decode timestamp of the buffer. If there are multiple samples in the buffer, this callback should return the minimum decode timestamp in the buffer. Can be NULL (CMBufferQueueGetFirstDecodeTimeStamp and CMBufferQueueGetMinDecodeTimeStamp will return kCMTimeInvalid).
-
setGetPresentationTimeStamp
public void setGetPresentationTimeStamp(CMBufferCallbacks.Function_getPresentationTimeStamp value)
[@field] getDecodeTimeStamp This callback is called from CMBufferQueueGetFirstDecodeTimeStamp (once), and from CMBufferQueueGetMinDecodeTimeStamp (multiple times). It should return the decode timestamp of the buffer. If there are multiple samples in the buffer, this callback should return the minimum decode timestamp in the buffer. Can be NULL (CMBufferQueueGetFirstDecodeTimeStamp and CMBufferQueueGetMinDecodeTimeStamp will return kCMTimeInvalid).
-
getDuration
public CMBufferCallbacks.Function_getDuration getDuration()
[@field] getPresentationTimeStamp This callback is called from CMBufferQueueGetFirstPresentationTimeStamp (once) and from CMBufferQueueGetMinPresentationTimeStamp (multiple times). It should return the presentation timestamp of the buffer. If there are multiple samples in the buffer, this callback should return the minimum presentation timestamp in the buffer. Can be NULL (CMBufferQueueGetFirstPresentationTimeStamp and CMBufferQueueGetMinPresentationTimeStamp will return kCMTimeInvalid).
-
setGetDuration
public void setGetDuration(CMBufferCallbacks.Function_getDuration value)
[@field] getPresentationTimeStamp This callback is called from CMBufferQueueGetFirstPresentationTimeStamp (once) and from CMBufferQueueGetMinPresentationTimeStamp (multiple times). It should return the presentation timestamp of the buffer. If there are multiple samples in the buffer, this callback should return the minimum presentation timestamp in the buffer. Can be NULL (CMBufferQueueGetFirstPresentationTimeStamp and CMBufferQueueGetMinPresentationTimeStamp will return kCMTimeInvalid).
-
isDataReady
public CMBufferCallbacks.Function_isDataReady isDataReady()
[@field] getDuration This callback is called (once) during enqueue and dequeue operations to update the total duration of the queue. Must not be NULL.
-
setIsDataReady
public void setIsDataReady(CMBufferCallbacks.Function_isDataReady value)
[@field] getDuration This callback is called (once) during enqueue and dequeue operations to update the total duration of the queue. Must not be NULL.
-
compare
public CMBufferCallbacks.Function_compare compare()
[@field] isDataReady This callback is called from CMBufferQueueDequeueIfDataReadyAndRetain, to ask if the buffer that is about to be dequeued is ready. Can be NULL (data will be assumed to be ready).
-
setCompare
public void setCompare(CMBufferCallbacks.Function_compare value)
[@field] isDataReady This callback is called from CMBufferQueueDequeueIfDataReadyAndRetain, to ask if the buffer that is about to be dequeued is ready. Can be NULL (data will be assumed to be ready).
-
dataBecameReadyNotification
public CFStringRef dataBecameReadyNotification()
[@field] compare This callback is called (multiple times) from CMBufferQueueEnqueue, to perform an insertion sort. Can be NULL (queue will be FIFO).
-
setDataBecameReadyNotification
public void setDataBecameReadyNotification(CFStringRef value)
[@field] compare This callback is called (multiple times) from CMBufferQueueEnqueue, to perform an insertion sort. Can be NULL (queue will be FIFO).
-
getSize
public CMBufferCallbacks.Function_getSize getSize()
[@field] dataBecameReadyNotification If triggers of type kCMBufferQueueTrigger_WhenDataBecomesReady are installed, the queue will listen for this notification on the head buffer. Can be NULL (then the queue won't listen for it).
-
setGetSize
public void setGetSize(CMBufferCallbacks.Function_getSize value)
[@field] dataBecameReadyNotification If triggers of type kCMBufferQueueTrigger_WhenDataBecomesReady are installed, the queue will listen for this notification on the head buffer. Can be NULL (then the queue won't listen for it).
-
-