Home
last modified time | relevance | path

Searched refs:height (Results 1 - 25 of 34) sorted by relevance

12

/applications/standard/app_samples/code/BasicFeature/Native/NdkRenderNodeDrawing/entry/src/main/cpp/
H A Dnative_bridge.cpp55 static void NativeOnDrawPath(OH_Drawing_Canvas *canvas, int32_t width, int32_t height) in NativeOnDrawPath() argument
58 int len = height / 4; in NativeOnDrawPath()
60 float aY = height / 6; in NativeOnDrawPath()
110 static void NativeOnDrawText(OH_Drawing_Canvas *canvas, int32_t width, int32_t height) in NativeOnDrawText() argument
148 double position[2] = {width / 10.0, height / 5.0 + fontSize * i * 2}; in NativeOnDrawText()
160 static void NativeOnDrawTextBlob(OH_Drawing_Canvas *canvas, int32_t width, int32_t height) in NativeOnDrawTextBlob() argument
188 const float posY = height / 2.0; in NativeOnDrawTextBlob()
212 OH_Drawing_CanvasDrawTextBlob(canvas, stringTextBlob, posX, height / tempY + textSize * i); in NativeOnDrawTextBlob()
276 int32_t height; in OnDraw() local
277 napi_get_value_int32(env, args[3], &height); // in OnDraw()
[all...]
/applications/standard/app_samples/code/BasicFeature/Native/NdkNativeWindow/entry/src/main/cpp/
H A DNativeRender.cpp27 uint64_t height = 0; in OnSurfaceCreatedCB() local
28 int32_t ret = OH_NativeXComponent_GetXComponentSize(component, window, &width, &height); in OnSurfaceCreatedCB()
30 NativeRender::GetInstance()->SetNativeWindow(nativeWindow, width, height); in OnSurfaceCreatedCB()
126 void NativeRender::SetNativeWindow(OHNativeWindow* nativeWindow, uint64_t width, uint64_t height) in SetNativeWindow() argument
129 height_ = height; in SetNativeWindow()
153 .height = 0x100, in NativeBufferApi()
229 for (uint64_t y = 0; y < bufferHandle->height; y++) { in DrawBaseColor()
H A DNativeRender.h36 void SetNativeWindow(OHNativeWindow* nativeWindow, uint64_t width, uint64_t height);
/applications/standard/app_samples/code/BasicFeature/Graphics/DisplaySoloist/entry/src/main/cpp/samples/
H A Dsample_xcomponent.cpp44 uint64_t height; in OnSurfaceCreatedCB() local
45 int32_t xSize = OH_NativeXComponent_GetXComponentSize(component, window, &width, &height); in OnSurfaceCreatedCB()
47 render->SetHeight(height); in OnSurfaceCreatedCB()
49 SAMPLE_LOGI("xComponent width = %{public}llu, height = %{public}llu", width, height); in OnSurfaceCreatedCB()
92 uint64_t height; in TestCallback() local
94 int32_t xSize = OH_NativeXComponent_GetXComponentSize(component, nativeWindow, &width, &height); in TestCallback()
111 void SampleXComponent::SetHeight(uint64_t height) { height_ = height; } in SetHeight() argument
/applications/standard/app_samples/code/BasicFeature/Graphics/DisplaySync/entry/src/main/cpp/samples/
H A Dsample_xcomponent.cpp41 uint64_t height; in OnSurfaceCreatedCB() local
42 int32_t xSize = OH_NativeXComponent_GetXComponentSize(component, window, &width, &height); in OnSurfaceCreatedCB()
44 render->SetHeight(height); in OnSurfaceCreatedCB()
46 SAMPLE_LOGI("xComponent width = %{public}lu, height = %{public}llu", width, height); in OnSurfaceCreatedCB()
86 uint64_t height; in TestCallback() local
88 int32_t xSize = OH_NativeXComponent_GetXComponentSize(component, nativeWindow, &width, &height); in TestCallback()
114 void SampleXComponent::SetHeight(uint64_t height) in SetHeight() argument
116 height_ = height; in SetHeight()
/applications/standard/app_samples/code/BasicFeature/Native/XComponent3D/entry/src/main/cpp/
H A Dopengl_draw.cpp47 int32_t OpenglDraw::Init(EGLNativeWindowType window, int width, int height) in Init() argument
49 LOGI("Init window w = %{public}d, h = %{public}d.", width, height); in Init()
90 glViewport(0, 0, width, height); in Init()
91 LOGI("window size is %{public}d %{public}d", width, height); in Init()
/applications/sample/camera/gallery/src/
H A Dplayer_ability_slice.cpp200 int32_t height = 0; in SetUpSurfaceView() local
203 videoPlayer_->adapter->GetVideoHeight(height); in SetUpSurfaceView()
204 printf("[%s,%d] height:%d\n", __func__, __LINE__, height); in SetUpSurfaceView()
206 if (width <= 0 || height <= 0) { in SetUpSurfaceView()
210 printf("******** width <= 0 || height <= 0 | return \n"); in SetUpSurfaceView()
215 float ratio_y = static_cast<float>(height) / ROOT_VIEW_HEIGHT; in SetUpSurfaceView()
222 surfaceViewHeight = height / ratio_x; in SetUpSurfaceView()
/applications/standard/app_samples/code/BasicFeature/Native/NdkDrawing/entry/src/main/cpp/samples/
H A Dsample_bitmap.cpp44 uint64_t height; in OnSurfaceCreatedCB() local
45 int32_t xSize = OH_NativeXComponent_GetXComponentSize(component, window, &width, &height); in OnSurfaceCreatedCB()
47 render->SetHeight(height); in OnSurfaceCreatedCB()
49 DRAWING_LOGI("xComponent width = %{public}llu, height = %{public}llu", width, height); in OnSurfaceCreatedCB()
77 void SampleBitMap::SetHeight(uint64_t height) in SetHeight() argument
79 height_ = height; in SetHeight()
/applications/standard/app_samples/code/BasicFeature/Native/XComponent/entry/src/main/cpp/render/
H A Dplugin_render.cpp48 uint64_t height; in OnSurfaceCreatedCB() local
49 int32_t xSize = OH_NativeXComponent_GetXComponentSize(component, window, &width, &height); in OnSurfaceCreatedCB()
51 if (render->eglCore_->EglContextInit(window, width, height)) { in OnSurfaceCreatedCB()
328 uint64_t height; in OnSurfaceChanged() local
329 OH_NativeXComponent_GetXComponentSize(component, window, &width, &height); in OnSurfaceChanged()
331 render->eglCore_->UpdateSize(width, height); in OnSurfaceChanged()
H A Degl_core.cpp192 bool EGLCore::EglContextInit(void* window, int width, int height) in EglContextInit() argument
195 if ((window == nullptr) || (width <= 0) || (height <= 0)) { in EglContextInit()
200 UpdateSize(width, height); in EglContextInit()
590 void EGLCore::UpdateSize(int width, int height) in UpdateSize() argument
593 height_ = height; in UpdateSize()
H A Degl_core.h27 bool EglContextInit(void* window, int width, int height);
33 void UpdateSize(int width, int height);
/applications/standard/app_samples/code/BasicFeature/Native/NdkXComponent/entry/src/main/cpp/render/
H A Degl_core.cpp191 bool EGLCore::EglContextInit(void* window, int width, int height) in EglContextInit() argument
194 if ((window == nullptr) || (width <= 0) || (height <= 0)) { in EglContextInit()
199 UpdateSize(width, height); in EglContextInit()
588 void EGLCore::UpdateSize(int width, int height) in UpdateSize() argument
591 height_ = height; in UpdateSize()
H A Degl_core.h28 bool EglContextInit(void* window, int width, int height);
34 void UpdateSize(int width, int height);
/applications/standard/app_samples/code/BasicFeature/Native/ArkTSXComponent/entry/src/main/cpp/render/
H A Dplugin_render.cpp45 void PluginRender::UpdateNativeWindowSize(int width, int height) in UpdateNativeWindowSize() argument
47 eglCore_->UpdateSize(width, height); in UpdateNativeWindowSize()
H A Dplugin_render.h39 void UpdateNativeWindowSize(int width, int height);
/applications/standard/app_samples/code/BasicFeature/Native/ArkTSXComponent/entry/src/main/cpp/manager/
H A Dplugin_manager.cpp137 double height; in ChangeSurface() local
138 if (napi_ok != napi_get_value_double(env, args[index++], &height)) { in ChangeSurface()
139 OH_LOG_Print(LOG_APP, LOG_ERROR, LOG_PRINT_DOMAIN, "PluginManager", "ChangeSurface: Get height failed"); in ChangeSurface()
146 pluginRender->UpdateNativeWindowSize(width, height); in ChangeSurface()
/applications/standard/app_samples/code/BasicFeature/Native/NdkVulkan/entry/src/main/cpp/render/vulkan/
H A Dvulkan_example.cpp571 framebufferInfo.height = swapChainExtent.height; in CreateFramebuffers()
815 viewport.height = (float)swapChainExtent.height; in RecordCommandBuffer()
961 VkExtent2D actualExtent = {width, height}; in ChooseSwapExtent()
964 actualExtent.height = std::max(capabilities.minImageExtent.height, in ChooseSwapExtent()
965 std::min(capabilities.maxImageExtent.height, actualExtent.height)); in ChooseSwapExtent()
/applications/sample/camera/media/
H A Dcamera_sample.cpp87 int32_t height = 1080; in SampleCreateRecorder() local
98 if ((ret = recorder->SetVideoSize(sourceId, width, height)) != SUCCESS) { in SampleCreateRecorder()
263 int height = 1080; in StartRecord() local
264 surface->SetWidthAndHeight(width, height); in StartRecord()
298 surface->SetWidthAndHeight(1920, 1080); /* 1920:width,1080:height */ in StartPreview()
326 surface->SetWidthAndHeight(1920, 1080); /* 1920:width,1080:height */ in Capture()
/applications/standard/app_samples/code/BasicFeature/Media/ImageEffect/entry/src/main/cpp/backend/
H A Dimage_edit.cpp33 uint32_t height = 0; member
123 OH_PixelmapImageInfo_GetHeight(imageInfo, &info.height); in GetPixelmapInfo()
143 areaInfo[AREA_INFO_ONE] = pixelMapInfo.height / 100.f * (100.f - static_cast<int>(filterValue)); in SetFilterValue()
145 areaInfo[AREA_INFO_THREE] = pixelMapInfo.height; in SetFilterValue()
/applications/sample/camera/launcher/launcher/src/main/cpp/
H A Dview_group_page.cpp58 void ViewGroupPage::SetPosion(int16_t width, int16_t height, int16_t x, int16_t y) in SetPosion() argument
60 viewGroup_->SetPosition(x, y, width, height); in SetPosion()
H A Dtime_weather_view.cpp44 void TimeWeatherView::SetPosion(int16_t x, int16_t y, int16_t height, int16_t width) in SetPosion() argument
46 viewGroup_->SetPosition(x, y, width, height); in SetPosion()
H A Dtime_weather_view.h46 void SetPosion(int16_t x, int16_t y, int16_t height, int16_t width);
H A Dview_group_page.h41 void SetPosion(int16_t width, int16_t height, int16_t x = 0, int16_t y = 0);
/applications/standard/app_samples/code/BasicFeature/Native/NdkOpenGL/entry/src/main/cpp/
H A Dtetrahedron.cpp194 int32_t Tetrahedron::Init(void *window, int32_t width, int32_t height) in Init() argument
196 LOGI("Init window = %{public}p, w = %{public}d, h = %{public}d.", window, width, height); in Init()
/applications/standard/app_samples/code/BasicFeature/Native/XComponent3D/entry/src/main/cpp/include/
H A Dopengl_draw.h26 int32_t Init(EGLNativeWindowType window, int width, int height);

Completed in 14 milliseconds

12