• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2023-2025 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #ifndef NATIVE_SCREEN_CAPTURE_MAGIC_H
17 #define NATIVE_SCREEN_CAPTURE_MAGIC_H
18 
19 #include <refbase.h>
20 #include "screen_capture.h"
21 #include "player.h"
22 #include "recorder.h"
23 #include "avmetadatahelper.h"
24 #include "lpp_audio_streamer.h"
25 #include "lpp_video_streamer.h"
26 
27 struct OH_AVScreenCapture : public OHOS::RefBase {
28     OH_AVScreenCapture() = default;
29     virtual ~OH_AVScreenCapture() = default;
30 };
31 
32 struct OH_AVScreenCapture_ContentFilter : public OHOS::RefBase {
33     OH_AVScreenCapture_ContentFilter() = default;
34     virtual ~OH_AVScreenCapture_ContentFilter() = default;
35 };
36 
37 struct OH_AVScreenCapture_CaptureStrategy : public OHOS::RefBase {
38     OH_AVScreenCapture_CaptureStrategy() = default;
39     virtual ~OH_AVScreenCapture_CaptureStrategy() = default;
40 };
41 
42 struct OH_AVScreenCapture_UserSelectionInfo : public OHOS::RefBase {
43     OH_AVScreenCapture_UserSelectionInfo() = default;
44     virtual ~OH_AVScreenCapture_UserSelectionInfo() = default;
45 };
46 
47 struct OH_AVPlayer : public OHOS::RefBase {
48     OH_AVPlayer() = default;
49     virtual ~OH_AVPlayer() = default;
50     OHOS::Media::PlayerStates state_ = OHOS::Media::PLAYER_IDLE;
51 };
52 
53 struct OH_AVRecorder : public OHOS::RefBase {
54     OH_AVRecorder() = default;
55     virtual ~OH_AVRecorder() = default;
56 };
57 
58 struct OH_AVImageGenerator : public OHOS::RefBase {
59     OH_AVImageGenerator() = default;
60     virtual ~OH_AVImageGenerator() = default;
61 };
62 
63 struct OH_AVMetadataExtractor : public OHOS::RefBase {
64     OH_AVMetadataExtractor() = default;
65     virtual ~OH_AVMetadataExtractor() = default;
66 };
67 
68 struct OH_AVTranscoder : public OHOS::RefBase {
69     OH_AVTranscoder() = default;
70     virtual ~OH_AVTranscoder() = default;
71 };
72 
73 struct OH_AVTranscoder_Config : public OHOS::RefBase {
74     OH_AVTranscoder_Config() = default;
75     virtual ~OH_AVTranscoder_Config() = default;
76 };
77 
78 struct OH_LowPowerAudioSink : public OHOS::RefBase {
79     OH_LowPowerAudioSink() = default;
80     virtual ~OH_LowPowerAudioSink() = default;
81 };
82 
83 struct OH_LowPowerVideoSink : public OHOS::RefBase {
84     OH_LowPowerVideoSink() = default;
85     virtual ~OH_LowPowerVideoSink() = default;
86 };
87 
88 struct OH_AVSamplesBuffer : public OHOS::RefBase {
89     OH_AVSamplesBuffer() = default;
90     virtual ~OH_AVSamplesBuffer() = default;
91 };
92 
93 #endif // NATIVE_SCREEN_CAPTURE_MAGIC_H