代码示例// 1.创建NativeImage InitEglContext(); GLuint textureId; glGenTextures(1, &textureId); OH_NativeImage* nativeImage = OH_NativeImage_Create(textureId, GL_TEXTURE_2D); OHNativeWindow* inputWindow = OH_NativeImage_AcquireNativeWindow(image); // 2.设置NativeWindow给解码器 OH_VideoDecoder_SetSurface(OHNaitveWindow* inputWindow);
代码示例