[Camera] Fixed possible memory leak and Add some descriptions
[platform/core/csapi/tizenfx.git] / src / Tizen.Multimedia / Interop / Interop.RecorderSettings.cs
1 using System;
2 using System.Runtime.InteropServices;
3
4 namespace Tizen.Multimedia
5 {
6     internal static partial class Interop
7     {
8         internal static partial class RecorderSettings
9         {
10             [DllImport(Libraries.Recorder, EntryPoint = "recorder_attr_get_audio_channel")]
11             internal static extern RecorderError GetAudioChannel(IntPtr handle, out int channelCount);
12
13             [DllImport(Libraries.Recorder, EntryPoint = "recorder_attr_set_audio_channel")]
14             internal static extern RecorderError SetAudioChannel(IntPtr handle, int channelCount);
15
16             [DllImport(Libraries.Recorder, EntryPoint = "recorder_attr_get_audio_device")]
17             internal static extern RecorderError GetAudioDevice(IntPtr handle, out RecorderAudioDevice device);
18
19             [DllImport(Libraries.Recorder, EntryPoint = "recorder_attr_set_audio_device")]
20             internal static extern RecorderError SetAudioDevice(IntPtr handle, RecorderAudioDevice device);
21
22             [DllImport(Libraries.Recorder, EntryPoint = "recorder_get_audio_level")]
23             internal static extern RecorderError GetAudioLevel(IntPtr handle, out double dB);
24
25             [DllImport(Libraries.Recorder, EntryPoint = "recorder_attr_get_audio_samplerate")]
26             internal static extern RecorderError GetAudioSampleRate(IntPtr handle, out int sampleRate);
27
28             [DllImport(Libraries.Recorder, EntryPoint = "recorder_attr_set_audio_samplerate")]
29             internal static extern RecorderError SetAudioSampleRate(IntPtr handle, int sampleRate);
30
31             [DllImport(Libraries.Recorder, EntryPoint = "recorder_attr_get_audio_encoder_bitrate")]
32             internal static extern RecorderError GetAudioEncoderBitrate(IntPtr handle, out int bitRate);
33
34             [DllImport(Libraries.Recorder, EntryPoint = "recorder_attr_set_audio_encoder_bitrate")]
35             internal static extern RecorderError SetAudioEncoderBitrate(IntPtr handle, int bitRate);
36
37             [DllImport(Libraries.Recorder, EntryPoint = "recorder_attr_get_video_encoder_bitrate")]
38             internal static extern RecorderError GetVideoEncoderBitrate(IntPtr handle, out int bitRate);
39
40             [DllImport(Libraries.Recorder, EntryPoint = "recorder_attr_set_video_encoder_bitrate")]
41             internal static extern RecorderError SetVideoEncoderBitrate(IntPtr handle, int bitRate);
42
43             [DllImport(Libraries.Recorder, EntryPoint = "recorder_get_audio_encoder")]
44             internal static extern RecorderError GetAudioEncoder(IntPtr handle, out RecorderAudioCodec codec);
45
46             [DllImport(Libraries.Recorder, EntryPoint = "recorder_set_audio_encoder")]
47             internal static extern RecorderError SetAudioEncoder(IntPtr handle, RecorderAudioCodec codec);
48
49             [DllImport(Libraries.Recorder, EntryPoint = "recorder_get_video_encoder")]
50             internal static extern RecorderError GetVideoEncoder(IntPtr handle, out RecorderVideoCodec codec);
51
52             [DllImport(Libraries.Recorder, EntryPoint = "recorder_set_video_encoder")]
53             internal static extern RecorderError SetVideoEncoder(IntPtr handle, RecorderVideoCodec codec);
54
55             [DllImport(Libraries.Recorder, EntryPoint = "recorder_get_file_format")]
56             internal static extern RecorderError GetFileFormat(IntPtr handle, out RecorderFileFormat format);
57
58             [DllImport(Libraries.Recorder, EntryPoint = "recorder_set_file_format")]
59             internal static extern RecorderError SetFileFormat(IntPtr handle, RecorderFileFormat format);
60
61             [DllImport(Libraries.Recorder, EntryPoint = "recorder_get_filename")]
62             internal static extern RecorderError GetFileName(IntPtr handle, out IntPtr path);
63
64             [DllImport(Libraries.Recorder, EntryPoint = "recorder_set_filename")]
65             internal static extern RecorderError SetFileName(IntPtr handle, string path);
66
67             [DllImport(Libraries.Recorder, EntryPoint = "recorder_attr_get_size_limit")]
68             internal static extern RecorderError GetSizeLimit(IntPtr handle, out int kbyte);
69
70             [DllImport(Libraries.Recorder, EntryPoint = "recorder_attr_set_size_limit")]
71             internal static extern RecorderError SetSizeLimit(IntPtr handle, int kbyte);
72
73             [DllImport(Libraries.Recorder, EntryPoint = "recorder_attr_get_time_limit")]
74             internal static extern RecorderError GetTimeLimit(IntPtr handle, out int second);
75
76             [DllImport(Libraries.Recorder, EntryPoint = "recorder_attr_set_time_limit")]
77             internal static extern RecorderError SetTimeLimit(IntPtr handle, int second);
78
79             [DllImport(Libraries.Recorder, EntryPoint = "recorder_attr_is_muted")]
80             [return: MarshalAs(UnmanagedType.I1)]
81             internal static extern bool GetMute(IntPtr handle);
82
83             [DllImport(Libraries.Recorder, EntryPoint = "recorder_attr_set_mute")]
84             internal static extern RecorderError SetMute(IntPtr handle, bool enable);
85
86             [DllImport(Libraries.Recorder, EntryPoint = "recorder_attr_get_recording_motion_rate")]
87             internal static extern RecorderError GetMotionRate(IntPtr handle, out double motionRate);
88
89             [DllImport(Libraries.Recorder, EntryPoint = "recorder_attr_set_recording_motion_rate")]
90             internal static extern RecorderError SetMotionRate(IntPtr handle, double motionRate);
91
92             [DllImport(Libraries.Recorder, EntryPoint = "recorder_attr_get_orientation_tag")]
93             internal static extern RecorderError GetOrientationTag(IntPtr handle, out RecorderOrientation orientation);
94
95             [DllImport(Libraries.Recorder, EntryPoint = "recorder_attr_set_orientation_tag")]
96             internal static extern RecorderError SetOrientationTag(IntPtr handle, RecorderOrientation orientation);
97
98             [DllImport(Libraries.Recorder, EntryPoint = "recorder_get_video_resolution")]
99             internal static extern RecorderError GetVideoResolution(IntPtr handle, out int width, out int height);
100
101             [DllImport(Libraries.Recorder, EntryPoint = "recorder_set_video_resolution")]
102             internal static extern RecorderError SetVideoResolution(IntPtr handle, int width, int height);
103         }
104     }
105 }