/foundation/multimedia/player_framework/frameworks/js/player/ |
H A D | audio_player_napi.cpp | 104 size_t argCount = 0; in Constructor() local 105 napi_status status = napi_get_cb_info(env, info, &argCount, nullptr, &jsThis, nullptr); in Constructor() 183 size_t argCount = 1; in CreateAudioPlayerAsync() local 184 napi_status status = napi_get_cb_info(env, info, &argCount, args, &jsThis, nullptr); in CreateAudioPlayerAsync() 210 size_t argCount = 1; in SetSrc() local 211 napi_status status = napi_get_cb_info(env, info, &argCount, args, &jsThis, nullptr); in SetSrc() 212 if (status != napi_ok || jsThis == nullptr || argCount < 1) { in SetSrc() 275 size_t argCount = 0; in GetSrc() local 277 napi_status status = napi_get_cb_info(env, info, &argCount, nullptr, &jsThis, nullptr); in GetSrc() 300 size_t argCount in SetFdSrc() local 348 size_t argCount = 0; GetFdSrc() local 377 size_t argCount = 0; Play() local 410 size_t argCount = 0; Pause() local 440 size_t argCount = 0; Stop() local 471 size_t argCount = 0; Reset() local 502 size_t argCount = 0; Release() local 533 size_t argCount = 1; Seek() local 579 size_t argCount = 1; SetVolume() local 628 size_t argCount = minArgCount; On() local 663 size_t argCount = 1; SetLoop() local 712 size_t argCount = 0; GetLoop() local 742 size_t argCount = 0; GetCurrentTime() local 775 size_t argCount = 0; GetDuration() local 839 size_t argCount = 0; GetState() local 912 size_t argCount = 1; GetTrackDescription() local 934 size_t argCount = 1; SetAudioInterruptMode() local 992 size_t argCount = 0; GetAudioInterruptMode() local [all...] |
H A D | video_player_napi.cpp | 146 size_t argCount = 0; in Constructor() local 147 napi_status status = napi_get_cb_info(env, info, &argCount, nullptr, &jsThis, nullptr); in Constructor() 202 size_t argCount = 1; in CreateVideoPlayer() local 203 napi_status status = napi_get_cb_info(env, info, &argCount, args, &jsThis, nullptr); in CreateVideoPlayer() 229 size_t argCount = 1; in SetUrl() local 230 napi_status status = napi_get_cb_info(env, info, &argCount, args, &jsThis, nullptr); in SetUrl() 245 if (argCount < 1 || napi_typeof(env, args[0], &valueType) != napi_ok || valueType != napi_string) { in SetUrl() 285 size_t argCount = 0; in GetUrl() local 286 napi_status status = napi_get_cb_info(env, info, &argCount, nullptr, &jsThis, nullptr); in GetUrl() 313 size_t argCount in SetFdSrc() local 360 size_t argCount = 0; GetFdSrc() local 434 size_t argCount = 2; SetDisplaySurface() local 552 size_t argCount = 1; Prepare() local 584 size_t argCount = 1; Play() local 619 size_t argCount = 1; Pause() local 652 size_t argCount = 1; Stop() local 684 size_t argCount = 1; Reset() local 716 size_t argCount = 1; Release() local 760 size_t argCount = 3; Seek() local 814 size_t argCount = 2; SetSpeed() local 858 size_t argCount = 2; SelectBitrate() local 940 size_t argCount = 1; GetTrackDescription() local 972 size_t argCount = 2; SetVolume() local 1011 size_t argCount = minArgCount; On() local 1050 size_t argCount = 1; SetLoop() local 1091 size_t argCount = 0; GetLoop() local 1121 size_t argCount = 1; SetVideoScaleType() local 1175 size_t argCount = 0; GetVideoScaleType() local 1198 size_t argCount = 0; GetCurrentTime() local 1230 size_t argCount = 0; GetDuration() local 1262 size_t argCount = 0; GetState() local 1290 size_t argCount = 0; GetWidth() local 1317 size_t argCount = 0; GetHeight() local 1347 size_t argCount = 1; SetAudioInterruptMode() local 1405 size_t argCount = 0; GetAudioInterruptMode() local [all...] |
/foundation/multimedia/player_framework/frameworks/js/mediasource/ |
H A D | media_source_napi.cpp | 68 size_t argCount = 0; in Constructor() local 70 napi_status status = napi_get_cb_info(env, info, &argCount, nullptr, &jsThis, nullptr); in Constructor() 111 size_t argCount = 2; in JsCreateMediaSourceWithUrl() local 115 napi_status status = napi_get_cb_info(env, info, &argCount, args, nullptr, nullptr); in JsCreateMediaSourceWithUrl() 119 if (argCount < 1 || napi_typeof(env, args[0], &valueType) != napi_ok || valueType != napi_string) { in JsCreateMediaSourceWithUrl() 146 size_t argCount = 1; in JsSetMimeType() local 149 napi_status status = napi_get_cb_info(env, info, &argCount, args, &jsThis, nullptr); in JsSetMimeType() 153 if (argCount < 1 || napi_typeof(env, args[0], &valueType) != napi_ok || valueType != napi_string) { in JsSetMimeType()
|
/foundation/multimedia/player_framework/frameworks/js/avplayer/ |
H A D | avplayer_napi.cpp | 142 size_t argCount = 0; in Constructor() local 144 napi_status status = napi_get_cb_info(env, info, &argCount, nullptr, &jsThis, nullptr); in Constructor() 205 size_t argCount = 1; in JsCreateAVPlayer() local 206 napi_status status = napi_get_cb_info(env, info, &argCount, args, &jsThis, nullptr); in JsCreateAVPlayer() 270 size_t argCount = 1; in JsPrepare() local 271 AVPlayerNapi *jsPlayer = AVPlayerNapi::GetJsInstanceWithParameter(env, info, argCount, args); in JsPrepare() 344 size_t argCount = 1; in JsPlay() local 345 AVPlayerNapi *jsPlayer = AVPlayerNapi::GetJsInstanceWithParameter(env, info, argCount, args); in JsPlay() 422 size_t argCount = 1; in JsPause() local 423 AVPlayerNapi *jsPlayer = AVPlayerNapi::GetJsInstanceWithParameter(env, info, argCount, arg in JsPause() 492 size_t argCount = 1; JsStop() local 570 size_t argCount = 1; JsReset() local 672 size_t argCount = 1; JsRelease() local 711 size_t argCount = 2; // args[0]:timeMs, args[1]:SeekMode JsSeek() local 783 size_t argCount = ARRAY_ARG_COUNTS_THREE; // args[0]:startTimeMs, args[1]:endTimeMs, args[2]:SeekMode JsSetPlaybackRange() local 871 size_t argCount = 1; // setSpeed(speed: number) JsSetSpeed() local 921 size_t argCount = 1; // setVolume(vol: number) JsSetVolume() local 970 size_t argCount = 1; // selectBitrate(bitRate: number) JsSelectBitrate() local 1054 size_t argCount = 1; // addSubtitleUrl(url: string) JsAddSubtitleUrl() local 1077 size_t argCount = 3; // url: string JsAddSubtitleAVFileDescriptor() local 1198 size_t argCount = 1; // url: string JsSetUrl() local 1231 size_t argCount = 2; // args[0]:int64, args[1]:bool JsSetDecryptConfig() local 1427 size_t argCount = maxParam; JsSetMediaMuted() local 1536 size_t argCount = 1; // url: string JsSetAVFileDescriptor() local 1602 size_t argCount = 2; JsSetMediaSource() local 1659 size_t argCount = 1; JsSetDataSrc() local 1774 size_t argCount = 1; // surfaceId?: string JsSetSurfaceID() local 1840 size_t argCount = 1; // loop: boolenan JsSetLoop() local 1903 size_t argCount = 1; JsSetVideoScaleType() local 1965 size_t argCount = 1; JsSetAudioInterruptMode() local 2028 size_t argCount = 1; // 1param audioEffectMode JsSetAudioEffectMode() local 2160 size_t argCount = 1; JsSetAudioRendererInfo() local 2376 size_t argCount = 1; JsGetTrackDescription() local 2422 size_t argCount = 1; JsGetSelectedTracks() local 2471 HandleSelectTrack(std::unique_ptr<AVPlayerContext> &promiseCtx, napi_env env, napi_value args[], size_t argCount) HandleSelectTrack() argument 2514 size_t argCount = 3; // 2 prarm, args[0]:index args[1]:SwitchMode callbackRef JsSelectTrack() local 2561 size_t argCount = 1; // 1 prarm, args[0]:index JsDeselectTrack() local 2603 size_t argCount = 2; // 2 param: trackType + callback JsGetCurrentTrack() local 2724 size_t argCount = 2; // args[0]:type, args[1]:callback JsSetOnCallback() local 2784 size_t argCount = 2; // args[0]:type, args[1]:callback JsClearOnCallback() local 2937 size_t argCount = 0; GetJsInstance() local [all...] |
/foundation/multimedia/image_framework/interfaces/kits/native/ndk_test_example/ |
H A D | my_pixel_map.cpp | 107 size_t argCount = TEST_ARG_SUM; in TestGetImageInfo() local 109 status = napi_get_cb_info(env, info, &argCount, argValue, &thisVar, nullptr); in TestGetImageInfo() 135 size_t argCount = TEST_ARG_SUM; in TestAccessPixels() local 137 status = napi_get_cb_info(env, info, &argCount, argValue, &thisVar, nullptr); in TestAccessPixels() 161 size_t argCount = TEST_ARG_SUM; in TestUnAccessPixels() local 163 status = napi_get_cb_info(env, info, &argCount, argValue, &thisVar, nullptr); in TestUnAccessPixels()
|
/foundation/multimedia/image_framework/frameworks/kits/js/common/sendable/ |
H A D | sendable_pixel_map_napi.cpp | 658 size_t argCount = NUM_3; in CreatePremultipliedSendablePixelMap() local 659 IMG_JS_ARGS(env, info, status, argCount, argValue, thisVar); in CreatePremultipliedSendablePixelMap() 662 IMG_NAPI_CHECK_RET_D(argCount >= NUM_2, in CreatePremultipliedSendablePixelMap() 665 IMAGE_LOGE("Invalid args count %{public}zu", argCount)); in CreatePremultipliedSendablePixelMap() 681 if (argCount == NUM_3 && ImageNapiUtils::getType(env, argValue[argCount - 1]) == napi_function) { in CreatePremultipliedSendablePixelMap() 682 napi_create_reference(env, argValue[argCount - 1], refCount, &asyncContext->callbackRef); in CreatePremultipliedSendablePixelMap() 710 size_t argCount = NUM_3; in CreateUnpremultipliedSendablePixelMap() local 711 IMG_JS_ARGS(env, info, status, argCount, argValue, thisVar); in CreateUnpremultipliedSendablePixelMap() 714 IMG_NAPI_CHECK_RET_D(argCount > in CreateUnpremultipliedSendablePixelMap() 770 size_t argCount = NUM_4; CreateSendablePixelMap() local 819 size_t argCount = NUM_2; ConvertFromPixelMap() local 856 size_t argCount = NUM_2; ConvertToPixelMap() local 894 size_t argCount = NUM_2; CreateSendablePixelMapSync() local 1017 size_t argCount = NUM_4; CreateSendablePixelMapFromSurface() local 1122 size_t argCount = NUM_4; Unmarshalling() local 1182 size_t argCount = NUM_1; CreateSendablPixelMapFromParcel() local 1226 size_t argCount = 0; GetIsEditable() local 1256 size_t argCount = 0; GetIsStrideAlignment() local 1287 size_t argCount = NUM_2; ReadPixelsToBuffer() local 1344 size_t argCount = NUM_1; ReadPixelsToBufferSync() local 1392 size_t argCount = NUM_2; ReadPixels() local 1449 size_t argCount = NUM_1; ReadPixelsSync() local 1492 size_t argCount = NUM_2; WritePixels() local 1546 size_t argCount = NUM_1; WritePixelsSync() local 1590 size_t argCount = NUM_2; WriteBufferToPixels() local 1647 size_t argCount = NUM_1; WriteBufferToPixelsSync() local 1751 size_t argCount = 1; GetImageInfo() local 1793 size_t argCount = NUM_0; GetImageInfoSync() local 1827 size_t argCount = 0; GetBytesNumberPerRow() local 1864 size_t argCount = 0; GetPixelBytesNumber() local 1900 size_t argCount = NUM_0; IsSupportAlpha() local 1938 size_t argCount = NUM_1; SetAlphaAble() local 1994 size_t argCount = 1; CreateAlphaPixelmap() local 2039 size_t argCount = NUM_0; CreateAlphaPixelmapSync() local 2077 size_t argCount = 0; GetDensity() local 2114 size_t argCount = NUM_1; SetDensity() local 2155 size_t argCount = 1; Release() local 2304 size_t argCount = NUM_1; SetAlphaSync() local 2421 size_t argCount = NUM_2; ScaleSync() local 2536 size_t argCount = NUM_2; TranslateSync() local 2649 size_t argCount = NUM_1; RotateSync() local 2761 size_t argCount = NUM_2; FlipSync() local 2879 size_t argCount = NUM_1; CropSync() local [all...] |
H A D | sendable_image_source_napi.cpp | 652 size_t argCount = NUM_2;
in CreatePixelMap() local 653 IMG_JS_ARGS(env, info, status, argCount, argValue, thisVar);
in CreatePixelMap() 668 if (argCount == NUM_0) {
in CreatePixelMap() 670 } else if (argCount == NUM_1 || argCount == NUM_2) {
in CreatePixelMap() 677 if (ImageNapiUtils::getType(env, argValue[argCount - 1]) == napi_function) {
in CreatePixelMap() 678 napi_create_reference(env, argValue[argCount - 1], refCount, &asyncContext->callbackRef);
in CreatePixelMap() 681 IMAGE_LOGE("argCount mismatch");
in CreatePixelMap() 708 size_t argCount = 2;
in CreateImageSource() local 709 IMG_JS_ARGS(env, info, status, argCount, argValu in CreateImageSource() 885 size_t argCount = 1; Release() local [all...] |
/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/effect_kit/src/ |
H A D | color_picker_napi.cpp | 345 napi_env env, napi_status& status, napi_value* argValue, size_t argCount) in InitializeAsyncContext() 348 if (argCount >= NUM_1) { in InitializeAsyncContext() 361 bool ColorPickerNapi::ProcessCallbackAndCoordinates(napi_env env, napi_value* argValue, size_t argCount, in ProcessCallbackAndCoordinates() argument 366 if (argCount >= NUM_2) { in ProcessCallbackAndCoordinates() 374 if (EffectKitNapiUtils::GetInstance().GetType(env, argValue[argCount - 1]) == napi_function) { in ProcessCallbackAndCoordinates() 375 napi_create_reference(env, argValue[argCount - 1], refCount, &asyncContext->callbackRef); in ProcessCallbackAndCoordinates() 392 size_t argCount = NUM_4; in CreateColorPicker() local 395 EFFECT_JS_ARGS(env, info, status, argCount, argValue, thisVar); in CreateColorPicker() 398 auto asyncContext = InitializeAsyncContext(env, status, argValue, argCount); in CreateColorPicker() 402 if (!ProcessCallbackAndCoordinates(env, argValue, argCount, resul in CreateColorPicker() 344 InitializeAsyncContext( napi_env env, napi_status& status, napi_value* argValue, size_t argCount) InitializeAsyncContext() argument 525 size_t argCount = 1; GetMainColor() local 609 size_t argCount = 1; GetMainColorSync() local 646 size_t argCount = 1; GetLargestProportionColor() local 681 size_t argCount = 1; GetHighestSaturationColor() local 717 size_t argCount = 1; GetGrayscaleMSD() local 752 size_t argCount = 1; GetAverageColor() local 788 size_t argCount = 1; IsBlackOrWhiteOrGrayColor() local 828 size_t argCount = 1; GetTopProportionColors() local [all...] |
/foundation/multimedia/player_framework/frameworks/js/recorder/ |
H A D | audio_recorder_napi.cpp | 112 size_t argCount = 0; in Constructor() local 113 napi_status status = napi_get_cb_info(env, info, &argCount, nullptr, &jsThis, nullptr); in Constructor() 193 size_t argCount = 1; in CreateAudioRecorderAsync() local 194 napi_status status = napi_get_cb_info(env, info, &argCount, args, &jsThis, nullptr); in CreateAudioRecorderAsync() 220 size_t argCount = 1; in Prepare() local 221 napi_status status = napi_get_cb_info(env, info, &argCount, args, &jsThis, nullptr); in Prepare() 222 if (status != napi_ok || jsThis == nullptr || argCount < 1) { in Prepare() 407 size_t argCount = 0; in Start() local 409 napi_status status = napi_get_cb_info(env, info, &argCount, nullptr, &jsThis, nullptr); in Start() 444 size_t argCount in Pause() local 477 size_t argCount = 0; Resume() local 513 size_t argCount = 0; Stop() local 546 size_t argCount = 0; Reset() local 579 size_t argCount = 0; Release() local 614 size_t argCount = minArgCount; On() local [all...] |
H A D | video_recorder_napi.cpp | 103 size_t argCount = 0; in Constructor() local 104 napi_status status = napi_get_cb_info(env, info, &argCount, nullptr, &jsThis, nullptr); in Constructor() 161 size_t argCount = 1; in CreateVideoRecorder() local 162 napi_status status = napi_get_cb_info(env, info, &argCount, args, &jsThis, nullptr); in CreateVideoRecorder() 201 size_t argCount = 2; in Prepare() local 202 napi_status status = napi_get_cb_info(env, info, &argCount, args, &jsThis, nullptr); in Prepare() 210 if (argCount < 1 || napi_typeof(env, args[0], &valueType) != napi_ok || valueType != napi_object) { in Prepare() 272 size_t argCount = 1; in GetInputSurface() local 273 napi_status status = napi_get_cb_info(env, info, &argCount, args, &jsThis, nullptr); in GetInputSurface() 328 size_t argCount in Start() local 378 size_t argCount = 1; Pause() local 426 size_t argCount = 1; Resume() local 476 size_t argCount = 1; Stop() local 524 size_t argCount = 1; Reset() local 579 size_t argCount = 1; Release() local 632 size_t argCount = minArgCount; On() local 810 size_t argCount = 0; GetState() local [all...] |
H A D | recorder_capability_napi.cpp | 35 size_t argCount = 1; in GetAudioRecorderCaps() local 36 napi_status status = napi_get_cb_info(env, info, &argCount, args, &jsThis, nullptr); in GetAudioRecorderCaps() 79 size_t argCount = 2; in IsAudioRecorderConfigSupported() local 80 napi_status status = napi_get_cb_info(env, info, &argCount, args, &jsThis, nullptr); in IsAudioRecorderConfigSupported() 86 if (argCount > 0 && napi_typeof(env, args[0], &valueType) == napi_ok && valueType == napi_object) { in IsAudioRecorderConfigSupported() 130 size_t argCount = 1; in GetVideoRecorderCaps() local 131 napi_status status = napi_get_cb_info(env, info, &argCount, args, &jsThis, nullptr); in GetVideoRecorderCaps() 173 size_t argCount = 3; in GetVideoRecorderProfile() local 174 napi_status status = napi_get_cb_info(env, info, &argCount, args, &jsThis, nullptr); in GetVideoRecorderProfile() 180 if ((argCount > in GetVideoRecorderProfile() 227 size_t argCount = 3; HasVideoRecorderProfile() local [all...] |
/foundation/multimedia/image_framework/frameworks/kits/js/common/ |
H A D | image_source_napi.cpp | 866 size_t argCount = 0; in GetSupportedFormats() local 869 IMG_JS_ARGS(env, info, status, argCount, nullptr, thisVar); in GetSupportedFormats() 1294 size_t argCount = 2; in CreateImageSource() local 1295 IMG_JS_ARGS(env, info, status, argCount, argValue, thisVar); in CreateImageSource() 1297 NAPI_ASSERT(env, argCount > 0, "No arg!"); in CreateImageSource() 1301 if (argCount > NUM_1) { in CreateImageSource() 1378 size_t argCount = NUM_2; in CreateIncrementalSource() local 1379 IMG_JS_ARGS(env, info, status, argCount, argValue, thisVar); in CreateIncrementalSource() 1384 if (argCount == NUM_2) { in CreateIncrementalSource() 1422 size_t argCount in GetImageInfo() local 1478 size_t argCount = NUM_1; GetImageInfoSync() local 1605 size_t argCount = NUM_2; CreatePixelMap() local 1660 size_t argCount = NUM_1; CreatePixelMapSync() local 1876 size_t argCount = NUM_3; UnwrapContext() local 2028 size_t argCount = NUM_4; UnwrapContextForModify() local 2209 size_t argCount = 5; UpdateData() local 2301 size_t argCount = 1; Release() local 2344 size_t argCount = NUM_3; UnwrapContextForList() local 2883 size_t argCount = NUM_1; CreatePicture() local [all...] |
H A D | pixel_map_napi.cpp | 1017 size_t argCount = NUM_3; in CreatePremultipliedPixelMap() local 1018 IMG_JS_ARGS(env, info, status, argCount, argValue, thisVar); in CreatePremultipliedPixelMap() 1021 IMG_NAPI_CHECK_RET_D(argCount >= NUM_2, in CreatePremultipliedPixelMap() 1024 IMAGE_LOGE("Invalid args count %{public}zu", argCount)); in CreatePremultipliedPixelMap() 1040 if (argCount == NUM_3 && ImageNapiUtils::getType(env, argValue[argCount - 1]) == napi_function) { in CreatePremultipliedPixelMap() 1041 napi_create_reference(env, argValue[argCount - 1], refCount, &asyncContext->callbackRef); in CreatePremultipliedPixelMap() 1069 size_t argCount = NUM_3; in CreateUnpremultipliedPixelMap() local 1070 IMG_JS_ARGS(env, info, status, argCount, argValue, thisVar); in CreateUnpremultipliedPixelMap() 1073 IMG_NAPI_CHECK_RET_D(argCount > in CreateUnpremultipliedPixelMap() 1129 size_t argCount = NUM_4; CreatePixelMap() local 1179 size_t argCount = NUM_2; CreatePixelMapSync() local 1506 size_t argCount = NUM_4; Unmarshalling() local 1616 size_t argCount = 0; GetIsEditable() local 1645 size_t argCount = 0; GetIsStrideAlignment() local 1676 size_t argCount = NUM_2; ReadPixelsToBuffer() local 1733 size_t argCount = NUM_1; ReadPixelsToBufferSync() local 1780 size_t argCount = NUM_2; ReadPixels() local 1837 size_t argCount = NUM_1; ReadPixelsSync() local 1878 size_t argCount = NUM_2; WritePixels() local 1932 size_t argCount = NUM_1; WritePixelsSync() local 1974 size_t argCount = NUM_2; WriteBufferToPixels() local 2030 size_t argCount = NUM_1; WriteBufferToPixelsSync() local 2138 size_t argCount = 1; GetImageInfo() local 2179 size_t argCount = NUM_0; GetImageInfoSync() local 2212 size_t argCount = 0; GetBytesNumberPerRow() local 2248 size_t argCount = 0; GetPixelBytesNumber() local 2283 size_t argCount = NUM_0; IsSupportAlpha() local 2320 size_t argCount = NUM_1; SetAlphaAble() local 2380 size_t argCount = 1; CreateAlphaPixelmap() local 2425 size_t argCount = NUM_0; CreateAlphaPixelmapSync() local 2462 size_t argCount = 0; GetDensity() local 2498 size_t argCount = NUM_1; SetDensity() local 2538 size_t argCount = 1; Release() local 2696 size_t argCount = NUM_1; SetAlphaSync() local 2831 size_t argCount = NUM_3; ScaleSync() local 3011 size_t argCount = NUM_2; TranslateSync() local 3123 size_t argCount = NUM_1; RotateSync() local 3233 size_t argCount = NUM_2; FlipSync() local 3349 size_t argCount = NUM_1; CropSync() local [all...] |
H A D | metadata_napi.cpp | 426 size_t argCount = NUM_1; in UnwrapContext() local 427 IMG_JS_ARGS(env, info, status, argCount, argValue, thisVar); in UnwrapContext() 428 IMAGE_LOGD("GetProperties argCount is [%{public}zu]", argCount); in UnwrapContext() 443 if (argCount != NUM_1) { in UnwrapContext() 461 size_t argCount = NUM_1; in UnwrapContextForModify() local 462 IMG_JS_ARGS(env, info, status, argCount, argValue, thisVar); in UnwrapContextForModify() 472 if (argCount != NUM_1) { in UnwrapContextForModify() 596 size_t argCount = NUM_0; in GetAllProperties() local 597 IMG_JS_ARGS(env, info, status, argCount, nullpt in GetAllProperties() 640 size_t argCount = NUM_0; Clone() local [all...] |
/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/ui_effect/src/ |
H A D | filter_napi.cpp | 111 size_t argCount = 0; in Constructor() local 113 napi_status status = napi_get_cb_info(env, info, &argCount, nullptr, &jsThis, nullptr); in Constructor() 271 size_t argCount = NUM_3; in SetPixelStretch() local 272 UIEFFECT_JS_ARGS(env, info, status, argCount, argValue, thisVar); in SetPixelStretch() 282 if (argCount >= NUM_1) { in SetPixelStretch() 286 if (argCount >= NUM_2) { in SetPixelStretch() 334 size_t argCount = NUM_5; in SetWaterRipple() local 335 UIEFFECT_JS_ARGS(env, info, status, argCount, argValue, thisVar); in SetWaterRipple() 350 if (argCount != NUM_5) { in SetWaterRipple() 391 size_t argCount in SetFlyOut() local [all...] |
/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/drawing/sampling_options_napi/ |
H A D | js_sampling_options.cpp | 55 size_t argCount = ARGC_ONE; in Constructor() local 58 napi_status status = napi_get_cb_info(env, info, &argCount, argv, &jsThis, nullptr); in Constructor() 65 if (argCount == ARGC_ZERO) { in Constructor()
|
/foundation/multimedia/player_framework/frameworks/js/soundpool/src/ |
H A D | soundpool_napi.cpp | 82 size_t argCount = 0; in Constructor() local 84 napi_status status = napi_get_cb_info(env, info, &argCount, nullptr, &jsThis, nullptr); in Constructor() 141 size_t argCount = PARAM3; in JsCreateSoundPool() local 142 napi_status status = napi_get_cb_info(env, info, &argCount, args, &jsThis, nullptr); in JsCreateSoundPool() 171 size_t argCount = PARAM4; in JsLoad() local 178 asyncCtx->napi = SoundPoolNapi::GetJsInstanceAndArgs(env, info, argCount, args); in JsLoad() 182 if (argCount == PARAM4) { in JsLoad() 190 if (asyncCtx->napi->ParserLoadOptionFromJs(asyncCtx, env, args, argCount) == MSERR_OK) { in JsLoad() 222 size_t argCount = PARAM3; in JsPlay() local 230 asyncCtx->napi = SoundPoolNapi::GetJsInstanceAndArgs(env, info, argCount, arg in JsPlay() 269 size_t argCount = PARAM2; JsStop() local 316 size_t argCount = PARAM3; JsSetLoop() local 365 size_t argCount = PARAM3; JsSetPriority() local 416 size_t argCount = PARAM3; JsSetRate() local 458 size_t argCount = PARAM4; JsSetVolume() local 501 size_t argCount = PARAM2; JsUnload() local 550 size_t argCount = PARAM1; JsRelease() local 589 size_t argCount = 2; JsSetOnCallback() local 628 size_t argCount = 1; JsClearOnCallback() local 652 GetJsInstanceAndArgs(napi_env env, napi_callback_info info, size_t &argCount, napi_value *args) GetJsInstanceAndArgs() argument 695 ParserLoadOptionFromJs(std::unique_ptr<SoundPoolAsyncContext> &asyncCtx, napi_env env, napi_value *argv, size_t argCount) ParserLoadOptionFromJs() argument 738 ParserPlayOptionFromJs(std::unique_ptr<SoundPoolAsyncContext> &asyncCtx, napi_env env, napi_value *argv, size_t argCount) ParserPlayOptionFromJs() argument [all...] |
/foundation/multimedia/player_framework/frameworks/js/metadatahelper/ |
H A D | avimagegenerator_napi.cpp | 95 size_t argCount = 0; in Constructor() local 97 napi_status status = napi_get_cb_info(env, info, &argCount, nullptr, &jsThis, nullptr); in Constructor() 143 size_t argCount = 1; in JsCreateAVImageGenerator() local 144 napi_status status = napi_get_cb_info(env, info, &argCount, args, &jsThis, nullptr); in JsCreateAVImageGenerator() 209 size_t argCount = maxArgs; in JsFetchFrameAtTime() local 214 AVImageGeneratorNapi *napi = AVImageGeneratorNapi::GetJsInstanceWithParameter(env, info, argCount, args); in JsFetchFrameAtTime() 222 bool notParamValid = argCount < argCallback || napi_typeof(env, args[argPixelParam], &valueType) != napi_ok || in JsFetchFrameAtTime() 318 size_t argCount = 1; in JsRelease() local 319 AVImageGeneratorNapi *generator = AVImageGeneratorNapi::GetJsInstanceWithParameter(env, info, argCount, args); in JsRelease() 351 size_t argCount in JsSetAVFileDescriptor() local 392 size_t argCount = 0; GetJsInstance() local [all...] |
H A D | avmetadataextractor_napi.cpp | 92 size_t argCount = 0; in Constructor() local 94 napi_status status = napi_get_cb_info(env, info, &argCount, nullptr, &jsThis, nullptr); in Constructor() 140 size_t argCount = 1; in JsCreateAVMetadataExtractor() local 141 napi_status status = napi_get_cb_info(env, info, &argCount, args, &jsThis, nullptr); in JsCreateAVMetadataExtractor() 168 size_t argCount = 1; in JsResolveMetadata() local 171 = AVMetadataExtractorNapi::GetJsInstanceWithParameter(env, info, argCount, args); in JsResolveMetadata() 277 size_t argCount = 1; in JsFetchArtPicture() local 280 = AVMetadataExtractorNapi::GetJsInstanceWithParameter(env, info, argCount, args); in JsFetchArtPicture() 378 size_t argCount = 1; in JsRelease() local 380 = AVMetadataExtractorNapi::GetJsInstanceWithParameter(env, info, argCount, arg in JsRelease() 417 size_t argCount = 1; JsSetAVFileDescriptor() local 466 size_t argCount = 1; JsSetDataSrc() local 529 size_t argCount = 0; GetJsInstance() local 563 size_t argCount = 2; JSGetTimeByFrameIndex() local 627 size_t argCount = 2; JSGetFrameIndexByTime() local [all...] |
/foundation/ai/intelligent_voice_framework/frameworks/js/napi/ |
H A D | intell_voice_manager_napi.cpp | 144 size_t argCount = 0; in Construct() local 149 status = napi_get_cb_info(env, info, &argCount, nullptr, &jsThis, nullptr); in Construct() 253 size_t argCount = ARGC_TWO; in On() local 257 napi_status status = napi_get_cb_info(env, info, &argCount, args, &jsThis, nullptr); in On() 258 if (status != napi_ok || argCount != expectArgCount) { in On() 325 size_t argCount = ARGC_TWO; in Off() local 329 napi_status status = napi_get_cb_info(env, info, &argCount, args, &jsThis, nullptr); in Off() 330 if (status != napi_ok || argCount != expectArgCount) { in Off() 392 size_t argCount = 0; in GetIntelligentVoiceManager() local 394 status = napi_get_cb_info(env, info, &argCount, nullpt in GetIntelligentVoiceManager() [all...] |
/foundation/multimedia/player_framework/frameworks/js/avtranscoder/ |
H A D | avtranscoder_napi.cpp | 124 size_t argCount = 0;
in Constructor() local 126 napi_status status = napi_get_cb_info(env, info, &argCount, nullptr, &jsThis, nullptr);
in Constructor() 188 size_t argCount = 1;
in JsCreateAVTransCoder() local 189 napi_status status = napi_get_cb_info(env, info, &argCount, args, &jsThis, nullptr);
in JsCreateAVTransCoder() 234 size_t argCount = maxParam;
in JsPrepare() local 242 asyncCtx->napi = AVTransCoderNapi::GetJsInstanceAndArgs(env, info, argCount, args);
in JsPrepare() 346 size_t argCount = 2;
in JsSetEventCallback() local 348 AVTransCoderNapi *transCoderNapi = AVTransCoderNapi::GetJsInstanceAndArgs(env, info, argCount, args);
in JsSetEventCallback() 379 size_t argCount = 1;
in JsCancelEventCallback() local 381 AVTransCoderNapi *transCoderNapi = AVTransCoderNapi::GetJsInstanceAndArgs(env, info, argCount, arg in JsCancelEventCallback() 398 GetJsInstanceAndArgs( napi_env env, napi_callback_info info, size_t &argCount, napi_value *args) GetJsInstanceAndArgs() argument 443 size_t argCount = 1; // Only callbackRef parameter ExecuteByPromise() local 487 size_t argCount = 1; JsGetSrcUrl() local 509 size_t argCount = 1; JsSetSrcFd() local 556 size_t argCount = 1; JsGetSrcFd() local 578 size_t argCount = 1; JsSetDstFd() local 622 size_t argCount = 1; JsGetDstFd() local [all...] |
/foundation/multimedia/player_framework/frameworks/js/avscreen_capture/ |
H A D | avscreen_capture_napi.cpp | 90 size_t argCount = 0; in Constructor() local 92 napi_status status = napi_get_cb_info(env, info, &argCount, nullptr, &jsThis, nullptr); in Constructor() 152 size_t argCount = 1; in JsCreateAVScreenRecorder() local 153 napi_status status = napi_get_cb_info(env, info, &argCount, args, &jsThis, nullptr); in JsCreateAVScreenRecorder() 201 size_t argCount = maxParam; in JsReportAVScreenCaptureUserChoice() local 211 napi_status status = napi_get_cb_info(env, info, &argCount, args, &jsThis, nullptr); in JsReportAVScreenCaptureUserChoice() 213 MEDIA_LOGI("argCountL %{public}zu", argCount); in JsReportAVScreenCaptureUserChoice() 215 if (argCount < maxParam) { in JsReportAVScreenCaptureUserChoice() 280 size_t argCount = maxParam; in JsInit() local 288 asyncCtx->napi = AVScreenCaptureNapi::GetJsInstanceAndArgs(env, info, argCount, arg in JsInit() 360 size_t argCount = 1; // arg[0] vector JsSkipPrivacyMode() local 403 size_t argCount = maxParam; JsSetMicrophoneEnabled() local 467 size_t argCount = 2; JsSetEventCallback() local 505 size_t argCount = 1; JsCancelEventCallback() local [all...] |
/foundation/multimedia/audio_framework/frameworks/js/napi/audiomanager/ |
H A D | napi_audio_manager.cpp | 187 size_t argCount = PARAM0; in Construct() local 189 status = napi_get_cb_info(env, info, &argCount, nullptr, &jsThis, nullptr); in Construct() 237 size_t argCount = PARAM0; in GetAudioManager() local 239 status = napi_get_cb_info(env, info, &argCount, nullptr, nullptr, nullptr); in GetAudioManager() 240 if (status != napi_ok || argCount != 0) { in GetAudioManager() 251 size_t argCount = PARAM0; in GetStreamManager() local 253 status = napi_get_cb_info(env, info, &argCount, nullptr, nullptr, nullptr); in GetStreamManager() 254 if (status != napi_ok || argCount != 0) { in GetStreamManager() 266 size_t argCount = PARAM0; in GetSessionManager() local 268 status = napi_get_cb_info(env, info, &argCount, nullpt in GetSessionManager() 281 size_t argCount = PARAM0; GetRoutingManager() local 295 size_t argCount = PARAM0; GetVolumeManager() local 309 size_t argCount = PARAM0; GetInterruptManager() local 323 size_t argCount = 0; GetSpatializationManager() local 1318 size_t argCount = ARGS_THREE; On() local 1348 UnregisterInterruptCallback(napi_env env, const T &argv, const size_t argCount, NapiAudioManager *napiAudioManager) UnregisterInterruptCallback() argument 1424 size_t argCount = ARGS_THREE; Off() local [all...] |
/foundation/arkui/napi/interfaces/inner_api/cjffi/ark_interop/ |
H A D | ark_interop_loader.cpp | 24 size_t argCount = 1; in ParseLoadParams() local 25 auto status = napi_get_cb_info(env, info, &argCount, &libNameValue, nullptr, nullptr); in ParseLoadParams() 31 if (argCount != 1) { in ParseLoadParams()
|
/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/effect_kit/include/ |
H A D | color_picker_napi.h | 50 napi_env env, napi_status& status, napi_value* argValue, size_t argCount); 51 static bool ProcessCallbackAndCoordinates(napi_env env, napi_value* argValue, size_t argCount,
|