engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 所有成员列表
Audio::TAutoDeinterleaveView< T, InAllocator > 模板类 参考

TAutoDeinterleaveView 更多...

#include <DeinterleaveView.h>

+ 类 Audio::TAutoDeinterleaveView< T, InAllocator > 继承关系图:

Public 成员函数

TAutoChannelIterator begin ()
 Return an STL iterator to the first channel.
 
TAutoChannelIterator end ()
 Return an STL iterator to the end.
 
 TAutoDeinterleaveView (TArrayView< const T > InInterleavedArray, TArray< T, InAllocator > &InArrayToFill, int32 InNumChannels)
 TAutoDeinterleaveView Constructor. 更多...
 
- Public 成员函数 继承自 Audio::TDeinterleaveView< T >
template<typename InAllocator = FDefaultAllocator>
TChannelIterator< InAllocator > begin (TArray< T, InAllocator > &InArrayToFill) const
 Return an STL iterator to the first channel. 更多...
 
template<typename InAllocator = FDefaultAllocator>
TChannelIterator< InAllocator > end (TArray< T, InAllocator > &InArrayToFill) const
 Return an STL iterator to the end.
 
 TDeinterleaveView (TArrayView< const T > InInterleavedArray, int32 InNumChannels)
 TDeinterleave constructor. 更多...
 

详细描述

template<typename T, typename InAllocator = FDefaultAllocator>
class Audio::TAutoDeinterleaveView< T, InAllocator >

TAutoDeinterleaveView

TAutoDeinterlaveView provides a STL like iterators which exposes contiguous channel arrays from interleaved arrays. As opposed to TDeinterleaveView, this class can be used in range based for loops, but only one iterator is valid at a time since they all share the same InArrayToFill.

Example:

TArray<float> ArrayToFill; for (auto Channel : TAudoDeineterleaveView(InterleavedArray, ArrayToFill, 2)) { DoSomethingWithAudio(Channel.Values, Channel.ChannelIndex); }

构造及析构函数说明

◆ TAutoDeinterleaveView()

template<typename T , typename InAllocator = FDefaultAllocator>
Audio::TAutoDeinterleaveView< T, InAllocator >::TAutoDeinterleaveView ( TArrayView< const T >  InInterleavedArray,
TArray< T, InAllocator > &  InArrayToFill,
int32  InNumChannels 
)
inline

TAutoDeinterleaveView Constructor.

InInterleavedArray is the interleaved array to be deinterleaved. InArrayToFill is the array which will be populated with contiguous elements for a channel. InNumChannels is the number of channels in the deinterleaved array.


该类的文档由以下文件生成: