1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
// automatically generated by rust-bindgen 0.71.1
#![allow(non_upper_case_globals)]
#![allow(non_camel_case_types)]
#![allow(non_snake_case)]
#![allow(deprecated)]
#[allow(unused_imports)]
use crate::averrors::OH_AVErrCode;
#[cfg(feature = "api-15")]
#[allow(unused_imports)]
use crate::avscreen_capture_base::OH_AVScreenCapture_OnDisplaySelected;
#[allow(unused_imports)]
use crate::avscreen_capture_base::{
OH_AVScreenCapture, OH_AVScreenCaptureCallback, OH_AVScreenCaptureConfig, OH_AudioBuffer,
OH_AudioCaptureSourceType, OH_Rect,
};
#[cfg(feature = "api-12")]
#[allow(unused_imports)]
use crate::avscreen_capture_base::{
OH_AVScreenCaptureFilterableAudioContent, OH_AVScreenCapture_ContentFilter,
OH_AVScreenCapture_OnBufferAvailable, OH_AVScreenCapture_OnError,
OH_AVScreenCapture_OnStateChange,
};
#[cfg(feature = "api-20")]
#[allow(unused_imports)]
use crate::avscreen_capture_base::{
OH_AVScreenCapture_CaptureStrategy, OH_AVScreenCapture_FillMode,
OH_AVScreenCapture_OnCaptureContentChanged, OH_AVScreenCapture_OnUserSelected,
OH_AVScreenCapture_UserSelectionInfo,
};
#[allow(unused_imports)]
use crate::avscreen_capture_errors::OH_AVSCREEN_CAPTURE_ErrCode;
#[allow(unused_imports)]
use ohos_sys_opaque_types::{OHNativeWindow, OH_NativeBuffer};
extern "C" {
/// Create a screen capture
///
/// Required System Capabilities: SystemCapability.Multimedia.Media.AVScreenCapture
///
/// # Returns
///
/// * Returns a pointer to an OH_AVScreenCapture instance
///
/// Available since API-level: 10
///
/// Version: 1.0
pub fn OH_AVScreenCapture_Create() -> *mut OH_AVScreenCapture;
/// To init the screen capture, typically, you need to configure the description information of the audio
/// and video, which can be extracted from the container. This interface must be called before StartAVScreenCapture
/// called.
///
/// Required System Capabilities: SystemCapability.Multimedia.Media.AVScreenCapture
/// # Arguments
///
/// * `capture` - Pointer to an OH_AVScreenCapture instance
///
/// * `config` - Information describing the audio and video config
///
/// # Returns
///
/// * Function result code.
/// [`AV_SCREEN_CAPTURE_ERR_OK`] if the execution is successful.
/// [`AV_SCREEN_CAPTURE_ERR_INVALID_VAL`] input capture is nullptr.
/// [`AV_SCREEN_CAPTURE_ERR_OPERATE_NOT_PERMIT`] opertation not be permitted, init config failed.
///
/// Available since API-level: 10
///
/// Version: 1.0
pub fn OH_AVScreenCapture_Init(
capture: *mut OH_AVScreenCapture,
config: OH_AVScreenCaptureConfig,
) -> OH_AVSCREEN_CAPTURE_ErrCode;
/// Start the av screen capture
/// # Arguments
///
/// {struct OH_AVScreenCapture*} capture Pointer to an OH_AVScreenCapture instance
///
/// # Returns
///
/// * Function result code.
/// [`AV_SCREEN_CAPTURE_ERR_OK`] if the execution is successful.
/// [`AV_SCREEN_CAPTURE_ERR_INVALID_VAL`] input capture is nullptr.
/// [`AV_SCREEN_CAPTURE_ERR_UNSUPPORT`] device doesn't support certain configurations. add since api20.
/// [`AV_SCREEN_CAPTURE_ERR_OPERATE_NOT_PERMIT`] opertation not be permitted, set privacy authority enabled
/// failed or start ScreenCapture failed.
///
/// Available since API-level: 10
pub fn OH_AVScreenCapture_StartScreenCapture(
capture: *mut OH_AVScreenCapture,
) -> OH_AVSCREEN_CAPTURE_ErrCode;
/// Stop the av screen capture
///
/// Required System Capabilities: SystemCapability.Multimedia.Media.AVScreenCapture
/// # Arguments
///
/// * `capture` - Pointer to an OH_AVScreenCapture instance
///
/// # Returns
///
/// * Function result code.
/// [`AV_SCREEN_CAPTURE_ERR_OK`] if the execution is successful.
/// [`AV_SCREEN_CAPTURE_ERR_INVALID_VAL`] input capture is nullptr.
/// [`AV_SCREEN_CAPTURE_ERR_OPERATE_NOT_PERMIT`] opertation not be permitted, stop ScreenCapture failed.
///
/// Available since API-level: 10
///
/// Version: 1.0
pub fn OH_AVScreenCapture_StopScreenCapture(
capture: *mut OH_AVScreenCapture,
) -> OH_AVSCREEN_CAPTURE_ErrCode;
/// Start av screen record use to start save screen record file.
/// # Arguments
///
/// {struct OH_AVScreenCapture*} capture Pointer to an OH_AVScreenCapture instance
///
/// # Returns
///
/// * Function result code.
/// [`AV_SCREEN_CAPTURE_ERR_OK`] if the execution is successful.
/// [`AV_SCREEN_CAPTURE_ERR_INVALID_VAL`] input capture is nullptr.
/// [`AV_SCREEN_CAPTURE_ERR_UNSUPPORT`] device doesn't support certain configurations. add since api20.
/// [`AV_SCREEN_CAPTURE_ERR_OPERATE_NOT_PERMIT`] opertation not be permitted, set privacy authority enabled
/// failed or start ScreenRecording failed.
///
/// Available since API-level: 10
pub fn OH_AVScreenCapture_StartScreenRecording(
capture: *mut OH_AVScreenCapture,
) -> OH_AVSCREEN_CAPTURE_ErrCode;
/// Start av screen record use to stop save screen record file.
///
/// Required System Capabilities: SystemCapability.Multimedia.Media.AVScreenCapture
/// # Arguments
///
/// * `capture` - Pointer to an OH_AVScreenCapture instance
///
/// # Returns
///
/// * Function result code.
/// [`AV_SCREEN_CAPTURE_ERR_OK`] if the execution is successful.
/// [`AV_SCREEN_CAPTURE_ERR_INVALID_VAL`] input capture is nullptr.
/// [`AV_SCREEN_CAPTURE_ERR_OPERATE_NOT_PERMIT`] opertation not be permitted, stop ScreenRecording failed.
///
/// Available since API-level: 10
///
/// Version: 1.0
pub fn OH_AVScreenCapture_StopScreenRecording(
capture: *mut OH_AVScreenCapture,
) -> OH_AVSCREEN_CAPTURE_ErrCode;
/// Acquire the audio buffer for the av screen capture
///
/// Required System Capabilities: SystemCapability.Multimedia.Media.AVScreenCapture
/// # Arguments
///
/// * `capture` - Pointer to an OH_AVScreenCapture instance
///
/// * `audiobuffer` - Information describing the audio buffer of the capture
///
/// * `type` - Information describing the audio source type
///
/// # Returns
///
/// * Function result code.
/// [`AV_SCREEN_CAPTURE_ERR_OK`] if the execution is successful.
/// [`AV_SCREEN_CAPTURE_ERR_INVALID_VAL`] input capture is nullptr or input **audiobuffer is nullptr.
/// [`AV_SCREEN_CAPTURE_ERR_NO_MEMORY`] no memory, audiobuffer allocate failed.
/// [`AV_SCREEN_CAPTURE_ERR_OPERATE_NOT_PERMIT`] opertation not be permitted, not permit for has set
/// DataCallback or acquire AudioBuffer failed.
///
/// Available since API-level: 10
///
/// Version: 1.0
pub fn OH_AVScreenCapture_AcquireAudioBuffer(
capture: *mut OH_AVScreenCapture,
audiobuffer: *mut *mut OH_AudioBuffer,
type_: OH_AudioCaptureSourceType,
) -> OH_AVSCREEN_CAPTURE_ErrCode;
/// Acquire the video buffer for the av screen capture
///
/// Required System Capabilities: SystemCapability.Multimedia.Media.AVScreenCapture
/// # Arguments
///
/// * `capture` - Pointer to an OH_AVScreenCapture instance
///
/// * `fence` - A processing state of display buffer
///
/// * `timestamp` - Information about the video buffer
///
/// * `region` - Information about the video buffer
///
/// # Returns
///
/// * Returns a pointer to an OH_NativeBuffer instance
///
/// Available since API-level: 10
///
/// Version: 1.0
pub fn OH_AVScreenCapture_AcquireVideoBuffer(
capture: *mut OH_AVScreenCapture,
fence: *mut i32,
timestamp: *mut i64,
region: *mut OH_Rect,
) -> *mut OH_NativeBuffer;
/// Release the audio buffer for the av screen capture
///
/// Required System Capabilities: SystemCapability.Multimedia.Media.AVScreenCapture
/// # Arguments
///
/// * `capture` - Pointer to an OH_AVScreenCapture instance
///
/// * `type` - Information describing the audio source type
///
/// # Returns
///
/// * Function result code.
/// [`AV_SCREEN_CAPTURE_ERR_OK`] if the execution is successful.
/// [`AV_SCREEN_CAPTURE_ERR_INVALID_VAL`] input capture is nullptr.
/// [`AV_SCREEN_CAPTURE_ERR_OPERATE_NOT_PERMIT`] opertation not be permitted, not permit for has set
/// DataCallback or Release AudioBuffer failed.
///
/// Available since API-level: 10
///
/// Version: 1.0
pub fn OH_AVScreenCapture_ReleaseAudioBuffer(
capture: *mut OH_AVScreenCapture,
type_: OH_AudioCaptureSourceType,
) -> OH_AVSCREEN_CAPTURE_ErrCode;
/// Release the video buffer for the av screen capture
///
/// Required System Capabilities: SystemCapability.Multimedia.Media.AVScreenCapture
/// # Arguments
///
/// * `capture` - Pointer to an OH_AVScreenCapture instance
///
/// # Returns
///
/// * Function result code.
/// [`AV_SCREEN_CAPTURE_ERR_OK`] if the execution is successful.
/// [`AV_SCREEN_CAPTURE_ERR_INVALID_VAL`] input capture is nullptr.
/// [`AV_SCREEN_CAPTURE_ERR_OPERATE_NOT_PERMIT`] opertation not be permitted, not permit for has set
/// DataCallback or Release VideoBuffer failed.
///
/// Available since API-level: 10
///
/// Version: 1.0
pub fn OH_AVScreenCapture_ReleaseVideoBuffer(
capture: *mut OH_AVScreenCapture,
) -> OH_AVSCREEN_CAPTURE_ErrCode;
/// Set the callback function so that your application
/// can respond to the events generated by the av screen capture. This interface must be called before Init is called.
///
/// Required System Capabilities: SystemCapability.Multimedia.Media.AVScreenCapture
/// # Arguments
///
/// * `capture` - Pointer to an OH_AVScreenCapture instance
///
/// * `callback` - A collection of all callback functions, see [`OH_AVScreenCaptureCallback`]
///
/// # Returns
///
/// * Function result code.
/// [`AV_SCREEN_CAPTURE_ERR_OK`] if the execution is successful.
/// [`AV_SCREEN_CAPTURE_ERR_INVALID_VAL`] input capture is nullptr or input callback is nullptr.
/// [`AV_SCREEN_CAPTURE_ERR_OPERATE_NOT_PERMIT`] opertation not be permitted, set callback failed.
///
/// Available since API-level: 10
///
/// Version: 1.0
pub fn OH_AVScreenCapture_SetCallback(
capture: *mut OH_AVScreenCapture,
callback: OH_AVScreenCaptureCallback,
) -> OH_AVSCREEN_CAPTURE_ErrCode;
/// Release the av screen capture
///
/// Required System Capabilities: SystemCapability.Multimedia.Media.AVScreenCapture
/// # Arguments
///
/// * `capture` - Pointer to an OH_AVScreenCapture instance
///
/// # Returns
///
/// * Function result code.
/// [`AV_SCREEN_CAPTURE_ERR_OK`] if the execution is successful.
/// [`AV_SCREEN_CAPTURE_ERR_INVALID_VAL`] input capture is nullptr.
/// [`AV_SCREEN_CAPTURE_ERR_OPERATE_NOT_PERMIT`] opertation not be permitted, screen capture release failed.
///
/// Available since API-level: 10
///
/// Version: 1.0
pub fn OH_AVScreenCapture_Release(
capture: *mut OH_AVScreenCapture,
) -> OH_AVSCREEN_CAPTURE_ErrCode;
/// Controls the switch of the microphone, which is turned on by default
///
/// Required System Capabilities: SystemCapability.Multimedia.Media.AVScreenCapture
/// # Arguments
///
/// * `capture` - Pointer to an OH_AVScreenCapture instance
///
/// * `isMicrophone` - The switch of the microphone
///
/// # Returns
///
/// * Function result code.
/// [`AV_SCREEN_CAPTURE_ERR_OK`] if the execution is successful.
/// [`AV_SCREEN_CAPTURE_ERR_INVALID_VAL`] input capture is nullptr.
/// [`AV_SCREEN_CAPTURE_ERR_OPERATE_NOT_PERMIT`] opertation not be permitted, set microphone enable failed.
///
/// Available since API-level: 10
///
/// Version: 1.0
pub fn OH_AVScreenCapture_SetMicrophoneEnabled(
capture: *mut OH_AVScreenCapture,
isMicrophone: bool,
) -> OH_AVSCREEN_CAPTURE_ErrCode;
/// Set the state callback function so that your application can respond to the
/// state change events generated by the av screen capture. This interface must be called before Start is called.
///
/// Required System Capabilities: SystemCapability.Multimedia.Media.AVScreenCapture
/// # Arguments
///
/// * `capture` - Pointer to an OH_AVScreenCapture instance
///
/// * `callback` - State callback function, see [`OH_AVScreenCapture_OnStateChange`]
///
/// * `userData` - Pointer to user specific data
///
/// # Returns
///
/// * Function result code.
/// [`AV_SCREEN_CAPTURE_ERR_OK`] if the execution is successful.
/// [`AV_SCREEN_CAPTURE_ERR_INVALID_VAL`] input capture is nullptr or input callback is nullptr.
/// [`AV_SCREEN_CAPTURE_ERR_NO_MEMORY`] no memory, mem allocate failed.
/// [`AV_SCREEN_CAPTURE_ERR_OPERATE_NOT_PERMIT`] opertation not be permitted, set StateCallback failed.
///
/// Available since API-level: 12
///
/// Version: 1.0
#[cfg(feature = "api-12")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
pub fn OH_AVScreenCapture_SetStateCallback(
capture: *mut OH_AVScreenCapture,
callback: OH_AVScreenCapture_OnStateChange,
userData: *mut ::core::ffi::c_void,
) -> OH_AVSCREEN_CAPTURE_ErrCode;
/// Set the data callback function so that your application can respond to the
/// data available events generated by the av screen capture. This interface must be called before Start is called.
///
/// Required System Capabilities: SystemCapability.Multimedia.Media.AVScreenCapture
/// # Arguments
///
/// * `capture` - Pointer to an OH_AVScreenCapture instance
///
/// * `callback` - Data callback function, see [`OH_AVScreenCapture_OnBufferAvailable`]
///
/// * `userData` - Pointer to user specific data
///
/// # Returns
///
/// * Function result code.
/// [`AV_SCREEN_CAPTURE_ERR_OK`] if the execution is successful.
/// [`AV_SCREEN_CAPTURE_ERR_INVALID_VAL`] input capture is nullptr or input callback is nullptr.
/// [`AV_SCREEN_CAPTURE_ERR_NO_MEMORY`] no memory, mem allocate failed.
/// [`AV_SCREEN_CAPTURE_ERR_OPERATE_NOT_PERMIT`] opertation not be permitted, set DataCallback failed.
///
/// Available since API-level: 12
///
/// Version: 1.0
#[cfg(feature = "api-12")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
pub fn OH_AVScreenCapture_SetDataCallback(
capture: *mut OH_AVScreenCapture,
callback: OH_AVScreenCapture_OnBufferAvailable,
userData: *mut ::core::ffi::c_void,
) -> OH_AVSCREEN_CAPTURE_ErrCode;
/// Set the error callback function so that your application can respond to the
/// error events generated by the av screen capture. This interface must be called before Start is called.
///
/// Required System Capabilities: SystemCapability.Multimedia.Media.AVScreenCapture
/// # Arguments
///
/// * `capture` - Pointer to an OH_AVScreenCapture instance
///
/// * `callback` - Error callback function, see [`OH_AVScreenCapture_OnError`]
///
/// * `userData` - Pointer to user specific data
///
/// # Returns
///
/// * Function result code.
/// [`AV_SCREEN_CAPTURE_ERR_OK`] if the execution is successful.
/// [`AV_SCREEN_CAPTURE_ERR_INVALID_VAL`] input capture is nullptr or input callback is nullptr.
/// [`AV_SCREEN_CAPTURE_ERR_NO_MEMORY`] no memory, mem allocate failed.
/// [`AV_SCREEN_CAPTURE_ERR_OPERATE_NOT_PERMIT`] opertation not be permitted, set ErrorCallback failed.
///
/// Available since API-level: 12
///
/// Version: 1.0
#[cfg(feature = "api-12")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
pub fn OH_AVScreenCapture_SetErrorCallback(
capture: *mut OH_AVScreenCapture,
callback: OH_AVScreenCapture_OnError,
userData: *mut ::core::ffi::c_void,
) -> OH_AVSCREEN_CAPTURE_ErrCode;
/// Start the av screen capture, video data provided by OHNativeWindow.
/// # Arguments
///
/// {struct OH_AVScreenCapture*} capture Pointer to an OH_AVScreenCapture instance.
///
/// {OHNativeWindow*} window Pointer to an OHNativeWindow instance.
///
/// # Returns
///
/// * Function result code.
/// [`AV_SCREEN_CAPTURE_ERR_OK`] if the execution is successful.
/// [`AV_SCREEN_CAPTURE_ERR_INVALID_VAL`] input capture is nullptr or input window is nullptr or
/// input windowSurface is nullptr.
/// [`AV_SCREEN_CAPTURE_ERR_UNSUPPORT`] device doesn't support certain configurations. add since api20.
/// [`AV_SCREEN_CAPTURE_ERR_OPERATE_NOT_PERMIT`] opertation not be permitted, set privacy authority enabled
/// failed or start ScreenCaptureWithSurface failed.
///
/// Available since API-level: 12
#[cfg(feature = "api-12")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
pub fn OH_AVScreenCapture_StartScreenCaptureWithSurface(
capture: *mut OH_AVScreenCapture,
window: *mut OHNativeWindow,
) -> OH_AVSCREEN_CAPTURE_ErrCode;
/// Set canvas rotation when capturing screen
/// # Arguments
///
/// {struct OH_AVScreenCapture*} capture Pointer to an OH_AVScreenCapture instance
///
/// {bool} canvasRotation whether to rotate the canvas
///
/// # Returns
///
/// * Function result code.
/// [`AV_SCREEN_CAPTURE_ERR_OK`] if the execution is successful.
/// [`AV_SCREEN_CAPTURE_ERR_INVALID_VAL`] input capture is nullptr.
/// [`AV_SCREEN_CAPTURE_ERR_UNSUPPORT`] device doesn't support current interface. add since api20.
/// [`AV_SCREEN_CAPTURE_ERR_OPERATE_NOT_PERMIT`] opertation not be permitted, set CanvasRotation failed.
///
/// Available since API-level: 12
#[cfg(feature = "api-12")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
pub fn OH_AVScreenCapture_SetCanvasRotation(
capture: *mut OH_AVScreenCapture,
canvasRotation: bool,
) -> OH_AVSCREEN_CAPTURE_ErrCode;
/// Create a screen capture content filter
///
/// Required System Capabilities: SystemCapability.Multimedia.Media.AVScreenCapture
///
/// # Returns
///
/// * Returns a pointer to an OH_AVScreenCapture_ContentFilter instance
///
/// Available since API-level: 12
///
/// Version: 1.0
#[cfg(feature = "api-12")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
pub fn OH_AVScreenCapture_CreateContentFilter() -> *mut OH_AVScreenCapture_ContentFilter;
/// Release the screen capture content filter
///
/// Required System Capabilities: SystemCapability.Multimedia.Media.AVScreenCapture
/// # Arguments
///
/// * `filter` - Pointer to an OH_AVScreenCapture_ContentFilter instance
///
/// # Returns
///
/// * Function result code.
/// [`AV_SCREEN_CAPTURE_ERR_OK`] if the execution is successful.
/// [`AV_SCREEN_CAPTURE_ERR_INVALID_VAL`] input filter is nullptr.
///
/// Available since API-level: 12
///
/// Version: 1.0
#[cfg(feature = "api-12")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
pub fn OH_AVScreenCapture_ReleaseContentFilter(
filter: *mut OH_AVScreenCapture_ContentFilter,
) -> OH_AVSCREEN_CAPTURE_ErrCode;
/// Add content to the screen capture content filter
///
/// Required System Capabilities: SystemCapability.Multimedia.Media.AVScreenCapture
/// # Arguments
///
/// * `filter` - Pointer to an OH_AVScreenCapture_ContentFilter instance
///
/// * `content` - content to be added
///
/// # Returns
///
/// * Function result code.
/// [`AV_SCREEN_CAPTURE_ERR_OK`] if the execution is successful.
/// [`AV_SCREEN_CAPTURE_ERR_INVALID_VAL`] input filter is nullptr or input content invalid.
///
/// Available since API-level: 12
///
/// Version: 1.0
#[cfg(feature = "api-12")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
pub fn OH_AVScreenCapture_ContentFilter_AddAudioContent(
filter: *mut OH_AVScreenCapture_ContentFilter,
content: OH_AVScreenCaptureFilterableAudioContent,
) -> OH_AVSCREEN_CAPTURE_ErrCode;
/// Set content filter to screen capture
///
/// Required System Capabilities: SystemCapability.Multimedia.Media.AVScreenCapture
/// # Arguments
///
/// * `capture` - Pointer to an OH_AVScreenCapture instance
///
/// * `filter` - Pointer to an OH_AVScreenCapture_ContentFilter instance
///
/// # Returns
///
/// * Function result code.
/// [`AV_SCREEN_CAPTURE_ERR_OK`] if the execution is successful.
/// [`AV_SCREEN_CAPTURE_ERR_INVALID_VAL`] input capture is nullptr or input filter is nullptr.
/// [`AV_SCREEN_CAPTURE_ERR_UNSUPPORT`] not support, for STREAM, should call AudioCapturer interface to make
/// effect when start, for CAPTURE FILE, should call Recorder interface to make effect when start.
///
/// Available since API-level: 12
///
/// Version: 1.0
#[cfg(feature = "api-12")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
pub fn OH_AVScreenCapture_ExcludeContent(
capture: *mut OH_AVScreenCapture,
filter: *mut OH_AVScreenCapture_ContentFilter,
) -> OH_AVSCREEN_CAPTURE_ErrCode;
/// Add Window content to the screen capture content filter
///
/// Required System Capabilities: SystemCapability.Multimedia.Media.AVScreenCapture
/// # Arguments
///
/// * `filter` - Pointer to an OH_AVScreenCapture_ContentFilter instance
///
/// * `windowIDs` - Pointer to windowIDs to be added
///
/// * `windowCount` - length of windowID list
///
/// # Returns
///
/// * Returns AV_SCREEN_CAPTURE_ERR_OK if the execution is successful,
/// otherwise returns a specific error code, refer to [`OH_AVSCREEN_CAPTURE_ErrCode`]
///
/// Available since API-level: 12
///
/// Version: 1.0
#[cfg(feature = "api-12")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
pub fn OH_AVScreenCapture_ContentFilter_AddWindowContent(
filter: *mut OH_AVScreenCapture_ContentFilter,
windowIDs: *mut i32,
windowCount: i32,
) -> OH_AVSCREEN_CAPTURE_ErrCode;
/// Resize the Resolution of the Screen
/// # Arguments
///
/// {struct OH_AVScreenCapture*} capture Pointer to an OH_AVScreenCapture instance
///
/// {int32_t} width Video frame width of avscreeencapture
///
/// {int32_t} height Video frame height of avscreeencapture
///
/// # Returns
///
/// * Function result code.
/// [`AV_SCREEN_CAPTURE_ERR_OK`] if the execution is successful.
/// [`AV_SCREEN_CAPTURE_ERR_INVALID_VAL`] input capture is nullptr.
/// [`AV_SCREEN_CAPTURE_ERR_UNSUPPORT`] device doesn't support current interface. add since api20.
/// [`AV_SCREEN_CAPTURE_ERR_OPERATE_NOT_PERMIT`] opertation not be permitted.
///
/// Available since API-level: 12
#[cfg(feature = "api-12")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
pub fn OH_AVScreenCapture_ResizeCanvas(
capture: *mut OH_AVScreenCapture,
width: i32,
height: i32,
) -> OH_AVSCREEN_CAPTURE_ErrCode;
/// skip some windows' privacy mode of current app during the screen recording
/// # Arguments
///
/// {struct OH_AVScreenCapture*} capture Pointer to an OH_AVScreenCapture instance
///
/// {int32_t*} windowIDs Pointer of windowID list
///
/// {int32_t} windowCount length of windowID list
///
/// # Returns
///
/// * Function result code.
/// [`AV_SCREEN_CAPTURE_ERR_OK`] if the execution is successful.
/// [`AV_SCREEN_CAPTURE_ERR_INVALID_VAL`] input capture is nullptr or input windowIDs are not belong current
/// app.
/// [`AV_SCREEN_CAPTURE_ERR_UNSUPPORT`] device doesn't support current interface. add since api20.
/// [`AV_SCREEN_CAPTURE_ERR_OPERATE_NOT_PERMIT`] opertation not be permitted.
///
/// Available since API-level: 12
#[cfg(feature = "api-12")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
pub fn OH_AVScreenCapture_SkipPrivacyMode(
capture: *mut OH_AVScreenCapture,
windowIDs: *mut i32,
windowCount: i32,
) -> OH_AVSCREEN_CAPTURE_ErrCode;
/// set up the max number of video frame per second
/// # Arguments
///
/// {struct OH_AVScreenCapture*} capture Pointer to an OH_AVScreenCapture instance
///
/// {int32_t} frameRate max frame rate of video
///
/// # Returns
///
/// * Function result code.
/// [`AV_SCREEN_CAPTURE_ERR_OK`] if the execution is successful.
/// [`AV_SCREEN_CAPTURE_ERR_INVALID_VAL`] input capture is nullptr or frameRate is not support.
/// [`AV_SCREEN_CAPTURE_ERR_UNSUPPORT`] device doesn't support current interface. add since api20.
/// [`AV_SCREEN_CAPTURE_ERR_OPERATE_NOT_PERMIT`] opertation not be permitted.
///
/// Available since API-level: 14
#[cfg(feature = "api-14")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-14")))]
pub fn OH_AVScreenCapture_SetMaxVideoFrameRate(
capture: *mut OH_AVScreenCapture,
frameRate: i32,
) -> OH_AVSCREEN_CAPTURE_ErrCode;
/// determines whether the cursor is visible in the session
/// # Arguments
///
/// {struct OH_AVScreenCapture* } capture Pointer to an OH_AVScreenCapture instance
///
/// {bool} showCursor The switch of the cursor
///
/// # Returns
///
/// * Function result code.
/// [`AV_SCREEN_CAPTURE_ERR_OK`] if the execution is successful.
/// [`AV_SCREEN_CAPTURE_ERR_INVALID_VAL`] input capture is nullptr.
/// [`AV_SCREEN_CAPTURE_ERR_UNSUPPORT`] device doesn't support current interface. add since api20.
/// [`AV_SCREEN_CAPTURE_ERR_OPERATE_NOT_PERMIT`] opertation not be permitted, show cursor failed.
///
/// Available since API-level: 15
#[cfg(feature = "api-15")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-15")))]
pub fn OH_AVScreenCapture_ShowCursor(
capture: *mut OH_AVScreenCapture,
showCursor: bool,
) -> OH_AVSCREEN_CAPTURE_ErrCode;
/// Set the display device selection callback function so that your application can respond to the
/// display device selected event generated by the av screen capture.
///
/// Required System Capabilities: SystemCapability.Multimedia.Media.AVScreenCapture
/// # Arguments
///
/// * `capture` - Pointer to an OH_AVScreenCapture instance
///
/// * `callback` - display device selection callback function, see [`OH_AVScreenCapture_OnDisplaySelected`]
///
/// * `userData` - Pointer to user specific data
///
/// # Returns
///
/// * Function result code.
/// [`AV_SCREEN_CAPTURE_ERR_OK`] if the execution is successful.
/// [`AV_SCREEN_CAPTURE_ERR_INVALID_VAL`] input capture is nullptr or input callback is nullptr.
/// [`AV_SCREEN_CAPTURE_ERR_NO_MEMORY`] no memory, mem allocate failed.
/// [`AV_SCREEN_CAPTURE_ERR_INVALID_STATE`] This interface should be called before Start is called.
///
/// Available since API-level: 15
#[cfg(feature = "api-15")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-15")))]
pub fn OH_AVScreenCapture_SetDisplayCallback(
capture: *mut OH_AVScreenCapture,
callback: OH_AVScreenCapture_OnDisplaySelected,
userData: *mut ::core::ffi::c_void,
) -> OH_AVSCREEN_CAPTURE_ErrCode;
/// Create a screen capture Strategy object
///
/// Required System Capabilities: SystemCapability.Multimedia.Media.AVScreenCapture
///
/// # Returns
///
/// * Returns a pointer to the screen capture strategy object, or null if failure
///
/// Available since API-level: 20
#[cfg(feature = "api-20")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-20")))]
pub fn OH_AVScreenCapture_CreateCaptureStrategy() -> *mut OH_AVScreenCapture_CaptureStrategy;
/// Release the screen capture Strategy object
///
/// Required System Capabilities: SystemCapability.Multimedia.Media.AVScreenCapture
/// # Arguments
///
/// {OH_AVScreenCapture_CaptureStrategy*} strategy Pointer to an OH_AVScreenCapture_CaptureStrategy instance
///
/// # Returns
///
/// * Function result code.
/// [`AV_SCREEN_CAPTURE_ERR_OK`] if the execution is successful.
/// [`AV_SCREEN_CAPTURE_ERR_INVALID_VAL`] input strategy is nullptr.
///
/// Available since API-level: 20
#[cfg(feature = "api-20")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-20")))]
pub fn OH_AVScreenCapture_ReleaseCaptureStrategy(
strategy: *mut OH_AVScreenCapture_CaptureStrategy,
) -> OH_AVSCREEN_CAPTURE_ErrCode;
/// set the screen capture strategy for the specified screen capture
///
/// Required System Capabilities: SystemCapability.Multimedia.Media.AVScreenCapture
/// # Arguments
///
/// {OH_AVScreenCapture*} capture Pointer to an OH_AVScreenCapture which need to be setted.
///
/// {OH_AVScreenCapture_CaptureStrategy*} strategy Pointer to an OH_AVScreenCapture_CaptureStrategy which want to
/// set.
///
/// # Returns
///
/// * Function result code.
/// [`AV_SCREEN_CAPTURE_ERR_OK`] if the execution is successful.
/// [`AV_SCREEN_CAPTURE_ERR_INVALID_VAL`] capture or strategyvalue is nullptr.
/// [`AV_SCREEN_CAPTURE_ERR_INVALID_STATE`] This interface should be called before Start is called.
///
/// Available since API-level: 20
#[cfg(feature = "api-20")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-20")))]
pub fn OH_AVScreenCapture_SetCaptureStrategy(
capture: *mut OH_AVScreenCapture,
strategy: *mut OH_AVScreenCapture_CaptureStrategy,
) -> OH_AVSCREEN_CAPTURE_ErrCode;
/// Call Settings Policy value for whether to allow screen capture during cellular calls
///
/// Required System Capabilities: SystemCapability.Multimedia.Media.AVScreenCapture
/// # Arguments
///
/// {OH_AVScreenCapture_CaptureStrategy*} strategy Pointer to an OH_AVScreenCapture_CaptureStrategy instance
///
/// {bool} value The default value is false, which means that screen recording is not allowed during cellular
/// calls.
///
/// # Returns
///
/// * Function result code.
/// [`AV_SCREEN_CAPTURE_ERR_OK`] if the execution is successful.
/// [`AV_SCREEN_CAPTURE_ERR_INVALID_VAL`] strategy value is nullptr.
///
/// Available since API-level: 20
#[cfg(feature = "api-20")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-20")))]
pub fn OH_AVScreenCapture_StrategyForKeepCaptureDuringCall(
strategy: *mut OH_AVScreenCapture_CaptureStrategy,
value: bool,
) -> OH_AVSCREEN_CAPTURE_ErrCode;
/// Set the Capture Content Changed callback function so that your application can
/// customize event handler generated by the screen capture. This interface must be called before Start is called.
///
/// Required System Capabilities: SystemCapability.Multimedia.Media.AVScreenCapture
/// # Arguments
///
/// * `capture` - Pointer to an OH_AVScreenCapture instance
///
/// * `callback` - contentchanged callback function, see [`OH_AVScreenCapture_OnCaptureContentChanged`]
///
/// * `userData` - Pointer to user specific data
///
/// # Returns
///
/// * Function result code.
/// [`AV_SCREEN_CAPTURE_ERR_OK`] if the execution is successful.
/// [`AV_SCREEN_CAPTURE_ERR_INVALID_VAL`] input capture is nullptr or input callback is nullptr.
/// [`AV_SCREEN_CAPTURE_ERR_OPERATE_NOT_PERMIT`] opertation not be permitted, set ErrorCallback failed.
///
/// Available since API-level: 20
#[cfg(feature = "api-20")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-20")))]
pub fn OH_AVScreenCapture_SetCaptureContentChangedCallback(
capture: *mut OH_AVScreenCapture,
callback: OH_AVScreenCapture_OnCaptureContentChanged,
userData: *mut ::core::ffi::c_void,
) -> OH_AVSCREEN_CAPTURE_ErrCode;
/// Set or update the captureArea
/// # Arguments
///
/// {struct OH_AVScreenCapture*} capture capture Pointer to an OH_AVScreenCapture instance
///
/// {uint64_t} displayId Indicates the screen index for setting area recording
///
/// {OH_Rect*} area Pointer to an object describing the location and size of the region
///
/// # Returns
///
/// * Function result code.
/// [`AV_SCREEN_CAPTURE_ERR_OK`] if the execution is successful.
/// [`AV_SCREEN_CAPTURE_ERR_INVALID_VAL`] input capture is nullptr or displayid not exist or area is
/// invalid.
///
/// Available since API-level: 20
#[cfg(feature = "api-20")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-20")))]
pub fn OH_AVScreenCapture_SetCaptureArea(
capture: *mut OH_AVScreenCapture,
displayId: u64,
area: *mut OH_Rect,
) -> OH_AVSCREEN_CAPTURE_ErrCode;
/// Set the fill mode for screen capture when a privacy window exists
///
/// Required System Capabilities: SystemCapability.Multimedia.Media.AVScreenCapture
/// # Arguments
///
/// {OH_AVScreenCapture_CaptureStrategy*} strategy Pointer to an OH_AVScreenCapture_CaptureStrategy instance
///
/// {int32_t} value
/// If set to 0, it means that when there is a privacy window interface, the output screen image is completely black.
/// If set to 1, it means that when there is a privacy window interface, only the privacy window area of the output
/// screen becomes black, and other values returns an error.
///
/// # Returns
///
/// * Function result code.
/// [`AV_SCREEN_CAPTURE_ERR_OK`] if the execution is successful.
/// [`AV_SCREEN_CAPTURE_ERR_INVALID_VAL`] strategy is nullptr or value is invalid.
///
/// Available since API-level: 20
#[cfg(feature = "api-20")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-20")))]
pub fn OH_AVScreenCapture_StrategyForPrivacyMaskMode(
strategy: *mut OH_AVScreenCapture_CaptureStrategy,
value: i32,
) -> OH_AVSCREEN_CAPTURE_ErrCode;
/// Set the canvas to rotate with the screen when capturing the screen
/// # Arguments
///
/// {OH_AVScreenCapture_CaptureStrategy*} strategy Pointer to an OH_AVScreenCapture_CaptureStrategy instance
///
/// {bool} value The default value is False, which means that the width and height of the VirtualDisplay
/// remain the initial settings. If set to True, it means that the width and height of the VirtualDisplay rotates
/// with the rotation of the screen..
///
/// # Returns
///
/// * Function result code.
/// [`AV_SCREEN_CAPTURE_ERR_OK`] if the execution is successful.
/// [`AV_SCREEN_CAPTURE_ERR_INVALID_VAL`] strategy value is nullptr.
///
/// Available since API-level: 20
#[cfg(feature = "api-20")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-20")))]
pub fn OH_AVScreenCapture_StrategyForCanvasFollowRotation(
strategy: *mut OH_AVScreenCapture_CaptureStrategy,
value: bool,
) -> OH_AVSCREEN_CAPTURE_ErrCode;
/// Register user selection notification callback function
///
/// Required System Capabilities: SystemCapability.Multimedia.Media.AVScreenCapture
/// # Arguments
///
/// {OH_AVScreenCapture*} capture Pointer to OH_AVScreenCapture which want to handle user selection info
///
/// {OH_AVScreenCapture_OnUserSelected} callback user selection callback function, see
/// [`OH_AVScreenCapture_OnUserSelected`]
///
/// {void*} userData The control block pointer passed by the application is carried to the application when it
/// is returned
///
/// # Returns
///
/// * Function result code.
/// [`AV_SCREEN_CAPTURE_ERR_OK`] if the execution is successful.
/// [`AV_SCREEN_CAPTURE_ERR_INVALID_VAL`] input capture is nullptr.
///
/// Available since API-level: 20
#[cfg(feature = "api-20")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-20")))]
pub fn OH_AVScreenCapture_SetSelectionCallback(
capture: *mut OH_AVScreenCapture,
callback: OH_AVScreenCapture_OnUserSelected,
userData: *mut ::core::ffi::c_void,
) -> OH_AVSCREEN_CAPTURE_ErrCode;
/// Get the recording content type selected by the user in the confirmation interface
///
/// Required System Capabilities: SystemCapability.Multimedia.Media.AVScreenCapture
/// # Arguments
///
/// {OH_AVScreenCapture_UserSelectionInfo*} selection Pointer to an OH_AVScreenCapture_UserSelectionInfo instance
///
/// {int32_t*} type The capture object type selected by the user, 0: represents the screen, 1: represents the
/// window.
///
/// # Returns
///
/// * Function result code.
/// [`AV_SCREEN_CAPTURE_ERR_OK`] if the execution is successful.
/// [`AV_SCREEN_CAPTURE_ERR_INVALID_VAL`] if selections is nullptr.
///
/// Available since API-level: 20
#[cfg(feature = "api-20")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-20")))]
pub fn OH_AVScreenCapture_GetCaptureTypeSelected(
selection: *mut OH_AVScreenCapture_UserSelectionInfo,
type_: *mut i32,
) -> OH_AVSCREEN_CAPTURE_ErrCode;
/// Get the Display ID of user selections in the confirmation interface
///
/// Required System Capabilities: SystemCapability.Multimedia.Media.AVScreenCapture
/// # Arguments
///
/// {OH_AVScreenCapture_UserSelectionInfo*} selection Pointer to an OH_AVScreenCapture_UserSelectionInfo instance
///
/// {uint64_t*} displayId Returns the screen ID value selected by the user
///
/// # Returns
///
/// * Function result code.
/// [`AV_SCREEN_CAPTURE_ERR_OK`] if the execution is successful.
/// [`AV_SCREEN_CAPTURE_ERR_INVALID_VAL`] if selections is nullptr.
///
/// Available since API-level: 20
#[cfg(feature = "api-20")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-20")))]
pub fn OH_AVScreenCapture_GetDisplayIdSelected(
selection: *mut OH_AVScreenCapture_UserSelectionInfo,
displayId: *mut u64,
) -> OH_AVSCREEN_CAPTURE_ErrCode;
/// Indicates whether to enable B-frame encoding, which is used to reduce the size of the recorded file.
///
/// Required System Capabilities: SystemCapability.Multimedia.Media.AVScreenCapture
/// # Arguments
///
/// {OH_AVScreenCapture_CaptureStrategy*} strategy Pointer to an OH_AVScreenCapture_CaptureStrategy instance
///
/// {bool} value The default value is false, which means B frames encoding are disabled.
///
/// # Returns
///
/// * Function result code.
/// [`AV_SCREEN_CAPTURE_ERR_OK`] if the execution is successful.
/// [`AV_SCREEN_CAPTURE_ERR_INVALID_VAL`] strategy is nullptr.
///
/// Available since API-level: 20
#[cfg(feature = "api-20")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-20")))]
pub fn OH_AVScreenCapture_StrategyForBFramesEncoding(
strategy: *mut OH_AVScreenCapture_CaptureStrategy,
value: bool,
) -> OH_AVSCREEN_CAPTURE_ErrCode;
/// set whether to pop up the screen capture Picker
/// # Arguments
///
/// {OH_AVScreenCapture_CaptureStrategy*} strategy Pointer to an OH_AVScreenCapture_CaptureStrategy instance
///
/// {bool} value
/// If set to false, it means that the APP don’t need to pop up the Picker after screen capture starts;
/// if set to True, the Picker will pop up uniformly after screen capture starts;
/// If not set, it means using the system recommended behavior.
///
/// # Returns
///
/// * Function result code.
/// [`AV_SCREEN_CAPTURE_ERR_OK`] if the execution is successful.
/// [`AV_SCREEN_CAPTURE_ERR_INVALID_VAL`] strategy value is nullptr.
///
/// Available since API-level: 20
#[cfg(feature = "api-20")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-20")))]
pub fn OH_AVScreenCapture_StrategyForPickerPopUp(
strategy: *mut OH_AVScreenCapture_CaptureStrategy,
value: bool,
) -> OH_AVSCREEN_CAPTURE_ErrCode;
/// Set the fill mode of the captured image in the target area
/// # Arguments
///
/// {OH_AVScreenCapture_CaptureStrategy*} strategy Pointer to an OH_AVScreenCapture_CaptureStrategy instance
///
/// {OH_AVScreenCapture_FillMode} mode Value of the captured image fill mode
///
/// # Returns
///
/// * Function result code.
/// [`AV_SCREEN_CAPTURE_ERR_OK`] if the execution is successful.
/// [`AV_SCREEN_CAPTURE_ERR_INVALID_VAL`] strategy value is nullptr.
///
/// Available since API-level: 20
#[cfg(feature = "api-20")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-20")))]
pub fn OH_AVScreenCapture_StrategyForFillMode(
strategy: *mut OH_AVScreenCapture_CaptureStrategy,
mode: OH_AVScreenCapture_FillMode,
) -> OH_AVSCREEN_CAPTURE_ErrCode;
}