/drivers/peripheral/distributed_camera/hdi_service/include/utils/ |
H A D | constants.h | 125 int32_t width_; member 128 DCResolution() : width_(0), height_(0) {} in DCResolution() 130 DCResolution(int32_t width, int32_t height) : width_(width), height_(height) {} in DCResolution() 134 return (this->width_ == others.width_) && (this->height_ == others.height_); in operator ==() 139 return this->width_ < others.width_ || in operator <() 140 (this->width_ == others.width_ && this->height_ < others.height_); in operator <()
|
/drivers/peripheral/camera/hdi_service/v1_0/src/ |
H A D | camera_service_type_converter.cpp | 23 dst.width_ = src.width_; in ConvertStreamInfoHdiToVdi() 37 dst.width_ = src.width_; in ConvertStreamAttributeHdiToVdi() 75 dst.width_ = src.width_; in ConvertStreamInfoVdiToHdi() 89 dst.width_ = src.width_; in ConvertStreamAttributeVdiToHdi()
|
/drivers/peripheral/thermal/test/unittest/ |
H A D | hdf_thermal_log_test.cpp | 90 uint32_t minVal = hdfLog.width_ + 1; in HWTEST_F() 95 minVal = hdfLog.width_ - 1; in HWTEST_F() 97 ASSERT_EQ(hdfLog.width_, width); in HWTEST_F() 116 ASSERT_EQ(hdfLog.width_.load(), static_cast<uint8_t>(DEFAULT_WIDTH)); in HWTEST_F() 118 ASSERT_EQ(hdfLog.width_.load(), static_cast<uint8_t>(i)); in HWTEST_F() 136 ASSERT_EQ(hdfLog.width_.load(), static_cast<uint8_t>(DEFAULT_WIDTH)) << in HWTEST_F()
|
/drivers/peripheral/camera/vdi_base/interfaces/v1_0/ |
H A D | vdi_types.h | 113 int32_t width_; member 126 int32_t width_; member
|
/drivers/peripheral/distributed_camera/hdi_service/src/dstream_operator/ |
H A D | dcamera_stream.cpp | 27 if ((info.streamId_ < 0) || (info.width_ < 0) || (info.height_ < 0) || in InitDCameraStream() 35 dcStreamInfo_->width_ = info.width_; in InitDCameraStream() 45 dcStreamAttribute_.width_ = dcStreamInfo_->width_; in InitDCameraStream() 192 .width = dcStreamInfo_->width_, in GetNextRequest() 326 .damage = { .x = 0, .y = 0, .w = dcStreamInfo_->width_, .h = dcStreamInfo_->height_ }, in FlushDCameraBuffer() 360 int32_t size = (dcStreamInfo_->width_) * (dcStreamInfo_->height_) * YUV_WIDTH_RATIO / YUV_HEIGHT_RATIO; in SetSurfaceBuffer()
|
H A D | dimage_buffer.cpp | 33 return width_; in GetWidth() 116 width_ = width; in SetWidth() 221 width_ = 0; in Free()
|
H A D | dstream_operator.cpp | 78 info.streamId_, info.width_, info.height_, info.format_, info.dataspace_, info.encodeType_); in CreateStreams() 99 dcStreamInfo->streamId_, dcStreamInfo->type_, dcStreamInfo->width_, in CreateStreams() 174 dstStreamInfo.width_ = streamInfo.second->width_; in ExtractStreamInfo() 322 streamInfo.width_ < 0 || in IsStreamInfosInvalid() 323 streamInfo.width_ > (STREAM_WIDTH_MAX_SIZE * STREAM_HEIGHT_MAX_SIZE) || in IsStreamInfosInvalid() 370 capture.width_ = captureInfo->width_; in ExtractCaptureInfo() 970 dstInfo->width_ = srcInfo.width_; in ConvertStreamInfo() [all...] |
/drivers/peripheral/thermal/interfaces/hdi_service/src/ |
H A D | thermal_dfx.cpp | 116 width_(static_cast<uint8_t>(DEFAULT_WIDTH)), interval_(static_cast<uint32_t>(DEFAULT_INTERVAL)), enable_(true) in ThermalDfx() 322 for (uint8_t i = 0; i < width_; ++i) { in WriteToEmptyFile() 331 for (uint8_t i = 0; i < width_ - info.title.length(); ++i) { in WriteToEmptyFile() 344 for (uint8_t i = 0; i < width_ + TIMESTAMP_TITLE.length() - currentTime.length(); ++i) { in WriteToFile() 357 for (uint8_t i = 0; i < width_ - value.length(); ++i) { in WriteToFile() 388 width_ = static_cast<uint8_t>((width < DEFAULT_WIDTH) ? DEFAULT_WIDTH : width); in WidthWatchCallback() 433 width_ = static_cast<uint8_t>(GetIntParameter(THERMAL_LOG_WIDTH, DEFAULT_WIDTH, DEFAULT_WIDTH)); in Init() 437 interval_.load(), width_.load(), enable_.load()); in Init()
|
/drivers/peripheral/distributed_camera/hdi_service/test/unittest/common/dstream_operator/ |
H A D | dstream_operator_test.cpp | 131 streamInfo.width_ = TEST_WIDTH; in HWTEST_F() 157 streamInfo.width_ = TEST_WIDTH; in HWTEST_F() 183 streamInfo.width_ = TEST_WIDTH; in HWTEST_F() 217 streamInfo.width_ = TEST_WIDTH; in HWTEST_F() 254 streamInfo.width_ = TEST_WIDTH; in HWTEST_F() 288 streamInfo.width_ = TEST_WIDTH; in HWTEST_F() 329 streamInfo.width_ = TEST_WIDTH; in HWTEST_F()
|
/drivers/peripheral/camera/test/ut/v4l2/ |
H A D | hdi_interfaces_test.cpp | 62 cameraBase->streamInfo->width_ = 640; // 640:picture width in TEST_F() 115 cameraBase->streamInfo->width_ = 640; // 640:picture width in TEST_F() 160 streamInfo->width_ = 640; // 640:picture width in TEST_F() 206 cameraBase->streamInfo->width_ = -1; in TEST_F() 250 cameraBase->streamInfo->width_ = INVALID_VALUE_TEST; in TEST_F() 304 cameraBase->streamInfo->width_ = 640; // 640:picture width in TEST_F() 348 cameraBase->streamInfo->width_ = 640; // 640:picture width in TEST_F() 392 cameraBase->streamInfo->width_ = 640; // 640:picture width in TEST_F() 436 cameraBase->streamInfo->width_ = 640; // 640:picture width in TEST_F() 490 cameraBase->streamInfo->width_ in TEST_F() [all...] |
H A D | camera_preview_test.cpp | 63 streamInfo.width_ = 640; // 640:picture width in HWTEST_F() 106 streamInfo.width_ = 640; // 640:picture width in HWTEST_F() 160 streamInfo.width_ = 640; // 640:picture width in HWTEST_F() 202 streamInfo.width_ = 640; // 640:picture width in HWTEST_F() 305 streamInfo.width_ = 640; // 640:picture width in HWTEST_F() 359 streamInfo.width_ = 640; // 640:picture width in HWTEST_F() 411 streamInfo.width_ = 640; // 640:picture width in HWTEST_F() 455 streamInfo.width_ = 640; // 640:picture width in HWTEST_F() 499 streamInfo.width_ = 640; // 640:picture width in HWTEST_F() 541 streamInfo.width_ in HWTEST_F() [all...] |
/drivers/peripheral/camera/vdi_base/common/pipeline_core/host_stream/include/ |
H A D | host_stream_data_structure.h | 25 int32_t width_; member
|
/drivers/peripheral/distributed_camera/hdi_service/src/dcamera_device/ |
H A D | dmetadata_processor.cpp | 214 int32_t activeArraySize[] = {0, 0, static_cast<int32_t>(maxPreviewResolution_.width_), in InitDCameraDefaultAbilityKeys() 220 static_cast<int32_t>(maxPreviewResolution_.width_), static_cast<int32_t>(maxPreviewResolution_.height_) in InitDCameraDefaultAbilityKeys() 320 const int32_t jpegMaxSize = maxPhotoResolution_.width_ * maxPhotoResolution_.height_; in UpdateAbilityTag() 335 "%{public}d }", iter->first, resolution.width_, resolution.height_); in InitBasicConfigTag() 337 streamConfigs.push_back(resolution.width_); in InitBasicConfigTag() 352 previewIter->first, resolution.width_, resolution.height_); in InitExtendConfigTag() 353 AddConfigs(extendStreamConfigs, previewIter->first, resolution.width_, resolution.height_, PREVIEW_FPS); in InitExtendConfigTag() 364 videoIter->first, resolution.width_, resolution.height_); in InitExtendConfigTag() 365 AddConfigs(extendStreamConfigs, videoIter->first, resolution.width_, resolution.height_, VIDEO_FPS); in InitExtendConfigTag() 377 photoIter->first, resolution.width_, resolutio in InitExtendConfigTag() [all...] |
/drivers/peripheral/camera/vdi_base/common/buffer_manager/src/ |
H A D | image_buffer.cpp | 33 width_ = width; in ImageBuffer() 51 return width_; in GetWidth() 189 width_ = width; in SetWidth() 386 width_ = 0; in Free()
|
/drivers/peripheral/camera/vdi_base/common/adapter/platform/hdf_driver/src/driver_adapter/include/ |
H A D | buffer_operator.h | 80 uint32_t width_ = 0; member in OHOS::Camera::MyBuffer 117 return width_; in GetWidth() 225 width_ = width; in SetWidth() 379 width_ = 0; in Free()
|
/drivers/peripheral/display/hal/default_standard/src/display_gralloc/ |
H A D | allocator.cpp | 87 bufferInfo.widthStride_ = AlignUp(bufferInfo.width_, WIDTH_ALIGN); in UpdateRGBStrideAndSize() 98 bufferInfo.widthStride_ = AlignUp(bufferInfo.width_, WIDTH_ALIGN); in UpdateYuvStrideAndSize() 134 bufferInfo.width_ = info.width; in ConvertToBufferInfo() 164 priBuffer->width = bufferInfo.width_; in AllocMem()
|
H A D | allocator.h | 45 uint32_t width_ = 0; member
|
/drivers/peripheral/codec/test/demo/idl/src/ |
H A D | codec_hdi_encode.cpp | 51 width_ = 0; in CodecHdiEncode() 82 size_t t = fread(buf, 1, width_ * height_ * NUMERATOR / DENOMINATOR, fp); in ReadOneFrame() 92 this->width_ = opt.width; in Init() 94 this->stride_ = AlignUp(width_); in Init() 97 HDF_LOGI("width[%{public}d], height[%{public}d]", width_, height_); in Init() 340 bufferSize = width_ * height_ * NUMERATOR / DENOMINATOR; in UseBufferOnPort() 342 bufferSize = width_ * height_; in UseBufferOnPort() 343 HDF_LOGI("bufferSize[%{public}d], width[%{public}d], height[%{public}d]", bufferSize, width_, height_); in UseBufferOnPort() 788 util_->setParmValue(param, width_, height_, stride_); in ConfigPortDefine() 811 util_->setParmValue(param, width_, height in ConfigPortDefine() [all...] |
/drivers/peripheral/codec/test/demo/v2.0/src/ |
H A D | codec_hdi_encode.cpp | 47 width_ = 0; in CodecHdiEncode() 89 this->width_ = opt.width; in Init() 91 this->stride_ = AlignUp(width_); in Init() 93 HDF_LOGI("width[%{public}d], height[%{public}d]", width_, height_); in Init() 287 bufferSize = width_ * height_; in UseBufferOnPort() 288 HDF_LOGI("bufferSize[%{public}d], width[%{public}d], height[%{public}d]", bufferSize, width_, height_); in UseBufferOnPort() 613 return (width_ * height_ * 3 / 2); // 3:byte alignment, 2:byte alignment in GetInputBufferSize() 615 return (width_ * height_ * 4); // 4: byte alignment for RGBA or BGRA in GetInputBufferSize() 675 param.format.video.nFrameWidth = width_; in ConfigPortDefine() 700 param.format.video.nFrameWidth = width_; in ConfigPortDefine() [all...] |
/drivers/peripheral/distributed_camera/hdi_service/test/fuzztest/dcameraconfigurestreams_fuzzer/ |
H A D | dcameraconfigurestreams_fuzzer.cpp | 51 streamInfo.width_ = *(reinterpret_cast<const int*>(data)); in DcameraConfigureStreamsFuzzTest()
|
/drivers/peripheral/distributed_camera/hdi_service/test/fuzztest/dstreamgetstreamattributes_fuzzer/ |
H A D | dstreamgetstreamattributes_fuzzer.cpp | 35 attribute.width_ = *(reinterpret_cast<const int*>(data)); in DstreamGetStreamAttributesFuzzTest()
|
/drivers/peripheral/camera/test/mpi/src/ |
H A D | resolution_test.cpp | 58 Test_->streamInfo_pre->width_ = 640; // 640:width of stream in HWTEST_F() 85 Test_->streamInfo_capture->width_ = 1280; // 1280:width of stream in HWTEST_F() 163 Test_->streamInfo_pre->width_ = 853; // 853:width of stream in HWTEST_F() 191 Test_->streamInfo_video->width_ = 1280; // 1280:width of stream in HWTEST_F() 270 Test_->streamInfo_pre->width_ = 640; // 640:width of stream in HWTEST_F() 298 Test_->streamInfo_video->width_ = 1280; // 1280:width of stream in HWTEST_F()
|
H A D | pipeline_test.cpp | 121 Test_->streamInfo->width_ = 640; in HWTEST_F() 209 Test_->streamInfo->width_ = 1280; in HWTEST_F() 228 Test_->streamInfo2->width_ = 1280; in HWTEST_F()
|
H A D | hdi_stream_test.cpp | 64 Test_->streamInfo->width_ = 640; // 640:width of stream in HWTEST_F() 114 Test_->streamInfo->width_ = 640; // 640:width of stream in HWTEST_F() 201 Test_->streamInfo->width_ = 640; // 640:width of stream in HWTEST_F() 251 Test_->streamInfo->width_ = 640; in HWTEST_F() 297 Test_->streamInfo->width_ = 640; in HWTEST_F() 338 Test_->streamInfo->width_ = 640; in HWTEST_F() 382 Test_->streamInfo->width_ = -1; in HWTEST_F() 423 Test_->streamInfo->width_ = 2147483647; in HWTEST_F() 468 Test_->streamInfo->width_ = 1920; in HWTEST_F() 510 Test_->streamInfo->width_ in HWTEST_F() [all...] |
/drivers/peripheral/camera/hal_c/hdi_cif/src/ |
H A D | stream_operator.cpp | 42 si.width = pInfo->width_; in IsStreamsSupported() 86 sis[i].width = streamInfos[i]->width_; in CreateStreams() 170 it->width_ = sa[i].width; in GetStreamAttributes()
|