MCPcopy Create free account
hub / github.com/cisco/openh264 / RandomPixelDataGenerator

Function RandomPixelDataGenerator

test/api/DataGenerator.cpp:48–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48void RandomPixelDataGenerator (uint8_t* pPointer, int32_t iWidth, int32_t iHeight, int32_t iStride) {
49 uint8_t* pLocalPointer = pPointer;
50 for (int32_t j = 0; j < iHeight; j++) {
51 for (int32_t i = 0; i < iWidth; i++) {
52 pLocalPointer[i] = rand() % 256;
53 }
54 pLocalPointer += iStride;
55 }
56}
57
58
59void RandomResidueDataGenerator (uint16_t* pPointer, int32_t iWidth, int32_t iHeight, int32_t iStride) {

Callers 3

TestQuantFunction · 0.85
TEST_FFunction · 0.85
TESTFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestQuantFunction · 0.68