HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ImfPartHelper.h File Reference
#include "ImfChannelList.h"
#include "ImfExport.h"
#include "ImfForward.h"
#include "ImfMultiPartInputFile.h"
#include "ImfMultiView.h"
#include "ImfNamespace.h"
#include "ImfStandardAttributes.h"
#include "ImfStringVectorAttribute.h"
#include <map>
#include <set>
#include <string>
+ Include dependency graph for ImfPartHelper.h:

Go to the source code of this file.

Classes

struct  MultiViewChannelName
 

Functions

template<typename T >
int SplitChannels (const T &begin, const T &end, bool multipart=true, const std::string &heroView=std::string())
 assigns individual channels to different parts based on their layer and view name input is an array, list, vector etc of MultiViewChannelName objects on entry, each MultiViewChannelName name/view must be set (view can be empty if not multiview) More...
 
template<class T >
void GetChannelsInMultiPartFile (const MultiPartInputFile &file, T &chans)
 

Function Documentation

template<class T >
void GetChannelsInMultiPartFile ( const MultiPartInputFile file,
T &  chans 
)
inline

Definition at line 191 of file ImfPartHelper.h.

template<typename T >
int SplitChannels ( const T &  begin,
const T &  end,
bool  multipart = true,
const std::string heroView = std::string () 
)
inline

assigns individual channels to different parts based on their layer and view name input is an array, list, vector etc of MultiViewChannelName objects on entry, each MultiViewChannelName name/view must be set (view can be empty if not multiview)

if singlepart set, then on exit part_number will be zero, and internal_name will have view name inserted otherwise, each channel will be assigned to a different part based on its layer name and view name

Parameters
beginpointer to first MultiViewChannelName item
endpointer to end of MultiViewChannelName item array
Returns
total number of parts required

Definition at line 87 of file ImfPartHelper.h.