/ohos5.0/foundation/multimedia/player_framework/frameworks/js/player/ |
H A D | audio_player_napi.cpp | 104 size_t argCount = 0; in Constructor() local 182 size_t argCount = 1; in CreateAudioPlayerAsync() local 209 size_t argCount = 1; in SetSrc() local 275 size_t argCount = 0; in GetSrc() local 300 size_t argCount = 1; in SetFdSrc() local 348 size_t argCount = 0; in GetFdSrc() local 377 size_t argCount = 0; in Play() local 410 size_t argCount = 0; in Pause() local 440 size_t argCount = 0; in Stop() local 471 size_t argCount = 0; in Reset() local [all …]
|
H A D | video_player_napi.cpp | 146 size_t argCount = 0; in Constructor() local 202 size_t argCount = 1; in CreateVideoPlayer() local 229 size_t argCount = 1; in SetUrl() local 286 size_t argCount = 0; in GetUrl() local 314 size_t argCount = 1; in SetFdSrc() local 361 size_t argCount = 0; in GetFdSrc() local 435 size_t argCount = 2; in SetDisplaySurface() local 553 size_t argCount = 1; in Prepare() local 585 size_t argCount = 1; in Play() local 620 size_t argCount = 1; in Pause() local [all …]
|
/ohos5.0/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/effect_kit/src/ |
H A D | color_picker_napi.cpp | 534 size_t argCount = 1; in GetMainColor() local 618 size_t argCount = 1; in GetMainColorSync() local 655 size_t argCount = 1; in GetLargestProportionColor() local 691 size_t argCount = 1; in GetHighestSaturationColor() local 727 size_t argCount = 1; in GetAverageColor() local 763 size_t argCount = 1; in IsBlackOrWhiteOrGrayColor() local 782 if (argCount != 1) { in IsBlackOrWhiteOrGrayColor() 803 size_t argCount = 1; in GetMorandiBackgroundColor() local 838 size_t argCount = 1; in GetMorandiShadowColor() local 873 size_t argCount = 1; in GetDeepenImmersionColor() local [all …]
|
/ohos5.0/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 710 size_t argCount = NUM_3; in CreateUnpremultipliedSendablePixelMap() local 903 IMG_NAPI_CHECK_RET_D(argCount == NUM_2 || argCount == NUM_1, in CreateSendablePixelMapSync() 1226 size_t argCount = 0; in GetIsEditable() local 1256 size_t argCount = 0; in GetIsStrideAlignment() local 1751 size_t argCount = 1; in GetImageInfo() local 1827 size_t argCount = 0; in GetBytesNumberPerRow() local 1864 size_t argCount = 0; in GetPixelBytesNumber() local 1994 size_t argCount = 1; in CreateAlphaPixelmap() local 2077 size_t argCount = 0; in GetDensity() local [all …]
|
H A D | sendable_image_source_napi.cpp | 619 size_t argCount = NUM_2; in CreatePixelMap() local 620 IMG_JS_ARGS(env, info, status, argCount, argValue, thisVar); in CreatePixelMap() 635 if (argCount == NUM_0) { in CreatePixelMap() 637 } else if (argCount == NUM_1 || argCount == NUM_2) { in CreatePixelMap() 675 size_t argCount = 2; in CreateImageSource() local 676 IMG_JS_ARGS(env, info, status, argCount, argValue, thisVar); in CreateImageSource() 678 NAPI_ASSERT(env, argCount > 0, "No arg!"); in CreateImageSource() 682 if (argCount > NUM_1) { in CreateImageSource() 856 size_t argCount = 1; in Release() local 859 IMAGE_LOGD("Release argCount is [%{public}zu]", argCount); in Release() [all …]
|
/ohos5.0/foundation/multimedia/player_framework/frameworks/js/soundpool/src/ |
H A D | soundpool_napi.cpp | 82 size_t argCount = 0; in Constructor() local 141 size_t argCount = PARAM3; in JsCreateSoundPool() local 171 size_t argCount = PARAM4; in JsLoad() local 182 if (argCount == PARAM4) { in JsLoad() 222 size_t argCount = PARAM3; in JsPlay() local 234 if (argCount == PARAM3) { in JsPlay() 269 size_t argCount = PARAM2; in JsStop() local 591 size_t argCount = 2; in JsSetOnCallback() local 630 size_t argCount = 1; in JsClearOnCallback() local 702 if ((argCount < PARAM3) && (argCount > 0)) { in ParserLoadOptionFromJs() [all …]
|
/ohos5.0/foundation/multimedia/player_framework/frameworks/js/avplayer/ |
H A D | avplayer_napi.cpp | 143 size_t argCount = 0; in Constructor() local 206 size_t argCount = 1; in JsCreateAVPlayer() local 271 size_t argCount = 1; in JsPrepare() local 345 size_t argCount = 1; in JsPlay() local 423 size_t argCount = 1; in JsPause() local 493 size_t argCount = 1; in JsStop() local 571 size_t argCount = 1; in JsReset() local 673 size_t argCount = 1; in JsRelease() local 731 if (argCount > 1) { in JsSeek() 2536 if (argCount > 1) { in JsSelectTrack() [all …]
|
/ohos5.0/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()
|
/ohos5.0/foundation/multimedia/image_framework/frameworks/kits/js/common/ |
H A D | pixel_map_napi.cpp | 1015 size_t argCount = NUM_3; in CreatePremultipliedPixelMap() local 1186 IMG_NAPI_CHECK_RET_D(argCount == NUM_2 || argCount == NUM_1, in CreatePixelMapSync() 1614 size_t argCount = 0; in GetIsEditable() local 1643 size_t argCount = 0; in GetIsStrideAlignment() local 2136 size_t argCount = 1; in GetImageInfo() local 2210 size_t argCount = 0; in GetBytesNumberPerRow() local 2246 size_t argCount = 0; in GetPixelBytesNumber() local 2378 size_t argCount = 1; in CreateAlphaPixelmap() local 2460 size_t argCount = 0; in GetDensity() local 2536 size_t argCount = 1; in Release() local [all …]
|
H A D | image_source_napi.cpp | 872 size_t argCount = 0; in GetSupportedFormats() local 1300 size_t argCount = 2; in CreateImageSource() local 1428 size_t argCount = 2; in GetImageInfo() local 1629 } else if (argCount == NUM_1 || argCount == NUM_2) { in CreatePixelMap() 1899 if (argCount < NUM_1 || argCount > NUM_3) { in UnwrapContext() 1915 if (argCount == NUM_2 || argCount == NUM_3) { in UnwrapContext() 2044 if (argCount < NUM_1 || argCount > NUM_4) { in UnwrapContextForModify() 2060 if (argCount == NUM_2 || argCount == NUM_3 || argCount == NUM_4) { in UnwrapContextForModify() 2068 if (argCount == NUM_3 || argCount == NUM_4) { in UnwrapContextForModify() 2219 size_t argCount = 5; in UpdateData() local [all …]
|
H A D | metadata_napi.cpp | 444 size_t argCount = NUM_1; in UnwrapContext() local 445 IMG_JS_ARGS(env, info, status, argCount, argValue, thisVar); in UnwrapContext() 461 if (argCount != NUM_1) { in UnwrapContext() 479 size_t argCount = NUM_1; in UnwrapContextForModify() local 490 if (argCount != NUM_1) { in UnwrapContextForModify() 614 size_t argCount = NUM_0; in GetAllProperties() local 615 IMG_JS_ARGS(env, info, status, argCount, nullptr, thisVar); in GetAllProperties() 626 if (argCount != NUM_0) { in GetAllProperties() 658 size_t argCount = NUM_0; in Clone() local 659 IMG_JS_ARGS(env, info, status, argCount, nullptr, thisVar); in Clone() [all …]
|
/ohos5.0/foundation/multimedia/player_framework/frameworks/js/recorder/ |
H A D | audio_recorder_napi.cpp | 112 size_t argCount = 0; in Constructor() local 193 size_t argCount = 1; in CreateAudioRecorderAsync() local 220 size_t argCount = 1; in Prepare() local 222 if (status != napi_ok || jsThis == nullptr || argCount < 1) { in Prepare() 407 size_t argCount = 0; in Start() local 444 size_t argCount = 0; in Pause() local 477 size_t argCount = 0; in Resume() local 513 size_t argCount = 0; in Stop() local 546 size_t argCount = 0; in Reset() local 579 size_t argCount = 0; in Release() local [all …]
|
H A D | video_recorder_napi.cpp | 103 size_t argCount = 0; in Constructor() local 161 size_t argCount = 1; in CreateVideoRecorder() local 201 size_t argCount = 2; in Prepare() local 272 size_t argCount = 1; in GetInputSurface() local 328 size_t argCount = 1; in Start() local 378 size_t argCount = 1; in Pause() local 426 size_t argCount = 1; in Resume() local 476 size_t argCount = 1; in Stop() local 524 size_t argCount = 1; in Reset() local 579 size_t argCount = 1; in Release() 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() 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 > 1) && in GetVideoRecorderProfile() 227 size_t argCount = 3; in HasVideoRecorderProfile() local [all …]
|
/ohos5.0/foundation/multimedia/player_framework/frameworks/js/metadatahelper/ |
H A D | avimagegenerator_napi.cpp | 97 size_t argCount = 0; in Constructor() local 99 napi_status status = napi_get_cb_info(env, info, &argCount, nullptr, &jsThis, nullptr); in Constructor() 145 size_t argCount = 1; in JsCreateAVImageGenerator() local 146 napi_status status = napi_get_cb_info(env, info, &argCount, args, &jsThis, nullptr); in JsCreateAVImageGenerator() 203 size_t argCount = maxArgs; in JsFetchFrameAtTime() local 208 …eGeneratorNapi *napi = AVImageGeneratorNapi::GetJsInstanceWithParameter(env, info, argCount, args); in JsFetchFrameAtTime() 216 …bool notParamValid = argCount < argCallback || napi_typeof(env, args[argPixelParam], &valueType) !… in JsFetchFrameAtTime() 312 size_t argCount = 1; in JsRelease() local 344 size_t argCount = 1; // url: string in JsSetAVFileDescriptor() local 385 size_t argCount = 0; in GetJsInstance() local [all …]
|
H A D | avmetadataextractor_napi.cpp | 93 size_t argCount = 0; in Constructor() local 141 size_t argCount = 1; in JsCreateAVMetadataExtractor() local 142 napi_status status = napi_get_cb_info(env, info, &argCount, args, &jsThis, nullptr); in JsCreateAVMetadataExtractor() 169 size_t argCount = 1; in JsResolveMetadata() local 276 size_t argCount = 1; in JsFetchArtPicture() local 377 size_t argCount = 1; in JsRelease() local 415 size_t argCount = 1; in JsSetAVFileDescriptor() local 464 size_t argCount = ARG_ONE; in JsSetDataSrc() local 526 size_t argCount = 0; in GetJsInstance() local 560 size_t argCount = ARG_TWO; in JSGetTimeByFrameIndex() local [all …]
|
/ohos5.0/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()
|
/ohos5.0/foundation/ai/intelligent_voice_framework/frameworks/js/napi/ |
H A D | intell_voice_manager_napi.cpp | 142 size_t argCount = 0; in Construct() local 147 status = napi_get_cb_info(env, info, &argCount, nullptr, &jsThis, nullptr); in Construct() 251 size_t argCount = ARGC_TWO; in On() local 255 napi_status status = napi_get_cb_info(env, info, &argCount, args, &jsThis, nullptr); in On() 256 if (status != napi_ok || argCount != expectArgCount) { in On() 319 size_t argCount = ARGC_TWO; in Off() local 323 napi_status status = napi_get_cb_info(env, info, &argCount, args, &jsThis, nullptr); in Off() 324 if (status != napi_ok || argCount != expectArgCount) { in Off() 377 size_t argCount = 0; in GetIntelligentVoiceManager() local 379 status = napi_get_cb_info(env, info, &argCount, nullptr, nullptr, nullptr); in GetIntelligentVoiceManager() [all …]
|
/ohos5.0/foundation/multimedia/player_framework/frameworks/js/avscreen_capture/ |
H A D | avscreen_capture_napi.cpp | 90 size_t argCount = 0; in Constructor() local 152 size_t argCount = 1; in JsCreateAVScreenRecorder() local 201 size_t argCount = maxParam; in JsReportAVScreenCaptureUserChoice() local 213 MEDIA_LOGI("argCountL %{public}zu", argCount); in JsReportAVScreenCaptureUserChoice() 215 if (argCount < maxParam) { in JsReportAVScreenCaptureUserChoice() 280 size_t argCount = maxParam; in JsInit() local 360 size_t argCount = 1; // arg[0] vector in JsSkipPrivacyMode() local 403 size_t argCount = maxParam; in JsSetMicrophoneEnabled() local 467 size_t argCount = 2; in JsSetEventCallback() local 505 size_t argCount = 1; in JsCancelEventCallback() local [all …]
|
/ohos5.0/foundation/multimedia/player_framework/frameworks/js/avtranscoder/ |
H A D | avtranscoder_napi.cpp | 124 size_t argCount = 0; in Constructor() local 188 size_t argCount = 1; in JsCreateAVTransCoder() local 234 size_t argCount = maxParam; in JsPrepare() local 346 size_t argCount = 2; in JsSetEventCallback() local 379 size_t argCount = 1; in JsCancelEventCallback() local 404 MEDIA_LOGI("argCount:%{public}zu", argCount); in GetJsInstanceAndArgs() 487 size_t argCount = 1; in JsGetSrcUrl() local 509 size_t argCount = 1; in JsSetSrcFd() local 556 size_t argCount = 1; in JsGetSrcFd() local 578 size_t argCount = 1; in JsSetDstFd() local [all …]
|
/ohos5.0/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/ui_effect/src/ |
H A D | filter_napi.cpp | 110 size_t argCount = 0; in Constructor() local 277 size_t argCount = NUM_3; in SetPixelStretch() local 278 UIEFFECT_JS_ARGS(env, info, status, argCount, argValue, thisVar); in SetPixelStretch() 288 if (argCount >= NUM_1) { in SetPixelStretch() 292 if (argCount >= NUM_2) { in SetPixelStretch() 340 size_t argCount = NUM_5; in SetWaterRipple() local 341 UIEFFECT_JS_ARGS(env, info, status, argCount, argValue, thisVar); in SetWaterRipple() 356 if (argCount != NUM_5) { in SetWaterRipple() 396 size_t argCount = NUM_2; in SetFlyOut() local 397 UIEFFECT_JS_ARGS(env, info, status, argCount, argValue, thisVar); in SetFlyOut() [all …]
|
/ohos5.0/docs/zh-cn/application-dev/media/image/ |
H A D | image-transformation-native.md | 57 size_t argCount = 1; 59 napi_get_cb_info(env, info, &argCount, argValue, &thisVar, nullptr); 77 size_t argCount = 1; 79 napi_get_cb_info(env, info, &argCount, argValue, &thisVar, nullptr); 97 size_t argCount = 1; 99 napi_get_cb_info(env, info, &argCount, argValue, &thisVar, nullptr);
|
H A D | image-pixelmap-operation-native.md | 87 size_t argCount = 1; 93 …if (napi_get_cb_info(env, info, &argCount, argValue, &thisVar, nullptr) != napi_ok || argCount < 1… 111 size_t argCount = 1; 113 …if (napi_get_cb_info(env, info, &argCount, argValue, &thisVar, nullptr) != napi_ok || argCount < 1…
|
/ohos5.0/foundation/multimedia/audio_framework/frameworks/js/napi/audiomanager/ |
H A D | napi_audio_manager.cpp | 183 size_t argCount = PARAM0; in Construct() local 233 size_t argCount = PARAM0; in GetAudioManager() local 247 size_t argCount = PARAM0; in GetStreamManager() local 262 size_t argCount = PARAM0; in GetSessionManager() local 277 size_t argCount = PARAM0; in GetRoutingManager() local 291 size_t argCount = PARAM0; in GetVolumeManager() local 305 size_t argCount = PARAM0; in GetInterruptManager() local 319 size_t argCount = 0; in GetSpatializationManager() local 1312 size_t argCount = ARGS_THREE; in On() local 1330 if (argCount == minArgCount) { in On() [all …]
|
/ohos5.0/docs/en/application-dev/media/image/ |
H A D | image-transformation-native.md | 57 size_t argCount = 1; 59 napi_get_cb_info(env, info, &argCount, argValue, &thisVar, nullptr); 77 size_t argCount = 1; 79 napi_get_cb_info(env, info, &argCount, argValue, &thisVar, nullptr); 97 size_t argCount = 1; 99 napi_get_cb_info(env, info, &argCount, argValue, &thisVar, nullptr);
|