Home
last modified time | relevance | path

Searched refs:textureInfo (Results 1 – 25 of 25) sorted by relevance

/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/engine_adapter/skia_adapter/
H A Dskia_texture_info.cpp141 TextureInfo textureInfo; in ConvertToTextureInfo() local
142 textureInfo.SetWidth(grBackendTexture.width()); in ConvertToTextureInfo()
143 textureInfo.SetHeight(grBackendTexture.height()); in ConvertToTextureInfo()
144 textureInfo.SetIsMipMapped(static_cast<bool>(grBackendTexture.mipmapped())); in ConvertToTextureInfo()
145 textureInfo.SetTarget(grGLTextureInfo->fTarget); in ConvertToTextureInfo()
146 textureInfo.SetID(grGLTextureInfo->fID); in ConvertToTextureInfo()
147 textureInfo.SetFormat(grGLTextureInfo->fFormat); in ConvertToTextureInfo()
149 return textureInfo; in ConvertToTextureInfo()
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/skia_adapter/
H A Dskia_texture_info_test.cpp79 TextureInfo textureInfo = SkiaTextureInfo::ConvertToTextureInfo(texture); variable
81 EXPECT_EQ(textureInfo.GetWidth(), 1280);
82 EXPECT_EQ(textureInfo.GetHeight(), 720);
83 EXPECT_FALSE(textureInfo.GetIsMipMapped());
H A Dskia_image_test.cpp151 TextureInfo textureInfo; variable
152 textureInfo.SetWidth(10);
154 bool ret1 = skiaImage->BuildFromTexture(context, textureInfo, TextureOrigin::TOP_LEFT,
159 context, textureInfo, TextureOrigin::TOP_LEFT, bitmapFormat, colorSpace, nullptr, nullptr);
173 TextureInfo textureInfo; variable
174 textureInfo.SetWidth(10);
177 context, textureInfo, TextureOrigin::TOP_LEFT, bitmapFormat, nullptr, nullptr, nullptr);
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/platform/ohos/backend/
H A Dnative_buffer_utils.cpp324 Drawing::TextureInfo textureInfo; in MakeBackendTextureFromNativeBuffer() local
325 textureInfo.SetWidth(width); in MakeBackendTextureFromNativeBuffer()
326 textureInfo.SetHeight(height); in MakeBackendTextureFromNativeBuffer()
353 textureInfo.SetVKTextureInfo(imageInfo); in MakeBackendTextureFromNativeBuffer()
354 backendTexture.SetTextureInfo(textureInfo); in MakeBackendTextureFromNativeBuffer()
/ohos5.0/foundation/graphic/graphic_3d/3d_widget_adapter/src/
H A Dwidget_adapter.cpp173 bool WidgetAdapter::OnWindowChange(const TextureInfo& textureInfo) in OnWindowChange() argument
176 engine_->OnWindowChange(textureInfo); in OnWindowChange()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/image/
H A Dimage.cpp41 void BackendTexture::SetTextureInfo(const TextureInfo& textureInfo) in SetTextureInfo() argument
43 textureInfo_ = textureInfo; in SetTextureInfo()
/ohos5.0/foundation/graphic/graphic_3d/lume/Lume_3D/src/gltf/
H A Dgltf2_loader.cpp1010 if (!ParseTextureInfo(loadResult, normalTexture.textureInfo, *normalJson)) { in ParseNormalTexture()
1084 const auto parseClearcoatTexture = [&textureInfo = clearcoat.texture]( in ParseKhrMaterialsClearcoat()
1086 return ParseTextureInfo(loadResult, textureInfo, clearcoat); in ParseKhrMaterialsClearcoat()
1100 return ParseTextureInfo(loadResult, textureInfo, clearcoat); in ParseKhrMaterialsClearcoat()
1198 const auto parseSheenTexture = [&textureInfo = sheen.texture]( in ParseKhrMaterialsSheen()
1200 return ParseTextureInfo(loadResult, textureInfo, sheen); in ParseKhrMaterialsSheen()
1214 return ParseTextureInfo(loadResult, textureInfo, sheen); in ParseKhrMaterialsSheen()
1234 const auto parseSpecularTexture = [&textureInfo = specular.texture]( in ParseKhrMaterialsSpecular()
1236 return ParseTextureInfo(loadResult, textureInfo, specular); in ParseKhrMaterialsSpecular()
1250 return ParseTextureInfo(loadResult, textureInfo, specular); in ParseKhrMaterialsSpecular()
[all …]
H A Dgltf2_importer.cpp1003 if (material.normalTexture.textureInfo == image) { in NormalFlags()
1020 if (material.occlusionTexture.textureInfo == image) { in OcclusionFlags()
1059 if (material.clearcoat.normalTexture.textureInfo == image) { in ClearcoatNormalFlags()
1195 …return textureInfo.texture ? ResolveSampler(*textureInfo.texture, data, importResult) : EntityRefe… in ResolveSampler()
1225 if (auto nor = ResolveSampler(material.normalTexture.textureInfo, data, importResult); nor) { in ResolveDefaultSampler()
1448 const auto& transform = textureInfo.transform; in FillTextureTransform()
1455 void FillTextureParams(const GLTF2::TextureInfo& textureInfo, const GLTFImportResult& importResult, in FillTextureParams() argument
1459 desc.textures[index].image = GetImportedTextureHandle(importResult, textureInfo.index); in FillTextureParams()
1460 if (textureInfo.texture) { in FillTextureParams()
1461 desc.textures[index].sampler = ResolveSampler(*textureInfo.texture, data, importResult); in FillTextureParams()
[all …]
H A Dgltf2_exporter.cpp1176 exportMaterial.normalTexture.textureInfo.index = in ExportGltfMaterial()
1181 exportMaterial.occlusionTexture.textureInfo.index = in ExportGltfMaterial()
1531 json::value ExportTextureInfo(TextureInfo const& textureInfo) in ExportTextureInfo() argument
1534 jsonTextureInfo["index"] = textureInfo.index; in ExportTextureInfo()
1535 if (textureInfo.texCoordIndex != 0 && textureInfo.texCoordIndex != GLTF_INVALID_INDEX) { in ExportTextureInfo()
1536 jsonTextureInfo["texCoord"] = textureInfo.texCoordIndex; in ExportTextureInfo()
1603 if (clearcoat.normalTexture.textureInfo.index != GLTF_INVALID_INDEX) { in ExportClearcoat()
1605 ExportTextureInfo(clearcoat.normalTexture.textureInfo); in ExportClearcoat()
1766 if (material->normalTexture.textureInfo.index != GLTF_INVALID_INDEX) { in ExportMaterials()
1768 ExportTextureInfo(material->normalTexture.textureInfo); in ExportMaterials()
[all …]
H A Dgltf2_data_structures.h438 TextureInfo textureInfo; in CORE3D_BEGIN_NAMESPACE() member
443 TextureInfo textureInfo; in CORE3D_BEGIN_NAMESPACE() member
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/model/
H A Dmodel_adapter_wrapper.cpp309 const auto& textureInfo = textureLayer_->GetTextureInfo(); in HandleTouchEvent() local
310 auto width = textureInfo.width_; in HandleTouchEvent()
311 auto height = textureInfo.height_; in HandleTouchEvent()
/ohos5.0/foundation/graphic/graphic_3d/3d_widget_adapter/include/
H A Dwidget_adapter.h43 bool OnWindowChange(const TextureInfo& textureInfo);
H A Di_engine.h63 virtual void OnWindowChange(const TextureInfo& textureInfo) = 0;
/ohos5.0/foundation/graphic/graphic_3d/3d_widget_adapter/src/ohos/
H A Dtexture_layer.cpp39 explicit TextureImage(const TextureInfo& textureInfo): textureInfo_(textureInfo) {} in TextureImage()
/ohos5.0/foundation/graphic/graphic_3d/3d_widget_adapter/core/src/lume/
H A Dlume_common.cpp207 void LumeCommon::OnWindowChange(const TextureInfo& textureInfo) in OnWindowChange() argument
209 textureInfo_ = textureInfo; in OnWindowChange()
210 SetupCustomRenderTarget(textureInfo); in OnWindowChange()
211 float widthScale = textureInfo.widthScale_; in OnWindowChange()
212 float heightScale = textureInfo.heightScale_; in OnWindowChange()
213 SetupCameraViewPort(textureInfo.width_ * widthScale, textureInfo.height_ * heightScale); in OnWindowChange()
216 … customRender_->OnSizeChange(textureInfo.width_ * widthScale, textureInfo.height_ * heightScale); in OnWindowChange()
/ohos5.0/foundation/graphic/graphic_3d/3d_widget_adapter/test/
H A D3d_widget_adapter_test.h56 void OnWindowChange(const TextureInfo &textureInfo) override;
H A D3d_widget_adapter_test.cpp89 void EngineTest::OnWindowChange(const TextureInfo &textureInfo) in OnWindowChange() argument
91 (void)(textureInfo); in OnWindowChange()
/ohos5.0/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/webgl/include/context/
H A Dwebgl_rendering_context_base_impl.h318 …GLenum CheckTexSubImage2D(napi_env env, const TexSubImage2DArg& textureInfo, WebGLTexture* texture…
319 … GLenum CheckCompressedTexImage2D(napi_env env, const TexImageArg& textureInfo, size_t imageSize);
320 GLenum CheckTexFuncDimensions(const TexImageArg& textureInfo);
321 GLenum CheckCompressedTexDimensions(const TexImageArg& textureInfo);
/ohos5.0/foundation/graphic/graphic_3d/3d_scene_adapter/src/
H A Dscene_adapter.cpp339 const auto& textureInfo = textureLayer_->GetTextureInfo(); in OnWindowChange() local
349 reinterpret_cast<uintptr_t>(textureInfo.nativeWindow_), in OnWindowChange()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/include/image/
H A Dimage.h223 void SetTextureInfo(const TextureInfo& textureInfo);
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/create_pixelmap_surface/src/
H A Dpixel_map_from_surface.cpp171 GrGLTextureInfo textureInfo = { GL_TEXTURE_2D, texId_, GL_RGBA8_OES }; in GetSkSurfaceFromSurfaceBuffer() local
173 surfaceBuffer->GetWidth(), surfaceBuffer->GetHeight(), GrMipMapped::kNo, textureInfo); in GetSkSurfaceFromSurfaceBuffer()
/ohos5.0/foundation/graphic/graphic_3d/3d_widget_adapter/core/include/lume/
H A Dlume_common.h153 void OnWindowChange(const TextureInfo& textureInfo) override;
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service/core/pipeline/
H A Drs_uni_render_util.cpp1280 OHOS::Rosen::Drawing::TextureInfo textureInfo; in MakeBackendTexture() local
1281 textureInfo.SetWidth(width); in MakeBackendTexture()
1282 textureInfo.SetHeight(height); in MakeBackendTexture()
1291 textureInfo.SetVKTextureInfo(vkImageInfo); in MakeBackendTexture()
1292 backendTexture.SetTextureInfo(textureInfo); in MakeBackendTexture()
/ohos5.0/foundation/graphic/graphic_3d/lume/scenewidgetplugin/plugin/src/
H A Dmaterial_impl.cpp296 …[this, textureInfo = info.get(), arrayIndex]() { ApplyTextureInfoImage(arrayIndex, *textureInfo); … in SubscribeToTextureInfo()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/pipeline/
H A Drs_render_node.cpp150 OHOS::Rosen::Drawing::TextureInfo textureInfo; in MakeBackendTexture() local
151 textureInfo.SetWidth(width); in MakeBackendTexture()
152 textureInfo.SetHeight(height); in MakeBackendTexture()
162 textureInfo.SetVKTextureInfo(vkImageInfo); in MakeBackendTexture()
163 backendTexture.SetTextureInfo(textureInfo); in MakeBackendTexture()