/ohos5.0/foundation/multimedia/image_effect/frameworks/native/effect/manager/memory_manager/ |
H A D | effect_memory_manager.cpp | 56 memory->memoryData_->memoryInfo.bufferType = effectBuffer->extraInfo_->bufferType; in AddFilterMemory() 66 if (memoryInfo.bufferType != BufferType::DMA_BUFFER || memoryInfo.extra == nullptr || in UpdateColorSpaceIfNeed() 107 …(allocMemInfo.bufferType == BufferType::DEFAULT || allocMemInfo.bufferType == memInfo.bufferType) … in AllocMemory() 111 … memory->memoryData_->data, bufferInfo.formatType_, memInfo.bufferType, allocMemInfo.bufferType); in AllocMemory() 120 if (allocMemInfo.bufferType != BufferType::DEFAULT) { in AllocMemory() 121 allocBufferType = allocMemInfo.bufferType; in AllocMemory() 152 addr, memory->memoryData_->memoryInfo.bufferType); in GetAllocMemoryByAddr()
|
H A D | effect_memory.cpp | 63 memoryData->memoryInfo.bufferType = BufferType::HEAP_MEMORY; in Alloc() 156 memoryData->memoryInfo.bufferType = BufferType::DMA_BUFFER; in Alloc() 225 memoryData->memoryInfo.bufferType = BufferType::SHARED_MEMORY; in Alloc() 245 std::unique_ptr<AbsMemory> EffectMemory::CreateMemory(BufferType bufferType) in CreateMemory() argument 248 switch (bufferType) { in CreateMemory() 259 EFFECT_LOGE("buffer type not support! bufferType=%{public}d", bufferType); in CreateMemory()
|
/ohos5.0/foundation/multimedia/image_effect/frameworks/native/utils/common/ |
H A D | common_utils.cpp | 125 extraInfo->dataType, extraInfo->bufferType); in LockPixelMap() 148 extraInfo->bufferType = BufferType::DMA_BUFFER; in ParseNativeWindowData() 172 extraInfo->bufferType = BufferType::DMA_BUFFER; in ParseSurfaceData() 308 BufferType bufferType = BufferType::DEFAULT; in SwitchToEffectBuffType() local 312 bufferType = itr->second; in SwitchToEffectBuffType() 315 return bufferType; in SwitchToEffectBuffType() 343 switch (bufferType) { in GetPixelsContext() 575 if (memoryInfo.bufferType == BufferType::DMA_BUFFER) { in ModifyPixelMapPropertyInner() 591 BufferType bufferType = SwitchToEffectBuffType(allocatorType); in ModifyPixelMapProperty() local 595 if (allocMemory != nullptr && allocMemory->memoryData_->memoryInfo.bufferType == bufferType) { in ModifyPixelMapProperty() [all …]
|
/ohos5.0/drivers/peripheral/codec/hal/src/ |
H A D | codec_types.c | 171 if (!HdfSbufWriteInt32(data, (int32_t)dataBlock->bufferType)) { in CodecBufferMarshalling() 189 if (dataBlock->bufferType == CODEC_BUFFER_TYPE_AVSHARE_MEM_FD) { in CodecBufferMarshalling() 195 } else if (dataBlock->bufferType == CODEC_BUFFER_TYPE_HANDLE || in CodecBufferMarshalling() 196 dataBlock->bufferType == CODEC_BUFFER_TYPE_DYNAMIC_HANDLE) { in CodecBufferMarshalling() 261 if (!HdfSbufReadInt32(data, (int32_t *)&dataBlock->bufferType)) { in CodecBufferUnmarshalling() 276 if (dataBlock->bufferType == CODEC_BUFFER_TYPE_AVSHARE_MEM_FD) { in CodecBufferUnmarshalling() 283 } else if (dataBlock->bufferType == CODEC_BUFFER_TYPE_HANDLE || in CodecBufferUnmarshalling() 284 dataBlock->bufferType == CODEC_BUFFER_TYPE_DYNAMIC_HANDLE) { in CodecBufferUnmarshalling() 312 if (codecBuffer->bufferType == CODEC_BUFFER_TYPE_DYNAMIC_HANDLE || in ReleaseOmxCodecBuffer() 313 codecBuffer->bufferType == CODEC_BUFFER_TYPE_HANDLE) { in ReleaseOmxCodecBuffer() [all …]
|
/ohos5.0/drivers/peripheral/codec/hal/v2.0/hdi_impl/src/ |
H A D | icodec_buffer.cpp | 37 switch (codecBuffer.bufferType) { in CreateCodeBuffer() 48 CODEC_LOGE("bufferType[%{public}d] is unexpected", codecBuffer.bufferType); in CreateCodeBuffer() 57 if (codecBuffer.bufferType == CODEC_BUFFER_TYPE_AVSHARE_MEM_FD) { in AllocateCodecBuffer() 60 CODEC_LOGE("bufferType[%{public}d] is unexpected", codecBuffer.bufferType); in AllocateCodecBuffer() 78 … CODEC_LOGE("input buffer type [%{public}d], but expect type [%{public}d]", codecBuffer.bufferType, in CheckInvalid() 79 codecBuffer_.bufferType); in CheckInvalid()
|
/ohos5.0/drivers/peripheral/codec/hal/idl_service/src/ |
H A D | icodec_buffer.cpp | 39 switch (codecBuffer.bufferType) { in CreateCodeBuffer() 53 CODEC_LOGE("bufferType[%{public}d] is unexpected", codecBuffer.bufferType); in CreateCodeBuffer() 63 switch (codecBuffer.bufferType) { in AllocateCodecBuffer() 71 CODEC_LOGE("bufferType[%{public}d] is unexpected", codecBuffer.bufferType); in AllocateCodecBuffer() 91 … CODEC_LOGE("input buffer type [%{public}d], but expect type [%{public}d]", codecBuffer.bufferType, in CheckInvalid() 92 codecBuffer_.bufferType); in CheckInvalid()
|
/ohos5.0/drivers/peripheral/camera/vdi_base/common/adapter/platform/v4l2/src/driver_adapter/include/ |
H A D | v4l2_buffer.h | 44 HosV4L2Buffers(enum v4l2_memory memType, enum v4l2_buf_type bufferType); 47 enum v4l2_buf_type bufferType) in CreateHosV4L2Buffers() argument 50 HosV4L2BuffersHelper(enum v4l2_memory memType, enum v4l2_buf_type bufferType) in CreateHosV4L2Buffers() 51 : HosV4L2Buffers(memType, bufferType) {} in CreateHosV4L2Buffers() 54 return std::make_shared<HosV4L2BuffersHelper>(memType, bufferType); in CreateHosV4L2Buffers()
|
/ohos5.0/foundation/multimedia/media_foundation/engine/plugin/plugins/codec_adapter/ |
H A D | codec_utils.cpp | 223 uint32_t bufferType; in GetOmxBufferType() local 226 bufferType = CODEC_BUFFER_TYPE_AVSHARE_MEM_FD; in GetOmxBufferType() 229 bufferType = CODEC_BUFFER_TYPE_HANDLE; in GetOmxBufferType() 231 bufferType = CODEC_BUFFER_TYPE_DYNAMIC_HANDLE; in GetOmxBufferType() 235 bufferType = CODEC_BUFFER_TYPE_INVALID; in GetOmxBufferType() 238 return bufferType; in GetOmxBufferType()
|
/ohos5.0/docs/zh-cn/device-dev/reference/hdi-apis/codec/ |
H A D | _use_buffer_type_v20.md | 23 | unsigned int [bufferType](#buffertype) | buffer类型 | 29 ### bufferType subsection 32 unsigned int UseBufferType::bufferType
|
H A D | _omx_codec_buffer_v10.md | 23 | unsigned int [bufferType](#buffertype) | buffer类型。 | 71 ### bufferType subsection 74 unsigned int OmxCodecBuffer::bufferType
|
H A D | _omx_codec_buffer_v20.md | 23 | unsigned int [bufferType](#buffertype) | buffer类型,详见[CodecBufferType](_codec_v20.md#codecbufferty… 80 ### bufferType subsection 83 unsigned int OmxCodecBuffer::bufferType
|
/ohos5.0/foundation/multimedia/player_framework/test/unittest/screen_capture_test/screen_capture_unittest/src/ |
H A D | screen_capture_unit_test_state.cpp | 96 bufferType = AVScreenCaptureBufferType::SCREEN_CAPTURE_BUFFERTYPE_AUDIO_MIC; in DumpAudioBuffer() 101 bufferType = AVScreenCaptureBufferType::SCREEN_CAPTURE_BUFFERTYPE_AUDIO_INNER; in DumpAudioBuffer() 179 AVScreenCaptureBufferType bufferType, int64_t timestamp) in OnBufferAvailable() argument 183 bufferType, timestamp); in OnBufferAvailable() 188 switch (bufferType) { in OnBufferAvailable() 222 AVScreenCaptureBufferType bufferType) in DumpBuffer() argument 271 AVScreenCaptureBufferType bufferType) in ProcessAudioBuffer() argument 274 DumpBuffer(innerAudioFile_, buffer, size, timestamp, bufferType); in ProcessAudioBuffer() 279 DumpBuffer(micAudioFile_, buffer, size, timestamp, bufferType); in ProcessAudioBuffer() 283 cout << "ProcessAudioBuffer invalid bufferType:" << bufferType << endl; in ProcessAudioBuffer() [all …]
|
/ohos5.0/docs/zh-cn/device-dev/reference/hdi-apis/drm/ |
H A D | _drm_buffer.md | 20 | unsigned int [bufferType](#buffertype) | buffer类型,由实现平台定义。 | 52 ### bufferType subsection 55 unsigned int DrmBuffer::bufferType
|
/ohos5.0/foundation/multimedia/image_effect/test/unittest/ |
H A D | TestEffectMemoryManager.cpp | 100 BufferType bufferType = BufferType::SHARED_MEMORY; variable 101 std::unique_ptr<AbsMemory> absMemory = effectMemory->CreateMemory(bufferType); 103 bufferType = BufferType::DEFAULT; 104 absMemory = effectMemory->CreateMemory(bufferType);
|
/ohos5.0/base/hiviewdfx/hilog/services/hilogd/ |
H A D | log_buffer.cpp | 98 int bufferType = ConvertBufType(msg.type); in Insert() local 101 if (elemSize + sizeByType[bufferType] >= g_maxBufferSizeByType[bufferType]) { in Insert() 105 while (sizeByType[bufferType] > g_maxBufferSizeByType[bufferType] * (1 - DROP_RATIO) && in Insert() 107 … if (ConvertBufType((*it).type) != bufferType) { // Only remove old logs of the same type in Insert() 124 if (sizeByType[bufferType] >= g_maxBufferSizeByType[bufferType]) { in Insert() 132 sizeByType[bufferType] += elemSize; in Insert()
|
/ohos5.0/foundation/multimedia/player_framework/test/unittest/screen_capture_test/screen_capture_unittest/include/ |
H A D | screen_capture_unit_test.h | 36 void OnBufferAvailable(std::shared_ptr<AVBuffer> buffer, AVScreenCaptureBufferType bufferType, 38 …udioBuffer(uint8_t *buffer, int32_t size, int64_t timestamp, AVScreenCaptureBufferType bufferType); 43 …AVScreenCaptureBufferType bufferType = AVScreenCaptureBufferType::SCREEN_CAPTURE_BUFFERTYPE_VIDEO); 44 void InitCaptureTrackInfo(FILE *file, int32_t flag, AVScreenCaptureBufferType bufferType);
|
/ohos5.0/docs/zh-cn/application-dev/media/media/ |
H A D | using-avscreencapture-for-buffer.md | 262 …eenCapture *capture, OH_AVBuffer *buffer, OH_AVScreenCaptureBufferType bufferType, int64_t timesta… 265 if (bufferType == OH_SCREEN_CAPTURE_BUFFERTYPE_VIDEO) { 290 } else if (bufferType == OH_SCREEN_CAPTURE_BUFFERTYPE_AUDIO_INNER) { 305 } else if (bufferType == OH_SCREEN_CAPTURE_BUFFERTYPE_AUDIO_MIC) { 398 …eenCapture *capture, OH_AVBuffer *buffer, OH_AVScreenCaptureBufferType bufferType, int64_t timesta… 401 if (bufferType == OH_SCREEN_CAPTURE_BUFFERTYPE_VIDEO) { 426 } else if (bufferType == OH_SCREEN_CAPTURE_BUFFERTYPE_AUDIO_INNER) { 441 } else if (bufferType == OH_SCREEN_CAPTURE_BUFFERTYPE_AUDIO_MIC) {
|
/ohos5.0/foundation/multimedia/image_effect/frameworks/native/effect/pipeline/filters/source/ |
H A D | image_source_filter.cpp | 60 .bufferType = BufferType::DMA_BUFFER, in UpdateInputBufferIfNeed() 69 extraInfo->bufferType = allocMemInfo.bufferType; in UpdateInputBufferIfNeed() 70 extraInfo->surfaceBuffer = (allocMemInfo.bufferType == BufferType::DMA_BUFFER) ? in UpdateInputBufferIfNeed()
|
/ohos5.0/foundation/multimedia/image_effect/frameworks/native/efilter/base/ |
H A D | efilter.cpp | 168 extraInfo->surfaceBuffer = (allocMemInfo.bufferType == BufferType::DMA_BUFFER) ? in CreateEffectBuffer() 213 .bufferType = BufferType::DMA_BUFFER, in ConvertFromGPU2CPU() 222 extraInfo->bufferType = allocMemInfo.bufferType; in ConvertFromGPU2CPU() 234 input->extraInfo_->bufferType = BufferType::DMA_BUFFER; in ConvertFromGPU2CPU() 301 extraInfo->bufferType = allocMemInfo.bufferType; in PushData() 302 extraInfo->surfaceBuffer = (allocMemInfo.bufferType == BufferType::DMA_BUFFER) ? in PushData() 381 if (runningType == IPType::GPU && current->extraInfo_->bufferType == BufferType::DMA_BUFFER) { in CreateDmaEffectBufferIfNeed() 389 .bufferType = BufferType::DMA_BUFFER, in CreateDmaEffectBufferIfNeed() 399 extraInfo->bufferType = memData->memoryInfo.bufferType; in CreateDmaEffectBufferIfNeed() 400 extraInfo->surfaceBuffer = (memData->memoryInfo.bufferType == BufferType::DMA_BUFFER) ? in CreateDmaEffectBufferIfNeed()
|
/ohos5.0/drivers/peripheral/codec/test/unittest/idl_omx/ |
H A D | codec_function_utils.cpp | 49 buffer.bufferType = type; in InitOmxCodecBuffer() 77 uint32_t port, CodecBufferType bufferType) in InitBufferHandleParameter() argument 108 type.bufferType = bufferType; in InitBufferHandleParameter() 324 if (type != bufferInfo->omxBuffer->bufferType) { in FillAndEmptyAllBuffer() 336 if (type != bufferInfo->omxBuffer->bufferType) { in FillAndEmptyAllBuffer()
|
/ohos5.0/foundation/multimedia/drm_framework/services/drm_service/server/src/ |
H A D | media_decrypt_module_service.cpp | 135 drmSrcBuffer->bufferType = srcBuffer.bufferType; in SetDrmBufferInfo() 143 drmDstBuffer->bufferType = dstBuffer.bufferType; in SetDrmBufferInfo()
|
/ohos5.0/drivers/peripheral/codec/test/unittest/hdi_omx/ |
H A D | codec_hdi_omx_test.cpp | 59 buffer.bufferType = type; in InitCodecBuffer() 120 omxBuffer->bufferType = CODEC_BUFFER_TYPE_AVSHARE_MEM_FD; in InitCodecBufferWithAshMem() 671 omxBuffer->bufferType = CODEC_BUFFER_TYPE_INVALID; 690 omxBuffer->bufferType = CODEC_BUFFER_TYPE_INVALID; 709 omxBuffer->bufferType = CODEC_BUFFER_TYPE_VIRTUAL_ADDR; 728 omxBuffer->bufferType = CODEC_BUFFER_TYPE_VIRTUAL_ADDR; 769 omxBuffer->bufferType = CODEC_BUFFER_TYPE_HANDLE; 814 omxBuffer->bufferType = CODEC_BUFFER_TYPE_DYNAMIC_HANDLE; 903 omxBuffer->bufferType = CODEC_BUFFER_TYPE_INVALID; 915 omxBuffer->bufferType = CODEC_BUFFER_TYPE_DYNAMIC_HANDLE; [all …]
|
/ohos5.0/drivers/peripheral/camera/vdi_base/common/adapter/platform/v4l2/src/driver_adapter/src/ |
H A D | v4l2_stream.cpp | 23 HosV4L2Streams::HosV4L2Streams(enum v4l2_buf_type bufferType) in HosV4L2Streams() argument 24 : bufferType_(bufferType) in HosV4L2Streams()
|
/ohos5.0/foundation/multimedia/image_effect/frameworks/native/efilter/filterimpl/crop/ |
H A D | crop_efilter.cpp | 178 .bufferType = ColorSpaceHelper::IsHdrColorSpace(src->bufferInfo_->colorSpace_) ? in CropToOutputBuffer() 187 extraInfo->bufferType = memData->memoryInfo.bufferType; in CropToOutputBuffer() 188 extraInfo->surfaceBuffer = (memData->memoryInfo.bufferType == BufferType::DMA_BUFFER) ? in CropToOutputBuffer()
|
/ohos5.0/foundation/multimedia/image_effect/frameworks/native/capi/ |
H A D | image_effect_filter.cpp | 191 …FFECT_LOGE("OH_EffectFilter PushData bufferType %{public}d", effectBuffer->extraInfo_->bufferType); in PushData() 205 extraInfo->bufferType = BufferType::DEFAULT; in PushData() 314 std::unique_ptr<ImageEffect_BufferType[]> bufferType = in OH_EffectFilterInfo_GetSupportedBufferTypes() local 316 info->effectBufferType = bufferType.release(); in OH_EffectFilterInfo_GetSupportedBufferTypes() 321 for (const auto &bufferType : info->supportedBufferTypes) { in OH_EffectFilterInfo_GetSupportedBufferTypes() local 327 info->effectBufferType[index] = bufferType; in OH_EffectFilterInfo_GetSupportedBufferTypes() 379 …std::unique_ptr<ImageEffect_Format []> bufferType = std::make_unique<ImageEffect_Format[]>(formats… in OH_EffectFilterInfo_GetSupportedFormats() local 380 info->effectFormat = bufferType.release(); in OH_EffectFilterInfo_GetSupportedFormats()
|