Home
last modified time | relevance | path

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

12

/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/skia_adapter/
H A Dskia_texture_info_test.cpp78 TextureInfo textureInfo = SkiaTextureInfo::ConvertToTextureInfo(texture); in HWTEST_F() local
80 EXPECT_EQ(textureInfo.GetWidth(), 1280); in HWTEST_F()
81 EXPECT_EQ(textureInfo.GetHeight(), 720); in HWTEST_F()
82 EXPECT_FALSE(textureInfo.GetIsMipMapped()); in HWTEST_F()
H A Dskia_image_test.cpp151 TextureInfo textureInfo; in HWTEST_F() local
152 textureInfo.SetWidth(10); in HWTEST_F()
154 skiaImage->BuildFromTexture(context, textureInfo, TextureOrigin::TOP_LEFT, bitmapFormat, nullptr, nullptr, nullptr); in HWTEST_F()
157 context, textureInfo, TextureOrigin::TOP_LEFT, bitmapFormat, colorSpace, nullptr, nullptr); in HWTEST_F()
170 TextureInfo textureInfo; in HWTEST_F() local
171 textureInfo.SetWidth(10); in HWTEST_F()
174 context, textureInfo, TextureOrigin::TOP_LEFT, bitmapFormat, nullptr, nullptr, nullptr); in HWTEST_F()
/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()
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/image/image_fuzzer/
H A Dimage_fuzzer.cpp303 TextureInfo textureInfo; in ImageFuzzTest009() local
310 textureInfo.SetWidth(width); in ImageFuzzTest009()
311 textureInfo.GetWidth(); in ImageFuzzTest009()
312 textureInfo.SetHeight(height); in ImageFuzzTest009()
313 textureInfo.GetHeight(); in ImageFuzzTest009()
314 textureInfo.SetIsMipMapped(isMipMapped); in ImageFuzzTest009()
315 textureInfo.GetIsMipMapped(); in ImageFuzzTest009()
316 textureInfo.SetTarget(target); in ImageFuzzTest009()
317 textureInfo.GetTarget(); in ImageFuzzTest009()
318 textureInfo in ImageFuzzTest009()
[all...]
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/platform/ohos/backend/
H A Dnative_buffer_utils.cpp325 Drawing::TextureInfo textureInfo; in MakeBackendTextureFromNativeBuffer() local
326 textureInfo.SetWidth(width); in MakeBackendTextureFromNativeBuffer()
327 textureInfo.SetHeight(height); in MakeBackendTextureFromNativeBuffer()
354 textureInfo.SetVKTextureInfo(imageInfo); in MakeBackendTextureFromNativeBuffer()
355 backendTexture.SetTextureInfo(textureInfo); in MakeBackendTextureFromNativeBuffer()
/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()
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/image/
H A Dimage.cpp36 void BackendTexture::SetTextureInfo(const TextureInfo& textureInfo) in SetTextureInfo() argument
38 textureInfo_ = textureInfo; in SetTextureInfo()
/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;
/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()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/model/
H A Dmodel_adapter_wrapper.cpp306 const auto& textureInfo = textureLayer_->GetTextureInfo(); in HandleTouchEvent() local
307 auto width = textureInfo.width_; in HandleTouchEvent()
308 auto height = textureInfo.height_; in HandleTouchEvent()
/foundation/graphic/graphic_3d/3d_widget_adapter/src/ohos/
H A Dtexture_layer.cpp39 explicit TextureImage(const TextureInfo& textureInfo): textureInfo_(textureInfo) {} in TextureImage()
/foundation/graphic/graphic_3d/lume/Lume_3D/src/gltf/
H A Dgltf2_loader.cpp1010 if (!ParseTextureInfo(loadResult, normalTexture.textureInfo, *normalJson)) {
1025 if (!ParseTextureInfo(loadResult, occlusionTexture.textureInfo, *occlusionJson)) {
1084 const auto parseClearcoatTexture = [&textureInfo = clearcoat.texture](
1086 return ParseTextureInfo(loadResult, textureInfo, clearcoat);
1098 const auto parseClearcoatRoughnessTexture = [&textureInfo = clearcoat.roughnessTexture](
1100 return ParseTextureInfo(loadResult, textureInfo, clearcoat);
1109 if (!ParseTextureInfo(loadResult, normalTexture.textureInfo, clearcoat)) {
1198 const auto parseSheenTexture = [&textureInfo = sheen.texture](
1200 return ParseTextureInfo(loadResult, textureInfo, sheen);
1212 const auto parseSheenRoughnessTexture = [&textureInfo
[all...]
H A Dgltf2_importer.cpp718 hasNormalMap = (primitive.material->normalTexture.textureInfo.index != GLTF2::GLTF_INVALID_INDEX || in CreatePrimitiveImportInfo()
719 primitive.material->clearcoat.normalTexture.textureInfo.index != GLTF2::GLTF_INVALID_INDEX); in CreatePrimitiveImportInfo()
1003 if (material.normalTexture.textureInfo == image) { in NormalFlags()
1020 if (material.occlusionTexture.textureInfo == image) { in OcclusionFlags()
1059 if (material.clearcoat.normalTexture.textureInfo == image) { in ClearcoatNormalFlags()
1193 const GLTF2::TextureInfo& textureInfo, GLTF2::Data const& data, GLTFImportResult const& importResult) in ResolveSampler()
1195 return textureInfo.texture ? ResolveSampler(*textureInfo.texture, data, importResult) : EntityReference {}; in ResolveSampler()
1225 if (auto nor = ResolveSampler(material.normalTexture.textureInfo, data, importResult); nor) { in ResolveDefaultSampler()
1229 } else if (auto ao = ResolveSampler(material.occlusionTexture.textureInfo, dat in ResolveDefaultSampler()
1192 ResolveSampler( const GLTF2::TextureInfo& textureInfo, GLTF2::Data const& data, GLTFImportResult const& importResult) ResolveSampler() argument
1446 FillTextureTransform(const GLTF2::TextureInfo& textureInfo, MaterialComponent::TextureTransform& desc) FillTextureTransform() argument
1455 FillTextureParams(const GLTF2::TextureInfo& textureInfo, const GLTFImportResult& importResult, const GLTF2::Data& data, IEntityManager& entityManager, MaterialComponent& desc, MaterialComponent::TextureIndex index) FillTextureParams() argument
[all...]
H A Dgltf2_exporter.cpp1014 exportMaterial.clearcoat.normalTexture.textureInfo.index = GetTextureIndex( in ExportGltfMaterialClearcoat()
1176 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()
[all...]
H A Dgltf2_data_structures.h438 TextureInfo textureInfo; member
443 TextureInfo textureInfo; member
/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()
/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);
/foundation/graphic/graphic_3d/3d_scene_adapter/src/
H A Dscene_adapter.cpp339 const auto& textureInfo = textureLayer_->GetTextureInfo(); in OnWindowChange()
349 reinterpret_cast<uintptr_t>(textureInfo.nativeWindow_), in OnWindowChange()
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/include/image/
H A Dimage.h223 void SetTextureInfo(const TextureInfo& textureInfo);
/foundation/graphic/graphic_2d/rosen/modules/create_pixelmap_surface/src/
H A Dpixel_map_from_surface.cpp177 GrGLTextureInfo textureInfo = { GL_TEXTURE_2D, texId_, GL_RGBA8_OES }; in GetSkSurfaceFromSurfaceBuffer() local
179 surfaceBuffer->GetWidth(), surfaceBuffer->GetHeight(), GrMipMapped::kNo, textureInfo); in GetSkSurfaceFromSurfaceBuffer()
/foundation/graphic/graphic_2d/rosen/modules/render_service/core/pipeline/
H A Drs_uni_render_util.cpp1301 OHOS::Rosen::Drawing::TextureInfo textureInfo; in MakeBackendTexture() local
1302 textureInfo.SetWidth(width); in MakeBackendTexture()
1303 textureInfo.SetHeight(height); in MakeBackendTexture()
1312 textureInfo.SetVKTextureInfo(vkImageInfo); in MakeBackendTexture()
1313 backendTexture.SetTextureInfo(textureInfo); in MakeBackendTexture()
/foundation/graphic/graphic_3d/3d_widget_adapter/core/include/lume/
H A Dlume_common.h153 void OnWindowChange(const TextureInfo& textureInfo) override;
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/pipeline/
H A Drs_draw_cmd.cpp905 GrGLTextureInfo textureInfo = { GL_TEXTURE_EXTERNAL_OES, texId_, GL_RGBA8_OES }; in DrawWithGles() local
908 surfaceBufferInfo_.width_, surfaceBufferInfo_.height_, GrMipMapped::kNo, textureInfo); in DrawWithGles()

Completed in 27 milliseconds

12