/foundation/multimedia/av_codec/test/fuzztest/hwdecoderapi11_fuzzer/ |
H A D | videodec_api11_sample.cpp | 28 constexpr uint32_t START_CODE_SIZE = 4; member 36 constexpr uint8_t START_CODE[START_CODE_SIZE] = {0, 0, 0, 1}; 220 if (size > bufferSize - START_CODE_SIZE) { in InputFuncFUZZ() 224 if (memcpy_s(bufferAddr, bufferSize, START_CODE, START_CODE_SIZE) != EOK) { in InputFuncFUZZ() 228 if (memcpy_s(bufferAddr + START_CODE_SIZE, bufferSize - START_CODE_SIZE, data, size) != EOK) { in InputFuncFUZZ() 414 (void)inFile_->read(ch, START_CODE_SIZE); in PushData() 429 uint8_t *fileBuffer = new uint8_t[bufferSize + START_CODE_SIZE]; in SendData() 434 if (memcpy_s(fileBuffer, bufferSize + START_CODE_SIZE, START_CODE, START_CODE_SIZE) ! in SendData() [all...] |
H A D | hwdecoderapi11_fuzzer.cpp | 32 constexpr uint32_t START_CODE_SIZE = 4; variable 33 constexpr uint8_t SPS[SPS_SIZE + START_CODE_SIZE] = {0x00, 0x00, 0x00, 0x01, 0x67, 0x64, 0x00, 0x28, 0xAC, 37 constexpr uint8_t PPS[PPS_SIZE + START_CODE_SIZE] = {0x00, 0x00, 0x00, 0x01, 0x68, 0xEF, 0x0F, 0x2C, 0x8B}; 89 g_vDecSample->InputFuncFUZZ(SPS, SPS_SIZE + START_CODE_SIZE); in HwdecoderApi11FuzzTest() 90 g_vDecSample->InputFuncFUZZ(PPS, PPS_SIZE + START_CODE_SIZE); in HwdecoderApi11FuzzTest()
|
/foundation/multimedia/av_codec/test/fuzztest/hevcswdecoderapi11_fuzzer/ |
H A D | videodec_api11_sample.cpp | 28 constexpr uint32_t START_CODE_SIZE = 4; member 36 constexpr uint8_t START_CODE[START_CODE_SIZE] = {0, 0, 0, 1}; 220 if (size > bufferSize - START_CODE_SIZE) { in InputFuncFUZZ() 224 if (memcpy_s(bufferAddr, bufferSize, START_CODE, START_CODE_SIZE) != EOK) { in InputFuncFUZZ() 228 if (memcpy_s(bufferAddr + START_CODE_SIZE, bufferSize - START_CODE_SIZE, data, size) != EOK) { in InputFuncFUZZ() 414 (void)inFile_->read(ch, START_CODE_SIZE); in PushData() 429 uint8_t *fileBuffer = new uint8_t[bufferSize + START_CODE_SIZE]; in SendData() 434 if (memcpy_s(fileBuffer, bufferSize + START_CODE_SIZE, START_CODE, START_CODE_SIZE) ! in SendData() [all...] |
H A D | hevcswdecoderapi11_fuzzer.cpp | 32 constexpr uint32_t START_CODE_SIZE = 4; variable 33 constexpr uint8_t SPS[SPS_SIZE + START_CODE_SIZE] = {0x00, 0x00, 0x00, 0x01, 0x67, 0x64, 0x00, 0x28, 0xAC, 37 constexpr uint8_t PPS[PPS_SIZE + START_CODE_SIZE] = {0x00, 0x00, 0x00, 0x01, 0x68, 0xEF, 0x0F, 0x2C, 0x8B}; 89 g_vDecSample->InputFuncFUZZ(SPS, SPS_SIZE + START_CODE_SIZE); in HwdecoderApi11FuzzTest() 90 g_vDecSample->InputFuncFUZZ(PPS, PPS_SIZE + START_CODE_SIZE); in HwdecoderApi11FuzzTest()
|
/foundation/multimedia/av_codec/test/fuzztest/hwdecoder_fuzzer/ |
H A D | hwdecoder_fuzzer.cpp | 31 constexpr uint32_t START_CODE_SIZE = 4; variable 32 constexpr uint8_t SPS[SPS_SIZE + START_CODE_SIZE] = {0x00, 0x00, 0x00, 0x01, 0x67, 0x64, 0x00, 0x28, 0xAC, 36 constexpr uint8_t PPS[PPS_SIZE + START_CODE_SIZE] = {0x00, 0x00, 0x00, 0x01, 0x68, 0xEF, 0x0F, 0x2C, 0x8B}; 83 g_vDecSample->InputFuncFUZZ(SPS, SPS_SIZE + START_CODE_SIZE); in HwdecoderFuzzTest() 84 g_vDecSample->InputFuncFUZZ(PPS, PPS_SIZE + START_CODE_SIZE); in HwdecoderFuzzTest()
|
H A D | videodec_sample.cpp | 30 constexpr uint32_t START_CODE_SIZE = 4; member 31 constexpr uint8_t START_CODE[START_CODE_SIZE] = {0, 0, 0, 1}; 292 switch (frameBuffer[START_CODE_SIZE] & H264_NALU_TYPE) { in CopyStartCode() 296 if (memcpy_s(frameBuffer, bufferSize + START_CODE_SIZE, START_CODE, START_CODE_SIZE) != EOK) { in CopyStartCode() 300 attr.size = bufferSize + START_CODE_SIZE; in CopyStartCode() 305 if (memcpy_s(frameBuffer, bufferSize + START_CODE_SIZE, START_CODE, START_CODE_SIZE) != EOK) { in CopyStartCode() 309 attr.size = bufferSize + START_CODE_SIZE; in CopyStartCode() 319 (void)inFile_->read(reinterpret_cast<char *>(ch), START_CODE_SIZE); in ReadData() local [all...] |
/foundation/multimedia/av_codec/test/fuzztest/hevcswdecoderconfigure_fuzzer/ |
H A D | videodec_sample.cpp | 33 constexpr uint32_t START_CODE_SIZE = 4; member 34 constexpr uint8_t START_CODE[START_CODE_SIZE] = {0, 0, 0, 1}; 306 switch (frameBuffer[START_CODE_SIZE] & H264_NALU_TYPE) { in CopyStartCode() 310 if (memcpy_s(frameBuffer, bufferSize + START_CODE_SIZE, START_CODE, START_CODE_SIZE) != EOK) { in CopyStartCode() 314 attr.size = bufferSize + START_CODE_SIZE; in CopyStartCode() 319 if (memcpy_s(frameBuffer, bufferSize + START_CODE_SIZE, START_CODE, START_CODE_SIZE) != EOK) { in CopyStartCode() 323 attr.size = bufferSize + START_CODE_SIZE; in CopyStartCode() 333 (void)inFile_->read(reinterpret_cast<char *>(ch), START_CODE_SIZE); in ReadData() local [all...] |
/foundation/multimedia/av_codec/test/fuzztest/swdecoderconfigure_fuzzer/ |
H A D | videodec_sample.cpp | 33 constexpr uint32_t START_CODE_SIZE = 4; member 34 constexpr uint8_t START_CODE[START_CODE_SIZE] = {0, 0, 0, 1}; 306 switch (frameBuffer[START_CODE_SIZE] & H264_NALU_TYPE) { in CopyStartCode() 310 if (memcpy_s(frameBuffer, bufferSize + START_CODE_SIZE, START_CODE, START_CODE_SIZE) != EOK) { in CopyStartCode() 314 attr.size = bufferSize + START_CODE_SIZE; in CopyStartCode() 319 if (memcpy_s(frameBuffer, bufferSize + START_CODE_SIZE, START_CODE, START_CODE_SIZE) != EOK) { in CopyStartCode() 323 attr.size = bufferSize + START_CODE_SIZE; in CopyStartCode() 333 (void)inFile_->read(reinterpret_cast<char *>(ch), START_CODE_SIZE); in ReadData() local [all...] |
/foundation/multimedia/av_codec/test/moduletest/vcodec/hwdecoder/src/InnerAPI/ |
H A D | videodec_ndk_inner_sample.cpp | 40 constexpr uint32_t START_CODE_SIZE = 4; member 41 constexpr uint8_t START_CODE[START_CODE_SIZE] = {0, 0, 0, 1}; 326 (void)inFile_->read(ch, START_CODE_SIZE); in PushData() 355 uint8_t *fileBuffer = new uint8_t[bufferSize + START_CODE_SIZE]; in SendData() 361 if (memcpy_s(fileBuffer, bufferSize + START_CODE_SIZE, START_CODE, START_CODE_SIZE) != EOK) { in SendData() 365 (void)inFile_->read((char *)fileBuffer + START_CODE_SIZE, bufferSize); in SendData() 366 if ((fileBuffer[START_CODE_SIZE] & H264_NALU_TYPE) == SPS || in SendData() 367 (fileBuffer[START_CODE_SIZE] & H264_NALU_TYPE) == PPS) { in SendData() 374 if (size < (int32_t)(bufferSize + START_CODE_SIZE)) { in SendData() [all...] |
/foundation/multimedia/av_codec/test/moduletest/vcodec/swdecoder/src/InnerAPI/ |
H A D | videodec_ndk_inner_sample.cpp | 35 constexpr uint32_t START_CODE_SIZE = 4; member 36 constexpr uint8_t START_CODE[START_CODE_SIZE] = {0, 0, 0, 1}; 364 (void)inFile_->read(reinterpret_cast<char *>(ch), START_CODE_SIZE); in ReadData() local 390 uint8_t *frameBuffer = new uint8_t[bufferSize + START_CODE_SIZE]; in SendData() 391 (void)inFile_->read(reinterpret_cast<char *>(frameBuffer + START_CODE_SIZE), bufferSize); in SendData() 454 switch (frameBuffer[START_CODE_SIZE] & H264_NALU_TYPE) { in CopyStartCode() 458 if (memcpy_s(frameBuffer, bufferSize + START_CODE_SIZE, START_CODE, START_CODE_SIZE) != EOK) { in CopyStartCode() 463 info.size = bufferSize + START_CODE_SIZE; in CopyStartCode() 468 if (memcpy_s(frameBuffer, bufferSize + START_CODE_SIZE, START_COD in CopyStartCode() [all...] |
/foundation/multimedia/av_codec/test/moduletest/vcodec/hevcswdecoder/src/ |
H A D | videodec_ndk_sample.cpp | 40 constexpr uint32_t START_CODE_SIZE = 4; member 41 constexpr uint8_t START_CODE[START_CODE_SIZE] = {0, 0, 0, 1}; 605 (void)inFile_->read(ch, START_CODE_SIZE); in PushData() 641 uint8_t *fileBuffer = new uint8_t[bufferSize + START_CODE_SIZE]; in SendData() 646 if (memcpy_s(fileBuffer, bufferSize + START_CODE_SIZE, START_CODE, START_CODE_SIZE) != EOK) { in SendData() 649 (void)inFile_->read(reinterpret_cast<char*>(fileBuffer) + START_CODE_SIZE, bufferSize); in SendData() 650 if ((fileBuffer[START_CODE_SIZE] & H264_NALU_TYPE) == SPS || in SendData() 651 (fileBuffer[START_CODE_SIZE] & H264_NALU_TYPE) == PPS) { in SendData() 657 if (size < bufferSize + START_CODE_SIZE) { in SendData() [all...] |
H A D | videodec_api11_sample.cpp | 41 constexpr uint32_t START_CODE_SIZE = 4; member 42 constexpr uint8_t START_CODE[START_CODE_SIZE] = {0, 0, 0, 1}; 659 (void)inFile_->read(ch, START_CODE_SIZE); in PushData() 703 uint8_t *fileBuffer = new uint8_t[bufferSize + START_CODE_SIZE]; in SendData() 708 if (memcpy_s(fileBuffer, bufferSize + START_CODE_SIZE, START_CODE, START_CODE_SIZE) != EOK) { in SendData() 711 (void)inFile_->read(reinterpret_cast<char*>(fileBuffer) + START_CODE_SIZE, bufferSize); in SendData() 712 if ((fileBuffer[START_CODE_SIZE] & H264_NALU_TYPE) == SPS || in SendData() 713 (fileBuffer[START_CODE_SIZE] & H264_NALU_TYPE) == PPS) { in SendData() 719 if (size < bufferSize + START_CODE_SIZE) { in SendData() [all...] |
/foundation/multimedia/av_codec/test/moduletest/vcodec/hwdecoder/src/ |
H A D | videodec_ndk_sample.cpp | 34 constexpr uint32_t START_CODE_SIZE = 4; member 35 constexpr uint8_t START_CODE[START_CODE_SIZE] = {0, 0, 0, 1}; 544 (void)inFile_->read(ch, START_CODE_SIZE); in PushData() 580 uint8_t *fileBuffer = new uint8_t[bufferSize + START_CODE_SIZE]; in SendData() 585 if (memcpy_s(fileBuffer, bufferSize + START_CODE_SIZE, START_CODE, START_CODE_SIZE) != EOK) { in SendData() 588 (void)inFile_->read((char *)fileBuffer + START_CODE_SIZE, bufferSize); in SendData() 589 if ((fileBuffer[START_CODE_SIZE] & H264_NALU_TYPE) == SPS || in SendData() 590 (fileBuffer[START_CODE_SIZE] & H264_NALU_TYPE) == PPS) { in SendData() 596 if (size < bufferSize + START_CODE_SIZE) { in SendData() [all...] |
H A D | videodec_api11_sample.cpp | 40 constexpr uint32_t START_CODE_SIZE = 4; member 41 constexpr uint8_t START_CODE[START_CODE_SIZE] = {0, 0, 0, 1}; 649 (void)inFile_->read(ch, START_CODE_SIZE); in PushData() 691 uint8_t *fileBuffer = new uint8_t[bufferSize + START_CODE_SIZE]; in SendData() 696 if (memcpy_s(fileBuffer, bufferSize + START_CODE_SIZE, START_CODE, START_CODE_SIZE) != EOK) { in SendData() 699 (void)inFile_->read(reinterpret_cast<char *>(fileBuffer) + START_CODE_SIZE, bufferSize); in SendData() 700 if ((fileBuffer[START_CODE_SIZE] & H264_NALU_TYPE) == SPS || in SendData() 701 (fileBuffer[START_CODE_SIZE] & H264_NALU_TYPE) == PPS) { in SendData() 707 if (size < bufferSize + START_CODE_SIZE) { in SendData() [all...] |
/foundation/multimedia/av_codec/test/moduletest/vcodec/swdecoder/src/ |
H A D | videodec_api11_sample.cpp | 34 constexpr uint32_t START_CODE_SIZE = 4; member 35 constexpr uint8_t START_CODE[START_CODE_SIZE] = {0, 0, 0, 1}; 526 (void)inFile_->read(ch, START_CODE_SIZE); in PushData() 568 uint8_t *fileBuffer = new uint8_t[bufferSize + START_CODE_SIZE]; in SendData() 573 if (memcpy_s(fileBuffer, bufferSize + START_CODE_SIZE, START_CODE, START_CODE_SIZE) != EOK) { in SendData() 576 (void)inFile_->read(reinterpret_cast<char *>(fileBuffer) + START_CODE_SIZE, bufferSize); in SendData() 577 if ((fileBuffer[START_CODE_SIZE] & H264_NALU_TYPE) == SPS || in SendData() 578 (fileBuffer[START_CODE_SIZE] & H264_NALU_TYPE) == PPS) { in SendData() 584 if (size < bufferSize + START_CODE_SIZE) { in SendData() [all...] |
H A D | videodec_ndk_sample.cpp | 35 constexpr uint32_t START_CODE_SIZE = 4; member 36 constexpr uint8_t START_CODE[START_CODE_SIZE] = {0, 0, 0, 1}; 483 switch (frameBuffer[START_CODE_SIZE] & H264_NALU_TYPE) { in CopyStartCode() 487 if (memcpy_s(frameBuffer, bufferSize + START_CODE_SIZE, START_CODE, START_CODE_SIZE) != EOK) { in CopyStartCode() 491 attr.size = bufferSize + START_CODE_SIZE; in CopyStartCode() 496 if (memcpy_s(frameBuffer, bufferSize + START_CODE_SIZE, START_CODE, START_CODE_SIZE) != EOK) { in CopyStartCode() 500 attr.size = bufferSize + START_CODE_SIZE; in CopyStartCode() 520 (void)inFile_->read(reinterpret_cast<char *>(ch), START_CODE_SIZE); in ReadData() local [all...] |