Home
last modified time | relevance | path

Searched refs:avAllocator (Results 1 – 12 of 12) sorted by relevance

/ohos5.0/foundation/multimedia/av_codec/test/fuzztest/drmdecryptor_fuzzer/
H A Ddrmdecryptor_fuzzer.cpp445 DRM_DECRYPTOR_FUZZ_CHECK_AND_RETURN_RET(avAllocator != nullptr, false); in DrmH264VideoCencDecrypt()
446 std::shared_ptr<AVBuffer> drmInBuf = AVBuffer::CreateAVBuffer(avAllocator, in DrmH264VideoCencDecrypt()
490 DRM_DECRYPTOR_FUZZ_CHECK_AND_RETURN_RET(avAllocator != nullptr, false); in DrmH264VideoCencDecryptFuzzTest()
529 DRM_DECRYPTOR_FUZZ_CHECK_AND_RETURN_RET(avAllocator != nullptr, false); in DrmHevcVideoCencDecrypt()
530 std::shared_ptr<AVBuffer> drmInBuf = AVBuffer::CreateAVBuffer(avAllocator, in DrmHevcVideoCencDecrypt()
577 DRM_DECRYPTOR_FUZZ_CHECK_AND_RETURN_RET(avAllocator != nullptr, false); in DrmHevcVideoCencDecryptFuzzTest()
616 DRM_DECRYPTOR_FUZZ_CHECK_AND_RETURN_RET(avAllocator != nullptr, false); in DrmAvsVideoCencDecrypt()
617 std::shared_ptr<AVBuffer> drmInBuf = AVBuffer::CreateAVBuffer(avAllocator, in DrmAvsVideoCencDecrypt()
664 DRM_DECRYPTOR_FUZZ_CHECK_AND_RETURN_RET(avAllocator != nullptr, false); in DrmAvsVideoCencDecryptFuzzTest()
700 DRM_DECRYPTOR_FUZZ_CHECK_AND_RETURN_RET(avAllocator != nullptr, false); in DrmAudioCencDecryptTest()
[all …]
/ohos5.0/foundation/multimedia/av_codec/test/unittest/video_test/drm_decryptor_test/
H A Ddrm_decryptor_coverage_unit_test.cpp491 EXPECT_NE(avAllocator, nullptr);
492 std::shared_ptr<AVBuffer> drmInBuf = AVBuffer::CreateAVBuffer(avAllocator,
498 std::shared_ptr<AVBuffer> drmOutBuf = AVBuffer::CreateAVBuffer(avAllocator,
533 EXPECT_NE(avAllocator, nullptr);
534 std::shared_ptr<AVBuffer> drmInBuf = AVBuffer::CreateAVBuffer(avAllocator,
543 std::shared_ptr<AVBuffer> drmOutBuf = AVBuffer::CreateAVBuffer(avAllocator,
577 EXPECT_NE(avAllocator, nullptr);
578 std::shared_ptr<AVBuffer> drmInBuf = AVBuffer::CreateAVBuffer(avAllocator,
587 std::shared_ptr<AVBuffer> drmOutBuf = AVBuffer::CreateAVBuffer(avAllocator,
621 EXPECT_NE(avAllocator, nullptr);
[all …]
/ohos5.0/foundation/multimedia/av_codec/test/unittest/audio_test/
H A Daudio_media_codec_unit_test.cpp381 std::shared_ptr<AVAllocator> avAllocator = variable
383 …std::shared_ptr<AVBuffer> inputBuffer = AVBuffer::CreateAVBuffer(avAllocator, BUFFER_CAPACITY_SAML…
403 std::shared_ptr<AVAllocator> avAllocator = variable
426 std::shared_ptr<AVAllocator> avAllocator = variable
438 std::shared_ptr<AVAllocator> avAllocator = variable
544 std::shared_ptr<AVAllocator> avAllocator = variable
691 std::shared_ptr<AVAllocator> avAllocator = variable
729 std::shared_ptr<AVAllocator> avAllocator = variable
752 std::shared_ptr<AVAllocator> avAllocator = variable
797 std::shared_ptr<AVAllocator> avAllocator = variable
[all …]
/ohos5.0/foundation/multimedia/av_codec/test/unittest/audio_capture_test/
H A Daudio_capture_module_unit_test.cpp231 std::shared_ptr<AVAllocator> avAllocator = variable
234 std::shared_ptr<AVBuffer> buffer = AVBuffer::CreateAVBuffer(avAllocator, capacity);
244 std::shared_ptr<AVAllocator> avAllocator = variable
246 std::shared_ptr<AVBuffer> buffer = AVBuffer::CreateAVBuffer(avAllocator);
252 std::shared_ptr<AVAllocator> avAllocator = variable
254 std::shared_ptr<AVBuffer> buffer = AVBuffer::CreateAVBuffer(avAllocator);
271 std::shared_ptr<AVAllocator> avAllocator = variable
274 std::shared_ptr<AVBuffer> buffer = AVBuffer::CreateAVBuffer(avAllocator, capacity);
347 std::shared_ptr<AVAllocator> avAllocator = variable
350 std::shared_ptr<AVBuffer> buffer = AVBuffer::CreateAVBuffer(avAllocator, capacity);
[all …]
/ohos5.0/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_K… 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_K… in CencInfoSetAVBufferFuzzTest()
/ohos5.0/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); variable
398 EXPECT_NE(avAllocator, nullptr);
400 …std::shared_ptr<AVBuffer> inBuf = AVBuffer::CreateAVBuffer(avAllocator, static_cast<int32_t>(DRM_K…
441 std::shared_ptr<AVAllocator> avAllocator = AVAllocatorFactory::CreateSharedAllocator(memFlag); variable
442 EXPECT_NE(avAllocator, nullptr);
444 …std::shared_ptr<AVBuffer> inBuf = AVBuffer::CreateAVBuffer(avAllocator, static_cast<int32_t>(DRM_K…
/ohos5.0/foundation/multimedia/av_codec/services/media_engine/modules/media_codec/
H A Dmedia_codec.cpp427 std::shared_ptr<AVAllocator> avAllocator; in AttachBufffer() local
430 avAllocator = AVAllocatorFactory::CreateVirtualAllocator(); in AttachBufffer()
433 avAllocator = AVAllocatorFactory::CreateSharedAllocator(MemoryFlag::MEMORY_READ_WRITE); in AttachBufffer()
435 std::shared_ptr<AVBuffer> inputBuffer = AVBuffer::CreateAVBuffer(avAllocator, capacity); in AttachBufffer()
452 std::shared_ptr<AVAllocator> avAllocator; in AttachDrmBufffer() local
453 avAllocator = AVAllocatorFactory::CreateSharedAllocator(MemoryFlag::MEMORY_READ_WRITE); in AttachDrmBufffer()
454 FALSE_RETURN_V_MSG_E(avAllocator != nullptr, Status::ERROR_UNKNOWN, in AttachDrmBufffer()
457 drmInbuf = AVBuffer::CreateAVBuffer(avAllocator, size); in AttachDrmBufffer()
464 drmOutbuf = AVBuffer::CreateAVBuffer(avAllocator, size); in AttachDrmBufffer()
573 … auto avAllocator = AVAllocatorFactory::CreateSharedAllocator(MemoryFlag::MEMORY_READ_WRITE); in PrepareOutputBufferQueue() local
[all …]
/ohos5.0/foundation/multimedia/av_codec/services/media_engine/modules/sink/
H A Dsubtitle_sink.cpp217 std::shared_ptr<AVAllocator> avAllocator; in PrepareInputBufferQueue() local
220 avAllocator = AVAllocatorFactory::CreateVirtualAllocator(); in PrepareInputBufferQueue()
223 avAllocator = AVAllocatorFactory::CreateSharedAllocator(MemoryFlag::MEMORY_READ_WRITE); in PrepareInputBufferQueue()
225 std::shared_ptr<AVBuffer> inputBuffer = AVBuffer::CreateAVBuffer(avAllocator, capacity); in PrepareInputBufferQueue()
/ohos5.0/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… 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 f… 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 … in AllocateAvSurfaceBuffers()
684 std::shared_ptr<AVBuffer> avBuffer = AVBuffer::CreateAVBuffer(avAllocator, in AllocateAvSurfaceBuffers()
/ohos5.0/foundation/multimedia/av_codec/services/media_engine/plugins/ffmpeg_adapter/common/
H A Dhdi_codec.cpp169 auto avAllocator = AVAllocatorFactory::CreateSharedAllocator(MemoryFlag::MEMORY_READ_WRITE); in InitBuffersByPort() local
170 std::shared_ptr<AVBuffer> avBuffer = AVBuffer::CreateAVBuffer(avAllocator, bufferSize); in InitBuffersByPort()
/ohos5.0/foundation/multimedia/av_codec/test/unittest/hcodec_test/helper/
H A Dtester_common.cpp356 std::shared_ptr<AVAllocator> avAllocator = AVAllocatorFactory::CreateSurfaceAllocator(cfg); in CreateWaterMarkBuffer() local
357 if (avAllocator == nullptr) { in CreateWaterMarkBuffer()
361 std::shared_ptr<AVBuffer> avBuffer = AVBuffer::CreateAVBuffer(avAllocator, 0); in CreateWaterMarkBuffer()
/ohos5.0/foundation/multimedia/av_codec/services/services/codec/server/
H A Dcodec_server.cpp914 … std::shared_ptr<AVAllocator> avAllocator = AVAllocatorFactory::CreateSharedAllocator(memFlag); in OnInputBufferAvailable() local
915 if (avAllocator == nullptr) { in OnInputBufferAvailable()
919 decryptVideoBuf.inBuf = AVBuffer::CreateAVBuffer(avAllocator, in OnInputBufferAvailable()