[Camera] Fixed possible memory leak and Add some descriptions
[platform/core/csapi/tizenfx.git] / src / Tizen.Multimedia / Interop / Interop.RecorderFeatures.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 RecorderFeatures
9         {
10             [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
11             internal delegate bool VideoResolutionCallback(int width, int height, IntPtr userData);
12
13             [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
14             internal delegate bool FileFormatCallback(RecorderFileFormat format, IntPtr userData);
15
16             [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
17             internal delegate bool AudioEncoderCallback(RecorderAudioCodec codec, IntPtr userData);
18
19             [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
20             internal delegate bool VideoEncoderCallback(RecorderVideoCodec codec, IntPtr userData);
21
22             [DllImport(Libraries.Recorder, EntryPoint = "recorder_foreach_supported_file_format")]
23             internal static extern RecorderError FileFormats(IntPtr handle, FileFormatCallback callback, IntPtr userData);
24
25             [DllImport(Libraries.Recorder, EntryPoint = "recorder_foreach_supported_audio_encoder")]
26             internal static extern RecorderError AudioEncoders(IntPtr handle, AudioEncoderCallback callback, IntPtr userData);
27
28             [DllImport(Libraries.Recorder, EntryPoint = "recorder_foreach_supported_video_encoder")]
29             internal static extern RecorderError VideoEncoders(IntPtr handle, VideoEncoderCallback callback, IntPtr userData);
30
31             [DllImport(Libraries.Recorder, EntryPoint = "recorder_foreach_supported_video_resolution")]
32             internal static extern RecorderError VideoResolution(IntPtr handle, VideoResolutionCallback callback, IntPtr userData);
33         }
34     }
35 }