Home
last modified time | relevance | path

Searched refs:avAllocator (Results 1 - 11 of 11) sorted by relevance

/foundation/multimedia/av_codec/test/unittest/audio_test/
H A Daudio_media_codec_unit_test.cpp381 std::shared_ptr<AVAllocator> avAllocator = in HWTEST_F() local
383 std::shared_ptr<AVBuffer> inputBuffer = AVBuffer::CreateAVBuffer(avAllocator, BUFFER_CAPACITY_SAMLL); in HWTEST_F()
403 std::shared_ptr<AVAllocator> avAllocator = in HWTEST_F() local
405 std::shared_ptr<AVBuffer> inputBuffer = AVBuffer::CreateAVBuffer(avAllocator, BUFFER_CAPACITY_SAMLL); in HWTEST_F()
426 std::shared_ptr<AVAllocator> avAllocator = in HWTEST_F() local
428 std::shared_ptr<AVBuffer> inputBuffer = AVBuffer::CreateAVBuffer(avAllocator, BUFFER_CAPACITY_SAMLL); in HWTEST_F()
438 std::shared_ptr<AVAllocator> avAllocator = in HWTEST_F() local
440 std::shared_ptr<AVBuffer> inputBuffer = AVBuffer::CreateAVBuffer(avAllocator, BUFFER_CAPACITY_SAMLL); in HWTEST_F()
451 std::shared_ptr<AVAllocator> avAllocator = AVAllocatorFactory::CreateSharedAllocator(MemoryFlag::MEMORY_READ_WRITE); in HWTEST_F() local
452 std::shared_ptr<AVBuffer> inputBuffer = AVBuffer::CreateAVBuffer(avAllocator, BUFFER_CAPACITY_SAML in HWTEST_F()
463 std::shared_ptr<AVAllocator> avAllocator = AVAllocatorFactory::CreateSharedAllocator(MemoryFlag::MEMORY_READ_WRITE); HWTEST_F() local
544 std::shared_ptr<AVAllocator> avAllocator = HWTEST_F() local
603 std::shared_ptr<AVAllocator> avAllocator = AVAllocatorFactory::CreateSharedAllocator(MemoryFlag::MEMORY_READ_WRITE); HWTEST_F() local
616 std::shared_ptr<AVAllocator> avAllocator = AVAllocatorFactory::CreateSharedAllocator(MemoryFlag::MEMORY_READ_WRITE); HWTEST_F() local
636 std::shared_ptr<AVAllocator> avAllocator = AVAllocatorFactory::CreateSharedAllocator(MemoryFlag::MEMORY_READ_WRITE); HWTEST_F() local
656 std::shared_ptr<AVAllocator> avAllocator = AVAllocatorFactory::CreateSharedAllocator(MemoryFlag::MEMORY_READ_WRITE); HWTEST_F() local
677 std::shared_ptr<AVAllocator> avAllocator = AVAllocatorFactory::CreateSharedAllocator(MemoryFlag::MEMORY_READ_WRITE); HWTEST_F() local
691 std::shared_ptr<AVAllocator> avAllocator = HWTEST_F() local
729 std::shared_ptr<AVAllocator> avAllocator = HWTEST_F() local
752 std::shared_ptr<AVAllocator> avAllocator = HWTEST_F() local
797 std::shared_ptr<AVAllocator> avAllocator = HWTEST_F() local
844 std::shared_ptr<AVAllocator> avAllocator = HWTEST_F() local
[all...]
/foundation/multimedia/av_codec/test/unittest/audio_capture_test/
H A Daudio_capture_module_unit_test.cpp231 std::shared_ptr<AVAllocator> avAllocator = in HWTEST_F() local
234 std::shared_ptr<AVBuffer> buffer = AVBuffer::CreateAVBuffer(avAllocator, capacity); in HWTEST_F()
244 std::shared_ptr<AVAllocator> avAllocator = in HWTEST_F() local
246 std::shared_ptr<AVBuffer> buffer = AVBuffer::CreateAVBuffer(avAllocator); in HWTEST_F()
253 std::shared_ptr<AVAllocator> avAllocator = in HWTEST_F() local
255 std::shared_ptr<AVBuffer> buffer = AVBuffer::CreateAVBuffer(avAllocator); in HWTEST_F()
273 std::shared_ptr<AVAllocator> avAllocator = in HWTEST_F() local
276 std::shared_ptr<AVBuffer> buffer = AVBuffer::CreateAVBuffer(avAllocator, capacity); in HWTEST_F()
349 std::shared_ptr<AVAllocator> avAllocator = in HWTEST_F() local
352 std::shared_ptr<AVBuffer> buffer = AVBuffer::CreateAVBuffer(avAllocator, capacit in HWTEST_F()
522 std::shared_ptr<AVAllocator> avAllocator = HWTEST_F() local
[all...]
/foundation/multimedia/av_codec/test/fuzztest/drmdecryptor_fuzzer/
H A Ddrmdecryptor_fuzzer.cpp444 std::shared_ptr<AVAllocator> avAllocator = AVAllocatorFactory::CreateSharedAllocator(memFlag); in DrmH264VideoCencDecrypt() local
445 DRM_DECRYPTOR_FUZZ_CHECK_AND_RETURN_RET(avAllocator != nullptr, false); in DrmH264VideoCencDecrypt()
446 std::shared_ptr<AVBuffer> drmInBuf = AVBuffer::CreateAVBuffer(avAllocator, in DrmH264VideoCencDecrypt()
454 std::shared_ptr<AVBuffer> drmOutBuf = AVBuffer::CreateAVBuffer(avAllocator, in DrmH264VideoCencDecrypt()
489 std::shared_ptr<AVAllocator> avAllocator = AVAllocatorFactory::CreateSharedAllocator(memFlag); in DrmH264VideoCencDecryptFuzzTest() local
490 DRM_DECRYPTOR_FUZZ_CHECK_AND_RETURN_RET(avAllocator != nullptr, false); in DrmH264VideoCencDecryptFuzzTest()
491 std::shared_ptr<AVBuffer> drmInBuf = AVBuffer::CreateAVBuffer(avAllocator, static_cast<int32_t>(dataSize)); in DrmH264VideoCencDecryptFuzzTest()
500 std::shared_ptr<AVBuffer> drmOutBuf = AVBuffer::CreateAVBuffer(avAllocator, static_cast<int32_t>(dataSize)); in DrmH264VideoCencDecryptFuzzTest()
528 std::shared_ptr<AVAllocator> avAllocator = AVAllocatorFactory::CreateSharedAllocator(memFlag); in DrmHevcVideoCencDecrypt() local
529 DRM_DECRYPTOR_FUZZ_CHECK_AND_RETURN_RET(avAllocator ! in DrmHevcVideoCencDecrypt()
576 std::shared_ptr<AVAllocator> avAllocator = AVAllocatorFactory::CreateSharedAllocator(memFlag); DrmHevcVideoCencDecryptFuzzTest() local
615 std::shared_ptr<AVAllocator> avAllocator = AVAllocatorFactory::CreateSharedAllocator(memFlag); DrmAvsVideoCencDecrypt() local
663 std::shared_ptr<AVAllocator> avAllocator = AVAllocatorFactory::CreateSharedAllocator(memFlag); DrmAvsVideoCencDecryptFuzzTest() local
699 std::shared_ptr<AVAllocator> avAllocator = AVAllocatorFactory::CreateSharedAllocator(memFlag); DrmAudioCencDecryptTest() local
741 std::shared_ptr<AVAllocator> avAllocator = AVAllocatorFactory::CreateSharedAllocator(memFlag); DrmAudioCencDecryptFuzzTest() local
[all...]
/foundation/multimedia/av_codec/test/unittest/avcenc_info_test/
H A Dcenc_info_capi_unit_test.cpp397 std::shared_ptr<AVAllocator> avAllocator = AVAllocatorFactory::CreateSharedAllocator(memFlag); in HWTEST_F() local
398 EXPECT_NE(avAllocator, nullptr); in HWTEST_F()
400 std::shared_ptr<AVBuffer> inBuf = AVBuffer::CreateAVBuffer(avAllocator, static_cast<int32_t>(DRM_KEY_ID_SIZE)); in HWTEST_F()
441 std::shared_ptr<AVAllocator> avAllocator = AVAllocatorFactory::CreateSharedAllocator(memFlag); in HWTEST_F() local
442 EXPECT_NE(avAllocator, nullptr); in HWTEST_F()
444 std::shared_ptr<AVBuffer> inBuf = AVBuffer::CreateAVBuffer(avAllocator, static_cast<int32_t>(DRM_KEY_ID_SIZE)); in HWTEST_F()
/foundation/multimedia/av_codec/test/fuzztest/avcencinfo_fuzzer/
H A Davcencinfo_fuzzer.cpp275 std::shared_ptr<AVAllocator> avAllocator = AVAllocatorFactory::CreateSharedAllocator(memFlag); in CencInfoSetAVBuffer() local
276 AV_CENC_INFO_FUZZ_CHECK_AND_RETURN_RET(avAllocator != nullptr, false); in CencInfoSetAVBuffer()
278 std::shared_ptr<AVBuffer> inBuf = AVBuffer::CreateAVBuffer(avAllocator, static_cast<int32_t>(DRM_KEY_ID_SIZE)); in CencInfoSetAVBuffer()
333 std::shared_ptr<AVAllocator> avAllocator = AVAllocatorFactory::CreateSharedAllocator(memFlag); in CencInfoSetAVBufferFuzzTest() local
334 AV_CENC_INFO_FUZZ_CHECK_AND_RETURN_RET(avAllocator != nullptr, false); in CencInfoSetAVBufferFuzzTest()
336 std::shared_ptr<AVBuffer> inBuf = AVBuffer::CreateAVBuffer(avAllocator, static_cast<int32_t>(DRM_KEY_ID_SIZE)); in CencInfoSetAVBufferFuzzTest()
/foundation/multimedia/av_codec/services/media_engine/modules/media_codec/
H A Dmedia_codec.cpp429 std::shared_ptr<AVAllocator> avAllocator; in AttachBufffer() local
432 avAllocator = AVAllocatorFactory::CreateVirtualAllocator(); in AttachBufffer()
435 avAllocator = AVAllocatorFactory::CreateSharedAllocator(MemoryFlag::MEMORY_READ_WRITE); in AttachBufffer()
437 std::shared_ptr<AVBuffer> inputBuffer = AVBuffer::CreateAVBuffer(avAllocator, capacity); in AttachBufffer()
454 std::shared_ptr<AVAllocator> avAllocator; in AttachDrmBufffer() local
455 avAllocator = AVAllocatorFactory::CreateSharedAllocator(MemoryFlag::MEMORY_READ_WRITE); in AttachDrmBufffer()
456 FALSE_RETURN_V_MSG_E(avAllocator != nullptr, Status::ERROR_UNKNOWN, in AttachDrmBufffer()
457 "avAllocator is nullptr"); in AttachDrmBufffer()
459 drmInbuf = AVBuffer::CreateAVBuffer(avAllocator, size); in AttachDrmBufffer()
466 drmOutbuf = AVBuffer::CreateAVBuffer(avAllocator, siz in AttachDrmBufffer()
574 auto avAllocator = AVAllocatorFactory::CreateSharedAllocator(MemoryFlag::MEMORY_READ_WRITE); PrepareOutputBufferQueue() local
[all...]
/foundation/multimedia/av_codec/test/unittest/video_test/drm_decryptor_test/
H A Ddrm_decryptor_coverage_unit_test.cpp490 std::shared_ptr<AVAllocator> avAllocator = AVAllocatorFactory::CreateSharedAllocator(memFlag); in HWTEST_F() local
491 EXPECT_NE(avAllocator, nullptr); in HWTEST_F()
492 std::shared_ptr<AVBuffer> drmInBuf = AVBuffer::CreateAVBuffer(avAllocator, in HWTEST_F()
498 std::shared_ptr<AVBuffer> drmOutBuf = AVBuffer::CreateAVBuffer(avAllocator, in HWTEST_F()
532 std::shared_ptr<AVAllocator> avAllocator = AVAllocatorFactory::CreateSharedAllocator(memFlag); in HWTEST_F() local
533 EXPECT_NE(avAllocator, nullptr); in HWTEST_F()
534 std::shared_ptr<AVBuffer> drmInBuf = AVBuffer::CreateAVBuffer(avAllocator, in HWTEST_F()
543 std::shared_ptr<AVBuffer> drmOutBuf = AVBuffer::CreateAVBuffer(avAllocator, in HWTEST_F()
576 std::shared_ptr<AVAllocator> avAllocator = AVAllocatorFactory::CreateSharedAllocator(memFlag); in HWTEST_F() local
577 EXPECT_NE(avAllocator, nullpt in HWTEST_F()
620 std::shared_ptr<AVAllocator> avAllocator = AVAllocatorFactory::CreateSharedAllocator(memFlag); HWTEST_F() local
[all...]
/foundation/multimedia/av_codec/services/media_engine/modules/sink/
H A Dsubtitle_sink.cpp216 std::shared_ptr<AVAllocator> avAllocator; in PrepareInputBufferQueue() local
219 avAllocator = AVAllocatorFactory::CreateVirtualAllocator(); in PrepareInputBufferQueue()
222 avAllocator = AVAllocatorFactory::CreateSharedAllocator(MemoryFlag::MEMORY_READ_WRITE); in PrepareInputBufferQueue()
224 std::shared_ptr<AVBuffer> inputBuffer = AVBuffer::CreateAVBuffer(avAllocator, capacity); in PrepareInputBufferQueue()
/foundation/multimedia/av_codec/services/engine/codec/video/hcodec/
H A Dhcodec.cpp601 std::shared_ptr<AVAllocator> avAllocator = AVAllocatorFactory::CreateHardwareAllocator( in AllocateAvHardwareBuffers() local
603 IF_TRUE_RETURN_VAL_WITH_MSG(avAllocator == nullptr, AVCS_ERR_INVALID_VAL, "CreateHardwareAllocator failed"); in AllocateAvHardwareBuffers()
606 avAllocator, static_cast<int32_t>(def.nBufferSize)); in AllocateAvHardwareBuffers()
630 std::shared_ptr<AVAllocator> avAllocator = AVAllocatorFactory::CreateSharedAllocator(memFlag); in AllocateAvSharedBuffers() local
631 IF_TRUE_RETURN_VAL_WITH_MSG(avAllocator == nullptr, AVCS_ERR_INVALID_VAL, "CreateSharedAllocator failed"); in AllocateAvSharedBuffers()
636 std::shared_ptr<AVBuffer> avBuffer = AVBuffer::CreateAVBuffer(avAllocator, in AllocateAvSharedBuffers()
677 std::shared_ptr<AVAllocator> avAllocator = AVAllocatorFactory::CreateSurfaceAllocator(requestCfg_); in AllocateAvSurfaceBuffers() local
678 IF_TRUE_RETURN_VAL_WITH_MSG(avAllocator == nullptr, AVCS_ERR_INVALID_VAL, "CreateSurfaceAllocator failed"); in AllocateAvSurfaceBuffers()
684 std::shared_ptr<AVBuffer> avBuffer = AVBuffer::CreateAVBuffer(avAllocator, in AllocateAvSurfaceBuffers()
/foundation/multimedia/av_codec/services/media_engine/plugins/ffmpeg_adapter/common/
H A Dhdi_codec.cpp148 auto avAllocator = AVAllocatorFactory::CreateSharedAllocator(MemoryFlag::MEMORY_READ_WRITE); in InitBuffersByPort() local
149 std::shared_ptr<AVBuffer> avBuffer = AVBuffer::CreateAVBuffer(avAllocator, bufferSize); in InitBuffersByPort()
/foundation/multimedia/av_codec/test/unittest/hcodec_test/helper/
H A Dtester_common.cpp354 std::shared_ptr<AVAllocator> avAllocator = AVAllocatorFactory::CreateSurfaceAllocator(cfg); in CreateWaterMarkBuffer() local
355 if (avAllocator == nullptr) { in CreateWaterMarkBuffer()
359 std::shared_ptr<AVBuffer> avBuffer = AVBuffer::CreateAVBuffer(avAllocator, 0); in CreateWaterMarkBuffer()

Completed in 13 milliseconds