2 using System.Runtime.InteropServices;
4 namespace Tizen.Multimedia
6 internal static partial class Interop
8 internal static partial class RecorderFeatures
10 [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
11 internal delegate bool VideoResolutionCallback(int width, int height, IntPtr userData);
13 [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
14 internal delegate bool FileFormatCallback(RecorderFileFormat format, IntPtr userData);
16 [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
17 internal delegate bool AudioEncoderCallback(RecorderAudioCodec codec, IntPtr userData);
19 [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
20 internal delegate bool VideoEncoderCallback(RecorderVideoCodec codec, IntPtr userData);
22 [DllImport(Libraries.Recorder, EntryPoint = "recorder_foreach_supported_file_format")]
23 internal static extern RecorderError FileFormats(IntPtr handle, FileFormatCallback callback, IntPtr userData);
25 [DllImport(Libraries.Recorder, EntryPoint = "recorder_foreach_supported_audio_encoder")]
26 internal static extern RecorderError AudioEncoders(IntPtr handle, AudioEncoderCallback callback, IntPtr userData);
28 [DllImport(Libraries.Recorder, EntryPoint = "recorder_foreach_supported_video_encoder")]
29 internal static extern RecorderError VideoEncoders(IntPtr handle, VideoEncoderCallback callback, IntPtr userData);
31 [DllImport(Libraries.Recorder, EntryPoint = "recorder_foreach_supported_video_resolution")]
32 internal static extern RecorderError VideoResolution(IntPtr handle, VideoResolutionCallback callback, IntPtr userData);