OH_NativeImage_UpdateSurfaceImage接口错误码
在官方文档https://developer.huawei.com/consumer/cn/doc/harmonyos-references/_o_h___native_image-0000001820880681#ZH-CN_TOPIC_0000001820880681__oh_nativeimage_updatesurfaceimage中,只有接口的定义和成功的返回值。
但在调用OH_NativeImage中OH_NativeImage_UpdateSurfaceImage,结果返回50001000的错误码,不知道错误码的含义,无法进行问题定位。
报错信息如下:OH_NativeImage* image = OH_NativeImage_Create(textureId, GL_TEXTURE_2D);
02-21 16:42:22.863 9049-9059 C01401/Bufferqueue com.openharmony.videocompressor E <429>OnBufferAvailable: SurfaceImageListener::OnBufferAvailable
02-21 16:42:22.864 9049-9792 A03200/videoCompressor com.openharmony.videocompressor E notifySurfaceTextureAvaliable
02-21 16:42:22.864 1140-1385 C014c0/GRALLOC composer_host I dump private handle:
02-21 16:42:22.864 1140-1385 C014c0/GRALLOC composer_host I [basic info] fd = 0x<private>, handleId = <private>, format = <private>, width = <private>, height = <private>, size = <private>
02-21 16:42:22.864 1140-1385 C014c0/GRALLOC composer_host I [basic info] stride(in byte) = <private>, stride(in pixel) = <private>, usage = 0x<private>, vir addr = 0x<private>
02-21 16:42:22.864 1140-1385 C014c0/GRALLOC composer_host I [yuv info] offset = <private>, ustride = <private>, vstride = <private>, uoffset = <private>, voffset = <private>
02-21 16:42:22.864 1140-1385 C014c0/GRALLOC composer_host I [iova info] iova addr = 0x<private>, iova size = <private>
02-21 16:42:22.864 1140-1385 C014c0/GRALLOC composer_host I [attr info] attr addr = 0x<private>, attr vir addr = 0x<private>
02-21 16:42:22.864 1140-1385 C014c0/GRALLOC composer_host I [compression info] compress type = <private>
02-21 16:42:22.864 1140-1385 C014c0/GRALLOC composer_host I [reserve info] reserve fds = <private>, reserve ints = <private>
02-21 16:42:22.864 1140-1385 C014c0/GRALLOC composer_host I [HEBC info] hebcHeaderYStride = <private>, hebcHeaderUVOffset = <private>, hebcHeaderUVStride = <private>
02-21 16:42:22.864 1140-1385 C014c0/GRALLOC composer_host I hebcPa
文档中给出的初始化方式是这样的,如果我想将OH_NativeImage_AcquireNativeWindow获取的OHNativeWindow关联到解码器,texture的target是不是应该是GL_TEXTURE_EXTERNAL_OES,但是现在没有办法声明成这个target,头文件中没有。
HarmonyOS
赞
收藏 0
回答 1
待解决
相关问题
调用广告接口,返回错误码21800003
276浏览 • 1回复 待解决
华为事件通知接口返回10008错误码
8967浏览 • 2回复 待解决
upload 接口报错误码17, http protocol error
1860浏览 • 2回复 待解决
TCPSocket on('close')错误码
257浏览 • 1回复 待解决
webview错误码105 是什么错误?
632浏览 • 1回复 待解决
错误码:err number = 8怎么处理,request.downloadFile接口
419浏览 • 1回复 待解决
eglSwapBuffers常见错误码分析
249浏览 • 1回复 待解决
network bindSocket错误码问题
194浏览 • 1回复 待解决
错误码62980096怎么处理
716浏览 • 1回复 待解决
Web的onErrorReceive错误码含义
1556浏览 • 1回复 待解决
请求广告返回错误码21800003
1964浏览 • 1回复 待解决
请求广告返回错误码401
2136浏览 • 1回复 待解决
Socket连接报错,错误码88
1620浏览 • 1回复 待解决
错误码9568300 moduleName is not unique怎么处理
488浏览 • 0回复 待解决
startAbility跳转失败返回错误码16000001
1856浏览 • 1回复 待解决
web组件加载发生错误对应错误码如何获取
469浏览 • 1回复 待解决
startAbility跳转不成功,错误码16000001
1902浏览 • 1回复 待解决
startAbility()跳转UIAbility不成功,错误码16000001
2238浏览 • 1回复 待解决
错误码9568258,error:install releaseType not same怎么处理
383浏览 • 2回复 待解决
错误码15500000(首选项)如何处理?
1068浏览 • 1回复 待解决
错误码code:9568281 error:install vendor not same怎么处理?
165浏览 • 1回复 待解决
错误码code:9568320 error: no signature info.怎么处理?
258浏览 • 1回复 待解决
错误码code: 9568403 error: check encryption failed怎么处理?
193浏览 • 1回复 待解决
错误码code:9568263 error: install version downgrade怎么处理?
269浏览 • 1回复 待解决
错误码code:9568304 error: device type is not supported怎么处理?
202浏览 • 2回复 待解决
1、声明成这个target–这个问题,请包含"egl_render_context.h" , “shader_program.h” 这两个头文件之后再尝试(这两个头文件是api11才有的,建议升级11之后引入这两个头文件之后再行尝试)。
2、错误码50001000:表示egl环境有问题。