Skip to main content
←API Reference ←NSDK

PlaybackDatasetLoader


Declaration​

class PlaybackDatasetLoader

Summary​

Base class for loading playback dataset data from various sources. This class provides a base implementation that must be subclassed. Subclasses must override loadCaptureJSON(), loadImage(imageName:), loadDepthData(depthFileName:), and loadDepthConfidence(confidenceFileName:) to provide concrete implementations. The loader uses on-demand loading - only the capture JSON is loaded upfront, and frame images/depth data are loaded when requested by PlaybackDataset.

Notice

Note: This class acts as an abstract base class. Do not instantiate directly.


Constructors​

init()

Methods​

NameTypeSummary
infoString
Returns details about the loader configuration.
loadCaptureJSONData?
Loads the capture JSON data from the data source.
This method must be overridden by subclasses. The base implementation reports the
missing override and returns nil.
loadDatasetPlaybackDataset?
Loads a dataset from the data source.
This method only loads the capture JSON metadata upfront. Frame images and depth data
are loaded on-demand when requested, reducing memory pressure for large datasets.
loadDepthConfidenceData?
Loads depth confidence data from the data source.
This method must be overridden by subclasses. The base implementation reports the
missing override and returns nil.
Called on-demand when confidence data is requested.
loadDepthDataData?
Loads depth data from the data source.
This method must be overridden by subclasses. The base implementation reports the
missing override and returns nil.
Called on-demand when depth data is requested.
loadImageCGImage?
Loads an image from the data source.
This method must be overridden by subclasses. The base implementation reports the
missing override and returns nil.
Called on-demand when a frame image is requested.

Relationships​

conforms to: PlaybackDatasetSource
derived: BundlePlaybackDatasetLoader