MCPcopy Create free account
hub / github.com/IENT/YUView / addBlockValue

Method addBlockValue

YUViewLib/src/statistics/FrameTypeData.cpp:38–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36{
37
38void FrameTypeData::addBlockValue(
39 unsigned short x, unsigned short y, unsigned short w, unsigned short h, int val)
40{
41 StatsItemValue value;
42 value.pos[0] = x;
43 value.pos[1] = y;
44 value.size[0] = w;
45 value.size[1] = h;
46 value.value = val;
47
48 // Always keep the biggest block size updated.
49 unsigned int wh = w * h;
50 if (wh > maxBlockSize)
51 maxBlockSize = wh;
52
53 valueData.push_back(value);
54}
55
56void FrameTypeData::addBlockVector(
57 unsigned short x, unsigned short y, unsigned short w, unsigned short h, int vecX, int vecY)

Callers 8

loadStatisticDataMethod · 0.80
loadStatisticDataMethod · 0.80
cacheCurStatisticsMethod · 0.80
parseBlockPartitionMethod · 0.80
cacheStatisticsMethod · 0.80
cacheStatisticsMethod · 0.80

Calls

no outgoing calls

Tested by 1