refineSampleLocation(_:refinementData:refinementDataLength:refinedLocation:)
Produces an exact sample location based on the estimated sample location and refinement data that you specify.
Declaration
optional func refineSampleLocation(_ estimatedSampleLocation: AVSampleCursorStorageRange, refinementData: UnsafePointer<UInt8>, refinementDataLength: Int, refinedLocation refinedLocationOut: UnsafeMutablePointer<AVSampleCursorStorageRange>) throwsParameters
- estimatedSampleLocation:
The estimated sample location.
- refinementData:
The refinement data.
- refinementDataLength:
The length of the refinement data in bytes.
- refinedLocationOut:
The starting file offset and size of the sample in bytes.
Discussion
Use estimatedSampleLocation() to obtain the estimated sample location to pass to this method.