whdlFramesToSamples
Convert frame-based data to sample stream
Syntax
Description
[
serializes frame-based data into a stream of samples and accompanying control
signals. The control signals indicate the validity of the samples and the boundaries
of the frames. The function also returns a vector, samples
,ctrl
,len
] = whdlFramesToSamples(frames
)len
, of the
frame size corresponding to each sample.
[
inserts idle cycles in the sample stream, samples
,ctrl
,len
] = whdlFramesToSamples(frames
,postsampleidles
,postframeidles
)samples
. Specify the
number of idle cycles to insert between input samples,
postsampleidles
, and the number of idle cycles between
frames, postframeidles
.
[
creates a sample stream where each sample is represented by
samples
,ctrl
,len
] = whdlFramesToSamples(frames
,postsampleidles
,postframeidles
,samplesize
)samplesize
values. The function inserts
samplesize
zeros for each idle cycle requested. The
ctrl
and len
vectors are the same size
as when samplesize
is 1.
[
orders the sample stream, assuming the input samples are interleaved, when
samples
,ctrl
,len
] = whdlFramesToSamples(frames
,postsampleidles
,postframeidles
,samplesize
,interleaved
)interleaved
is 1 (true
). The
interleaved
argument is valid only when
samplesize
is greater than 1.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2017b