未验证 提交 2bd3c6bd 编写于 作者: O openharmony_ci 提交者: Gitee

!9143 Pixelmap ndk api revert

Merge pull request !9143 from caochuan/feature/pixelmap_ndk_api_revert
...@@ -29,8 +29,8 @@ static napi_value TestGetImageInfo(napi_env env, napi_callback_info info) ...@@ -29,8 +29,8 @@ static napi_value TestGetImageInfo(napi_env env, napi_callback_info info)
napi_get_cb_info(env, info, &argCount, argValue, &thisVar, nullptr); napi_get_cb_info(env, info, &argCount, argValue, &thisVar, nullptr);
OhosPixelMapInfo pixelMapInfo; OHOS::Media::OhosPixelMapInfo pixelMapInfo;
OH_GetImageInfo(env, argValue[0], &pixelMapInfo); OHOS::Media::OH_GetImageInfo(env, argValue[0], &pixelMapInfo);
return result; return result;
} }
...@@ -46,7 +46,7 @@ static napi_value TestAccessPixels(napi_env env, napi_callback_info info) ...@@ -46,7 +46,7 @@ static napi_value TestAccessPixels(napi_env env, napi_callback_info info)
napi_get_cb_info(env, info, &argCount, argValue, &thisVar, nullptr); napi_get_cb_info(env, info, &argCount, argValue, &thisVar, nullptr);
void* addrPtr = nullptr; void* addrPtr = nullptr;
OH_AccessPixels(env, argValue[0], &addrPtr); OHOS::Media::OH_AccessPixels(env, argValue[0], &addrPtr);
return result; return result;
} }
...@@ -61,7 +61,7 @@ static napi_value TestUnAccessPixels(napi_env env, napi_callback_info info) ...@@ -61,7 +61,7 @@ static napi_value TestUnAccessPixels(napi_env env, napi_callback_info info)
napi_get_cb_info(env, info, &argCount, argValue, &thisVar, nullptr); napi_get_cb_info(env, info, &argCount, argValue, &thisVar, nullptr);
OH_UnAccessPixels(env, argValue[0]); OHOS::Media::OH_UnAccessPixels(env, argValue[0]);
return result; return result;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册