Home
last modified time | relevance | path

Searched refs:textureId (Results 1 - 25 of 49) sorted by relevance

12

/foundation/multimedia/image_effect/frameworks/native/render_environment/graphic/
H A Dgl_utils.cpp44 GLuint textureId = 0; in CreateTexture2D() local
45 glGenTextures(1, &textureId); in CreateTexture2D()
46 glBindTexture(GL_TEXTURE_2D, textureId); in CreateTexture2D()
54 return textureId; in CreateTexture2D()
57 unsigned int GLUtils::CreateFramebuffer(unsigned int textureId) in CreateFramebuffer() argument
61 if (textureId != 0) { in CreateFramebuffer()
63 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, textureId, 0); in CreateFramebuffer()
69 unsigned int GLUtils::CreateFramebufferWithTarget(unsigned int textureId, GLenum target) in CreateFramebufferWithTarget() argument
73 if (textureId != 0) { in CreateFramebufferWithTarget()
75 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, target, textureId, in CreateFramebufferWithTarget()
86 DeleteTexture(unsigned int textureId) DeleteTexture() argument
97 GLuint textureId = 0; CreateTexWithStorage() local
222 GLuint textureId = 0; CreateTextureFromImage() local
[all...]
H A Dgl_utils.h33 IMAGE_EFFECT_EXPORT static unsigned int CreateFramebuffer(unsigned int textureId = 0);
35 static unsigned int CreateFramebufferWithTarget(unsigned int textureId, GLenum target);
37 IMAGE_EFFECT_EXPORT static void DeleteTexture(unsigned int textureId);
/foundation/arkui/ace_engine/frameworks/core/components/video/resource/
H A Dext_texture.cpp29 const char TEXTURE_ID[] = "textureId";
97 void ExtTexture::SetSize(int64_t textureId, int32_t textureWidth, int32_t textureHeight) in SetSize() argument
100 paramStream << TEXTURE_ID << PARAM_EQUALS << textureId << PARAM_AND in SetSize()
131 void ExtTexture::AttachToGLContext(int64_t textureId, bool isAttach) in AttachToGLContext() argument
134 paramStream << TEXTURE_ID << PARAM_EQUALS << textureId << PARAM_AND in AttachToGLContext()
H A Dext_texture.h33 void SetSize(int64_t textureId, int32_t textureWidth, int32_t textureHeight);
47 void AttachToGLContext(int64_t textureId, bool isAttach);
H A Dtexture.cpp27 const char TEXTURE_ID[] = "textureId";
111 void Texture::OnSize(int64_t textureId, int32_t textureWidth, int32_t textureHeight) in OnSize() argument
114 paramStream << TEXTURE_ID << PARAM_EQUALS << textureId << PARAM_AND << TEXTURE_WIDTH << PARAM_EQUALS << textureWidth in OnSize()
H A Dtexture.h36 void OnSize(int64_t textureId, int32_t textureWidth, int32_t textureHeight);
/foundation/arkui/ace_engine/frameworks/core/components_ng/render/adapter/
H A Drender_texture_impl.cpp49 extTexture_->SetTextureFreshCallback([weak = WeakClaim(this)](int32_t instanceId, int64_t textureId) { in InitSurface()
54 callback->ProcessTextureRefresh(instanceId, textureId); in InitSurface()
125 void RenderTextureImpl::AttachToGLContext(int64_t textureId, bool isAttach) in AttachToGLContext() argument
128 extTexture_->AttachToGLContext(textureId, isAttach); in AttachToGLContext()
/foundation/arkui/ace_engine/frameworks/core/components/xcomponent/
H A Dxcomponent_element.cpp94 [weak = WeakClaim(this)](int64_t textureId, int32_t width, int32_t height) { in Prepare()
97 xcomponentElement->OnXComponentSizeInit(textureId, width, height); in Prepare()
101 [weak = WeakClaim(this)](int64_t textureId, int32_t width, int32_t height) { in Prepare()
104 xcomponentElement->OnXComponentSizeChange(textureId, width, height); in Prepare()
412 void XComponentElement::OnXComponentSizeInit(int64_t textureId, int32_t textureWidth, int32_t textureHeight) in OnXComponentSizeInit() argument
459 texture_->SetSize(textureId, textureWidth, textureHeight, in OnXComponentSizeInit()
460 [weak = WeakClaim(this), textureId](std::string& result) { in OnXComponentSizeInit()
475 void XComponentElement::OnXComponentSizeChange(int64_t textureId, int32_t textureWidth, int32_t textureHeight) in OnXComponentSizeChange() argument
505 texture_->SetSize(textureId, textureWidth, textureHeight, in OnXComponentSizeChange()
506 [renderNode, textureId](st in OnXComponentSizeChange()
[all...]
H A Dxcomponent_element.h72 void OnXComponentSizeInit(int64_t textureId, int32_t textureWidth, int32_t textureHeight);
73 void OnXComponentSizeChange(int64_t textureId, int32_t textureWidth, int32_t textureHeight);
/foundation/arkui/ace_engine/frameworks/core/components/video/
H A Dtexture_component.h54 void SetTextureId(int64_t textureId) in SetTextureId() argument
56 textureId_ = textureId; in SetTextureId()
/foundation/graphic/graphic_2d/interfaces/inner_api/surface/
H A Dnative_image.h82 * @param textureId Indicates the id of the Opengl ES texture which the native image attached to.
89 OH_NativeImage* OH_NativeImage_Create(uint32_t textureId, uint32_t textureTarget);
108 * @param textureId Indicates the id of the Opengl ES texture which the native image attached to.
113 int32_t OH_NativeImage_AttachContext(OH_NativeImage* image, uint32_t textureId);
/foundation/graphic/graphic_2d/frameworks/surfaceimage/test/systemtest/
H A Dnative_image_opengl_system_test.cpp106 static inline GLuint textureId = 0; member in OHOS::Rosen::NativeImageSystemOpenGLTest
123 glGenTextures(1, &textureId); in SetUpTestCase()
235 OH_NativeImage* newImage = OH_NativeImage_Create(textureId, GL_TEXTURE_2D); in HWTEST_F()
258 OH_NativeImage* newImage = OH_NativeImage_Create(textureId, GL_TEXTURE_2D); in HWTEST_F()
291 int32_t ret = OH_NativeImage_AttachContext(newImage, textureId); in HWTEST_F()
314 OH_NativeImage* newImage = OH_NativeImage_Create(textureId, GL_TEXTURE_2D); in HWTEST_F()
341 OH_NativeImage* newImage = OH_NativeImage_Create(textureId, GL_TEXTURE_2D); in HWTEST_F()
444 OH_NativeImage* newImage = OH_NativeImage_Create(textureId, GL_TEXTURE_2D); in HWTEST_F()
476 OH_NativeImage* newImage = OH_NativeImage_Create(textureId, GL_TEXTURE_2D); in HWTEST_F()
/foundation/graphic/graphic_2d/frameworks/surfaceimage/src/
H A Dnative_image.cpp31 OH_NativeImage* OH_NativeImage_Create(uint32_t textureId, uint32_t textureTarget) in OH_NativeImage_Create() argument
33 OHOS::sptr<OHOS::SurfaceImage> surfaceImage = new SurfaceImage(textureId, textureTarget); in OH_NativeImage_Create()
73 int32_t OH_NativeImage_AttachContext(OH_NativeImage* image, uint32_t textureId) in OH_NativeImage_AttachContext() argument
79 return image->consumer->AttachContext(textureId); in OH_NativeImage_AttachContext()
/foundation/arkui/ace_engine/frameworks/core/components/camera/large_system/
H A Dcamera.h37 Camera(int64_t textureId, const WeakPtr<PipelineContext>& context, ErrorCallback&& onError, in Camera() argument
39 textureId_(textureId), devicePosition_(devicePosition) {} in Camera()
/foundation/graphic/graphic_2d/frameworks/surfaceimage/test/unittest/
H A Dnative_image_test.cpp109 static inline GLuint textureId = 0; member in OHOS::Rosen::NativeImageTest
127 glGenTextures(1, &textureId); in SetUpTestCase()
212 image = OH_NativeImage_Create(textureId, GL_TEXTURE_2D); in HWTEST_F()
257 int32_t ret = OH_NativeImage_AttachContext(nullptr, textureId); in HWTEST_F()
318 int32_t ret = OH_NativeImage_AttachContext(image, textureId); in HWTEST_F()
424 OH_NativeImage* imageNew = OH_NativeImage_Create(textureId, GL_TEXTURE_2D); in HWTEST_F()
474 OH_NativeImage* imageNew = OH_NativeImage_Create(textureId, GL_TEXTURE_2D); in HWTEST_F()
560 image = OH_NativeImage_Create(textureId, GL_TEXTURE_2D); in HWTEST_F()
638 image = OH_NativeImage_Create(textureId, GL_TEXTURE_2D); in HWTEST_F()
696 OH_NativeImage* imageNew = OH_NativeImage_Create(textureId, GL_TEXTURE_2 in HWTEST_F()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/custom_paint/
H A Dcanvas_render_context_base.h34 virtual void Attach(uint64_t textureId) = 0;
/foundation/arkui/ace_engine/frameworks/core/components_ng/render/
H A Dext_surface_callback_interface.h50 virtual void ProcessTextureRefresh(int32_t instanceId, int64_t textureId) {}; in ProcessTextureRefresh() argument
/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/webgl/include/
H A Dcanvas_render_context_base.h32 virtual void Attach(uint64_t textureId) = 0;
/foundation/arkui/ace_engine/frameworks/core/components/xcomponent/resource/
H A Dnative_texture.cpp20 const char TEXTURE_ID[] = "textureId";
114 void NativeTexture::SetSize(int64_t textureId, int32_t textureWidth, int32_t textureHeight, in SetSize() argument
118 paramStream << TEXTURE_ID << XCOMPONENT_PARAM_EQUALS << textureId << XCOMPONENT_PARAM_AND in SetSize()
H A Dnative_texture.h34 void SetSize(int64_t textureId, int32_t textureWidth, int32_t textureHeight,
/foundation/arkui/ace_engine/frameworks/core/components/camera/
H A Dcamera_element.h67 void OnTextureSize(int64_t textureId, int32_t textureWidth, int32_t textureHeight);
81 void OnTextureOffset(int64_t textureId, int32_t x, int32_t y);
H A Dcamera_element.cpp150 [weak = WeakClaim(this)](int64_t textureId, int32_t textureWidth, int32_t textureHeight) { in Prepare()
153 cameraElement->OnTextureSize(textureId, textureWidth, textureHeight); in Prepare()
165 [weak = WeakClaim(this)](int64_t textureId, int32_t x, int32_t y) { in Prepare()
168 cameraElement->OnTextureOffset(textureId, x, y); in Prepare()
200 void CameraElement::OnTextureSize(int64_t textureId, int32_t textureWidth, int32_t textureHeight) in OnTextureSize() argument
228 texture_->OnSize(textureId, textureWidth, textureHeight); in OnTextureSize()
265 void CameraElement::OnTextureOffset(int64_t textureId, int32_t x, int32_t y) in OnTextureOffset() argument
/foundation/graphic/graphic_2d/frameworks/surfaceimage/include/
H A Dsurface_image.h44 SurfaceImage(uint32_t textureId, uint32_t textureTarget = GL_TEXTURE_EXTERNAL_OES);
69 SurfaceError AttachContext(uint32_t textureId);
/foundation/multimedia/image_effect/frameworks/native/render_environment/core/
H A Dalgorithm_program.cpp94 void AlgorithmProgram::BindTexture(const std::string &name, int unitId, int textureId, GLenum target) in BindTexture() argument
97 glBindTexture(target, textureId); in BindTexture()
H A Dalgorithm_program.h39 void BindTexture(const std::string &name, int unitId, int textureId, GLenum target = GL_TEXTURE_2D);

Completed in 12 milliseconds

12