| 36 | { |
| 37 | |
| 38 | void 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 | |
| 56 | void FrameTypeData::addBlockVector( |
| 57 | unsigned short x, unsigned short y, unsigned short w, unsigned short h, int vecX, int vecY) |
no outgoing calls