Searched refs:bytesPerFile (Results 1 – 1 of 1) sorted by relevance
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/ |
H A D | plugin_texture_encode_test.cpp | 521 static void SelfCreatePixMap(uint8_t *pixelMap, size_t bytesPerFile, size_t idx) in SelfCreatePixMap() argument 524 for (size_t pixel = 0; pixel < bytesPerFile; pixel++) { in SelfCreatePixMap() 549 if (fileContent.length() < bytesPerFile) { in ReadFileExtern() 550 GTEST_LOG_(ERROR) << "File size is too small: need " << bytesPerFile << in ReadFileExtern() 554 …if (memcpy_s(pixelMap, bytesPerFile, static_cast<const char *>(fileContent.c_str()), bytesPerFile)… in ReadFileExtern() 574 size_t bytesPerFile = testPara.width * testPara.height * BYTES_PER_PIXEL; in EncodeMutiFrames() local 577 uint8_t *pixelMap = static_cast<uint8_t *>(malloc(bytesPerFile * sizeof(uint8_t))); in EncodeMutiFrames() 587 SelfCreatePixMap(pixelMap, bytesPerFile, idx); in EncodeMutiFrames() 589 TestEncRet ret = ReadFileExtern(pixelMap, bytesPerFile, idx, testPara); in EncodeMutiFrames() 873 size_t bytesPerFile = testPara.width * testPara.height * BYTES_PER_PIXEL; in EncodeMutiFramesCL() local [all …]
|