Package: android.hardware.cas.native@1.0

IDescrambler

interface IDescrambler extends IDescramblerBase

IDescrambler is the native plugin API for descrambling operations.

Methods

descramble

descramble (ScramblingControl scramblingControl, vec<SubSample> subSamples, SharedBuffer srcBuffer, uint64_t srcOffset, DestinationBuffer dstBuffer, uint64_t dstOffset)
generates (Status status, uint32_t bytesWritten, string detailedError)

Descramble the data in a source SharedBuffer, described by an array of SubSample structures.

Details
Parameters
scramblingControl
an enumeration indicating the key that the subsamples were scrambled with.
subSamples
an array of SubSample structures describing the number of clear and scrambled bytes within each subsample.
srcBuffer
the SharedBuffer containing the source scrambled data.
srcOffset
the position where the source scrambled data starts at.
dstBuffer
the DestinationBuffer to hold the descrambled data.
dstOffset
the position where the descrambled data should start at.
Generates
status
the status of the call.
bytesWritten
number of bytes that have been successfully descrambled.
detailedError
a detailed message describing the error(if any).