MCPcopy Create free account
hub / github.com/ImageEngine/cortex / asClumpedList

Method asClumpedList

src/IECore/FrameList.cpp:55–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53}
54
55void FrameList::asClumpedList( std::vector< std::vector<Frame> > &clumpedFrames, unsigned int clumpSize ) const
56{
57 clumpedFrames.clear();
58
59 std::vector<Frame> frames;
60 asList( frames );
61
62 size_t idx = 0;
63 while ( idx < frames.size() )
64 {
65 size_t thisClumpSize = std::min( frames.size() - idx, (size_t)clumpSize );
66
67 size_t j = 0;
68 std::vector<Frame> clump;
69 while ( j < thisClumpSize )
70 {
71 clump.push_back( frames[ idx + j ] );
72 j++;
73 }
74 clumpedFrames.push_back( clump );
75
76 idx += thisClumpSize;
77 }
78}
79
80FrameListPtr FrameList::parse( const std::string &frameList )
81{

Callers 2

testClumpingMethod · 0.45
clumpedFileNamesMethod · 0.45

Calls 2

clearMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected