Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

Platforms to show: All Mac Windows Linux Cross-Platform

CMSampleBufferMBS.DataIsReady as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property AVFoundation MBS AVFoundation Plugin 13.2 Yes No No Yes, macOS only No
Function: Returns whether or not a CMSampleBuffer's data is ready.
Notes:
Whether or not the CMSampleBuffer's data is ready. True is returned for special marker buffers, even though they have no data. False is returned if there is an error.
(Read only property)

Feedback, Comments & Corrections

CMSampleBufferMBS.DecodeTimeStamp as CMTimeMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property AVFoundation MBS AVFoundation Plugin 13.2 Yes No No Yes, macOS only No
Function: Returns the numerically earliest decode timestamp of all the samples in a CMSampleBuffer.
Notes:
The returned decode timestamp is always the decode timestamp of the first sample in the buffer, since even out-of-presentation-order samples are expected to be in decode order in the buffer.
Numerically earliest sample decode timestamp in the CMSampleBuffer. kCMTimeInvalid is returned if there is an error.
(Read only property)

Feedback, Comments & Corrections

CMSampleBufferMBS.Duration as CMTimeMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property AVFoundation MBS AVFoundation Plugin 13.2 Yes No No Yes, macOS only No
Function: Returns the total duration of a CMSampleBuffer.
Notes:
If the buffer contains out-of-presentation-order samples, any gaps in the presentation timeline are not represented in the returned duration.
The returned duration is simply the sum of all the individual sample durations.
Returns the duration of the CMSampleBuffer. kCMTimeInvalid is returned if there is an error.
(Read only property)

Feedback, Comments & Corrections

CMSampleBufferMBS.FormatDescription as CMFormatDescriptionMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property AVFoundation MBS AVFoundation Plugin 13.2 Yes No No Yes, macOS only No
Function: Returns the format description of the samples in a CMSampleBuffer.
Notes:
Nil is returned if there is an error.
(Read only property)

Feedback, Comments & Corrections

CMSampleBufferMBS.Handle as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property AVFoundation MBS AVFoundation Plugin 13.2 Yes No No Yes, macOS only No
Function: The internal object reference.
Notes: (Read and Write property)

Feedback, Comments & Corrections

CMSampleBufferMBS.ImageBuffer as CVImageBufferMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property AVFoundation MBS AVFoundation Plugin 13.2 Yes No No Yes, macOS only No
Function: Returns a CMSampleBuffer's CVImageBuffer of media data.
Notes:
The result will be nil if the CMSampleBuffer does not contain a CVImageBuffer, if the CMSampleBuffer contains a CMBlockBuffer, or if there is some other error.
(Read only property)

Feedback, Comments & Corrections

CMSampleBufferMBS.IsValid as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property AVFoundation MBS AVFoundation Plugin 13.2 Yes No No Yes, macOS only No
Function: Queries whether a sample buffer is still valid.
Notes:
Returns false if buffer is nil or Invalidate was called, true otherwise.
Does not perform any kind of exhaustive validation of the sample buffer.
(Read only property)

Feedback, Comments & Corrections

CMSampleBufferMBS.Lasterror as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property AVFoundation MBS AVFoundation Plugin 15.0 Yes No No Yes, macOS only No
Function: The last error code.
Notes:
See error code constants.
Looking with debugger on properties of this class will change the lasterror code!
(Read and Write property)

Feedback, Comments & Corrections

CMSampleBufferMBS.NumberOfSamples as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property AVFoundation MBS AVFoundation Plugin 13.2 Yes No No Yes, macOS only No
Function: Returns the number of media samples in a CMSampleBuffer.
Notes:
The number of media samples in the CMSampleBuffer. 0 is returned if there is an error.
(Read only property)

Feedback, Comments & Corrections

CMSampleBufferMBS.OutputDecodeTimeStamp as CMTimeMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property AVFoundation MBS AVFoundation Plugin 13.2 Yes No No Yes, macOS only No
Function: Returns the output decode timestamp of the CMSampleBuffer.
Notes:
For consistency with OutputPresentationTimeStamp, this is calculated as: OutputPresentationTimeStamp + ((DecodeTimeStamp - PresentationTimeStamp) / SpeedMultiplier).
CMInvalidTime is returned if there is an error.
(Read only property)

Feedback, Comments & Corrections

CMSampleBufferMBS.OutputDuration as CMTimeMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property AVFoundation MBS AVFoundation Plugin 13.2 Yes No No Yes, macOS only No
Function: Returns the output duration of a CMSampleBuffer.
Notes:
The OutputDuration is the duration minus any trimmed duration, all divided by the SpeedMultiplier: (Duration - TrimDurationAtStart - TrimDurationAtEnd) / SpeedMultiplier
Returns the output duration of the CMSampleBuffer. kCMTimeInvalid is returned if there is an error.
(Read only property)

Feedback, Comments & Corrections

CMSampleBufferMBS.OutputPresentationTimeStamp as CMTimeMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property AVFoundation MBS AVFoundation Plugin 13.2 Yes No No Yes, macOS only No
Function: Returns the output presentation timestamp of the CMSampleBuffer.
Notes:
The output presentation timestamp is the time at which the decoded, trimmed, stretched and possibly reversed samples should commence being presented.
If CMSampleBufferSetOutputPresentationTimeStamp has been called to explicitly set the output PTS, CMSampleBufferGetOutputPresentationTimeStamp returns it.
If not, CMSampleBufferGetOutputPresentationTimeStamp calculates its result as (PresentationTimeStamp + TrimDurationAtStart) unless kCMSampleBufferAttachmentKey_Reverse is kCFBooleanTrue, in which case it calculates the result as (PresentationTimeStamp + Duration - TrimDurationAtEnd).
These are generally correct for un-stretched, un-shifted playback.
For general forward playback in a scaled edit, the OutputPresentationTimeStamp should be set to:
((PresentationTimeStamp + TrimDurationAtStart - EditStartMediaTime) / EditSpeedMultiplier) + EditStartTrackTime.
For general reversed playback:
((PresentationTimeStamp + Duration - TrimDurationAtEnd - EditStartMediaTime) / EditSpeedMultiplier) + EditStartTrackTime.
Returns kCMTimeInvalid is returned if there is an error.
(Read and Write property)

Feedback, Comments & Corrections

CMSampleBufferMBS.PresentationTimeStamp as CMTimeMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property AVFoundation MBS AVFoundation Plugin 13.2 Yes No No Yes, macOS only No
Function: Returns the numerically earliest presentation timestamp of all the samples in a CMSampleBuffer.
Notes:
For in-presentation-order samples, this is the presentation timestamp of the first sample.
For out-of-presentation-order samples, this is the presentation timestamp of the sample that will be presented first, which is not necessarily the first sample in the buffer.
Returns numerically earliest sample presentation timestamp in the CMSampleBuffer. kCMTimeInvalid is returned if there is an error.
(Read only property)

Feedback, Comments & Corrections

CMSampleBufferMBS.Text as String
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property AVFoundation MBS AVFoundation Plugin 15.4 Yes No No Yes, macOS only No
Function: For text samples, provides the text.
Notes: (Read only property)

Feedback, Comments & Corrections

CMSampleBufferMBS.TotalSampleSize as UInt64
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property AVFoundation MBS AVFoundation Plugin 13.2 Yes No No Yes, macOS only No
Function: Returns the total size in bytes of sample data in a CMSampleBuffer.
Notes:
If there are no sample sizes in this CMSampleBuffer, a size of 0 will be returned.
(Read only property)

Feedback, Comments & Corrections

The items on this page are in the following plugins: MBS AVFoundation Plugin.




Links
MBS Xojo tutorial videos