Release 4.0.0-preview1-00183
[platform/core/csapi/tizenfx.git] / src / Tizen.Multimedia.StreamRecorder / Interop / Interop.StreamRecorder.Settings.cs
1 using System;
2 using System.Runtime.InteropServices;
3 using Tizen.Multimedia;
4
5 internal static partial class Interop
6 {
7     internal static partial class StreamRecorder
8     {
9         [DllImport(Libraries.StreamRecorder, EntryPoint = "streamrecorder_set_filename")]
10         internal static extern StreamRecorderErrorCode SetFileName(StreamRecorderHandle handle, string path);
11
12         [DllImport(Libraries.StreamRecorder, EntryPoint = "streamrecorder_get_filename")]
13         internal static extern int GetFileName(StreamRecorderHandle handle, out IntPtr path);
14
15         [DllImport(Libraries.StreamRecorder, EntryPoint = "streamrecorder_set_file_format")]
16         internal static extern StreamRecorderErrorCode SetFileFormat(StreamRecorderHandle handle,
17             StreamRecorderFileFormat format);
18
19         [DllImport(Libraries.StreamRecorder, EntryPoint = "streamrecorder_get_file_format")]
20         internal static extern int GetFileFormat(StreamRecorderHandle handle, out int format);
21
22         [DllImport(Libraries.StreamRecorder, EntryPoint = "streamrecorder_set_audio_encoder")]
23         internal static extern StreamRecorderErrorCode SetAudioEncoder(StreamRecorderHandle handle,
24             StreamRecorderAudioCodec codec);
25
26         [DllImport(Libraries.StreamRecorder, EntryPoint = "streamrecorder_get_audio_encoder")]
27         internal static extern int GetAudioEncoder(StreamRecorderHandle handle, out int codec);
28
29         [DllImport(Libraries.StreamRecorder, EntryPoint = "streamrecorder_set_video_encoder")]
30         internal static extern StreamRecorderErrorCode SetVideoEncoder(StreamRecorderHandle handle,
31             StreamRecorderVideoCodec codec);
32
33         [DllImport(Libraries.StreamRecorder, EntryPoint = "streamrecorder_get_video_encoder")]
34         internal static extern int GetVideoEncoder(StreamRecorderHandle handle, out int codec);
35
36         [DllImport(Libraries.StreamRecorder, EntryPoint = "streamrecorder_set_video_resolution")]
37         internal static extern StreamRecorderErrorCode SetVideoResolution(StreamRecorderHandle handle,
38             int width, int height);
39
40         [DllImport(Libraries.StreamRecorder, EntryPoint = "streamrecorder_get_video_resolution")]
41         internal static extern StreamRecorderErrorCode GetVideoResolution(StreamRecorderHandle handle,
42             out int width, out int height);
43
44         [DllImport(Libraries.StreamRecorder, EntryPoint = "streamrecorder_set_video_framerate")]
45         internal static extern StreamRecorderErrorCode SetVideoFrameRate(StreamRecorderHandle handle, int framerate);
46
47         [DllImport(Libraries.StreamRecorder, EntryPoint = "streamrecorder_get_video_framerate")]
48         internal static extern int GetVideoFramerate(StreamRecorderHandle handle, out int framerate);
49
50         [DllImport(Libraries.StreamRecorder, EntryPoint = "streamrecorder_set_video_source_format")]
51         internal static extern StreamRecorderErrorCode SetVideoSourceFormat(StreamRecorderHandle handle,
52             StreamRecorderVideoFormat format);
53
54         [DllImport(Libraries.StreamRecorder, EntryPoint = "streamrecorder_get_video_source_format")]
55         internal static extern int GetVideoSourceFormat(StreamRecorderHandle handle, out int format);
56
57         [DllImport(Libraries.StreamRecorder, EntryPoint = "streamrecorder_set_recording_limit")]
58         internal static extern StreamRecorderErrorCode SetRecordingLimit(StreamRecorderHandle handle,
59             RecordingLimitType type, int limit);
60
61         [DllImport(Libraries.StreamRecorder, EntryPoint = "streamrecorder_get_recording_limit")]
62         internal static extern int GetRecordingLimit(StreamRecorderHandle handle, int type, out int format);
63
64         [DllImport(Libraries.StreamRecorder, EntryPoint = "streamrecorder_set_audio_samplerate")]
65         internal static extern StreamRecorderErrorCode SetAudioSampleRate(StreamRecorderHandle handle, int samplerate);
66
67         [DllImport(Libraries.StreamRecorder, EntryPoint = "streamrecorder_get_audio_samplerate")]
68         internal static extern int GetAudioSampleRate(StreamRecorderHandle handle, out int samplerate);
69
70         [DllImport(Libraries.StreamRecorder, EntryPoint = "streamrecorder_set_audio_encoder_bitrate")]
71         internal static extern StreamRecorderErrorCode SetAudioEncoderBitrate(StreamRecorderHandle handle, int bitrate);
72
73         [DllImport(Libraries.StreamRecorder, EntryPoint = "streamrecorder_get_audio_encoder_bitrate")]
74         internal static extern int GetAudioEncoderBitrate(StreamRecorderHandle handle, out int bitrate);
75
76         [DllImport(Libraries.StreamRecorder, EntryPoint = "streamrecorder_set_video_encoder_bitrate")]
77         internal static extern StreamRecorderErrorCode SetVideoEncoderBitRate(StreamRecorderHandle handle, int bitrate);
78
79         [DllImport(Libraries.StreamRecorder, EntryPoint = "streamrecorder_get_video_encoder_bitrate")]
80         internal static extern int GetVideoEncoderBitrate(StreamRecorderHandle handle, out int bitrate);
81
82         [DllImport(Libraries.StreamRecorder, EntryPoint = "streamrecorder_set_audio_channel")]
83         internal static extern StreamRecorderErrorCode SetAudioChannel(StreamRecorderHandle handle, int channel);
84
85         [DllImport(Libraries.StreamRecorder, EntryPoint = "streamrecorder_get_audio_channel")]
86         internal static extern int GetAudioChannel(StreamRecorderHandle handle, out int channel);
87     }
88 }