Class CMBufferCallbacks


  • public final class CMBufferCallbacks
    extends org.moe.natj.c.StructObject
    • Constructor Detail

      • CMBufferCallbacks

        public CMBufferCallbacks()
      • CMBufferCallbacks

        protected CMBufferCallbacks​(org.moe.natj.general.Pointer peer)
    • 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.
      • 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).