diff --git a/ImageKit/ImageNativeSample/entry/src/main/cpp/loadAllocator.cpp b/ImageKit/ImageNativeSample/entry/src/main/cpp/loadAllocator.cpp index c4f62cec360b85755622fe14cc6dface450eb8c0..5e4aea24d03d3de3887c6fcb610cd76f609595ea 100644 --- a/ImageKit/ImageNativeSample/entry/src/main/cpp/loadAllocator.cpp +++ b/ImageKit/ImageNativeSample/entry/src/main/cpp/loadAllocator.cpp @@ -18,11 +18,11 @@ #include #include #include -// [StartExclude allocator_operations_import] +// [StartExclude allocator_operations] #include -// [EndExclude allocator_operations_import] +// [EndExclude allocator_operations] -// 根据像素格式返回每像素的字节数 +// 根据像素格式返回每像素的字节数。 int32_t GetPixelFormatBytes(int32_t pixelFormat) { switch (pixelFormat) { @@ -117,7 +117,7 @@ void DataCopy(OH_PixelmapNative *pixelmap, OH_ImageSourceNative* imageSource, OH OH_PixelmapNative_UnaccessPixels(newPixelmap); OH_PixelmapNative_UnaccessPixels(pixelmap); OH_DecodingOptions_Release(options); - options =nullptr; + options = nullptr; OH_ImageSourceNative_Release(imageSource); imageSource = nullptr; OH_PixelmapNative_Release(pixelmap); diff --git a/ImageKit/ImageNativeSample/entry/src/main/cpp/loadReceiver.cpp b/ImageKit/ImageNativeSample/entry/src/main/cpp/loadReceiver.cpp index 30fa876612c89c075605c2abc8c19dec0ea5e6ca..9a23e9f8315196ab415023d5a8824fd6c8a6ff51 100644 --- a/ImageKit/ImageNativeSample/entry/src/main/cpp/loadReceiver.cpp +++ b/ImageKit/ImageNativeSample/entry/src/main/cpp/loadReceiver.cpp @@ -410,7 +410,7 @@ static napi_value TakePhoto(napi_env env, napi_callback_info info) Camera_ErrorCode photoRet = StartTakePhoto(surfaceId_c.get()); return GetJsResultDemo(env, photoRet); } -// [Start load_cameraSession] +// [End load_cameraSession] // 获取接收到的图像信息。 // [Start wait_callBack] @@ -432,7 +432,7 @@ static OH_ImageNative* NotifyJsImageInfoSync() } return g_imageInfoResult; } -// [Start wait_callBack] +// [End wait_callBack] // [Start get_imageSize] // 获取图片大小。