27 #include "lib/hash-combine.hpp" 46 const string DUMMY_FUN_ID{
"dummyFun(TestFrame)"};
59 new(buff)
TestFrame{uint(frameNr), flavour};
76 for (uint i=0; i<chanCnt; ++i)
77 new(buffArry+i)
TestFrame{uint(frameNr), flavour+i};
90 for (uint i=0; i<chanCnt; ++i)
106 const uint SIZ = buffArry->data64().size();
107 for (uint i=0; i<SIZ; ++i)
109 uint64_t feed{param};
110 for (uint c=0; c<chanCnt; ++c)
112 auto& data = buffArry[c].data64()[i];
117 for (uint c=0; c<chanCnt; ++c)
118 buffArry[c].markChecksum();
133 auto calculate = [](uint64_t chain, uint64_t val){
lib::hash::combine(chain,val);
return chain; };
134 for (
auto& [res,src] :
zip (out->data64(), in->data64()))
135 res = calculate(param, src);
153 for (
auto& [res,inA,inB] :
zip (out->
data()
156 res = lround((1-mix)*inA + mix*inB);
void manipulateMultichan(TestFrame *buffArry, uint chanCnt, uint64_t param)
»process« a planar multi channel array of data frames in-place.
Mock data frame for simulated rendering.
void generateMultichan(TestFrame *buffArry, uint chanCnt, size_t frameNr, uint flavour)
produce planar multi channel output of random data frames
_Arr & data()
Array-style direct access to the payload data.
void combine(size_t &combinedHash, size_t additionalHash)
meld the additional hash value into the given base hash value.
A faked »media calculation« environment to validate the render node network.
void generateFrame(TestFrame *buff, size_t frameNr, uint flavour)
produce sequences of frames with (reproducible) random data
Steam-Layer implementation namespace root.
void duplicateMultichan(TestFrame *outArry, TestFrame *inArry, uint chanCnt)
create an identical clone copy of the planar multi channel frame array
Access point to singletons and other kinds of dependencies designated by type.
Iterator builder to combine several iterables into a tuple sequence.
void manipulateFrame(TestFrame *out, TestFrame const *in, uint64_t param)
»process« random frame date by hash-chaining with a parameter.
void combineFrames(TestFrame *out, TestFrame const *srcA, TestFrame const *srcB, double mix)
mix two random data frames by a parameter-controlled proportion
HashVal markChecksum()
recompute and store checksum based on current contents
lib::Depend< TestRandOntology > testRand
Storage for the Singleton-Accessor/Factory.
auto zip(ITS &&...iters)
Build a tuple-combining iterator builder.