2 using System.Runtime.InteropServices;
3 using Tizen.Multimedia;
5 internal static partial class Interop
7 internal static partial class StreamRecorder
9 [DllImport(Libraries.StreamRecorder, EntryPoint = "streamrecorder_set_filename")]
10 internal static extern StreamRecorderErrorCode SetFileName(StreamRecorderHandle handle, string path);
12 [DllImport(Libraries.StreamRecorder, EntryPoint = "streamrecorder_get_filename")]
13 internal static extern int GetFileName(StreamRecorderHandle handle, out IntPtr path);
15 [DllImport(Libraries.StreamRecorder, EntryPoint = "streamrecorder_set_file_format")]
16 internal static extern StreamRecorderErrorCode SetFileFormat(StreamRecorderHandle handle,
17 StreamRecorderFileFormat format);
19 [DllImport(Libraries.StreamRecorder, EntryPoint = "streamrecorder_get_file_format")]
20 internal static extern int GetFileFormat(StreamRecorderHandle handle, out int format);
22 [DllImport(Libraries.StreamRecorder, EntryPoint = "streamrecorder_set_audio_encoder")]
23 internal static extern StreamRecorderErrorCode SetAudioEncoder(StreamRecorderHandle handle,
24 StreamRecorderAudioCodec codec);
26 [DllImport(Libraries.StreamRecorder, EntryPoint = "streamrecorder_get_audio_encoder")]
27 internal static extern int GetAudioEncoder(StreamRecorderHandle handle, out int codec);
29 [DllImport(Libraries.StreamRecorder, EntryPoint = "streamrecorder_set_video_encoder")]
30 internal static extern StreamRecorderErrorCode SetVideoEncoder(StreamRecorderHandle handle,
31 StreamRecorderVideoCodec codec);
33 [DllImport(Libraries.StreamRecorder, EntryPoint = "streamrecorder_get_video_encoder")]
34 internal static extern int GetVideoEncoder(StreamRecorderHandle handle, out int codec);
36 [DllImport(Libraries.StreamRecorder, EntryPoint = "streamrecorder_set_video_resolution")]
37 internal static extern StreamRecorderErrorCode SetVideoResolution(StreamRecorderHandle handle,
38 int width, int height);
40 [DllImport(Libraries.StreamRecorder, EntryPoint = "streamrecorder_get_video_resolution")]
41 internal static extern StreamRecorderErrorCode GetVideoResolution(StreamRecorderHandle handle,
42 out int width, out int height);
44 [DllImport(Libraries.StreamRecorder, EntryPoint = "streamrecorder_set_video_framerate")]
45 internal static extern StreamRecorderErrorCode SetVideoFrameRate(StreamRecorderHandle handle, int framerate);
47 [DllImport(Libraries.StreamRecorder, EntryPoint = "streamrecorder_get_video_framerate")]
48 internal static extern int GetVideoFramerate(StreamRecorderHandle handle, out int framerate);
50 [DllImport(Libraries.StreamRecorder, EntryPoint = "streamrecorder_set_video_source_format")]
51 internal static extern StreamRecorderErrorCode SetVideoSourceFormat(StreamRecorderHandle handle,
52 StreamRecorderVideoFormat format);
54 [DllImport(Libraries.StreamRecorder, EntryPoint = "streamrecorder_get_video_source_format")]
55 internal static extern int GetVideoSourceFormat(StreamRecorderHandle handle, out int format);
57 [DllImport(Libraries.StreamRecorder, EntryPoint = "streamrecorder_set_recording_limit")]
58 internal static extern StreamRecorderErrorCode SetRecordingLimit(StreamRecorderHandle handle,
59 RecordingLimitType type, int limit);
61 [DllImport(Libraries.StreamRecorder, EntryPoint = "streamrecorder_get_recording_limit")]
62 internal static extern int GetRecordingLimit(StreamRecorderHandle handle, int type, out int format);
64 [DllImport(Libraries.StreamRecorder, EntryPoint = "streamrecorder_set_audio_samplerate")]
65 internal static extern StreamRecorderErrorCode SetAudioSampleRate(StreamRecorderHandle handle, int samplerate);
67 [DllImport(Libraries.StreamRecorder, EntryPoint = "streamrecorder_get_audio_samplerate")]
68 internal static extern int GetAudioSampleRate(StreamRecorderHandle handle, out int samplerate);
70 [DllImport(Libraries.StreamRecorder, EntryPoint = "streamrecorder_set_audio_encoder_bitrate")]
71 internal static extern StreamRecorderErrorCode SetAudioEncoderBitrate(StreamRecorderHandle handle, int bitrate);
73 [DllImport(Libraries.StreamRecorder, EntryPoint = "streamrecorder_get_audio_encoder_bitrate")]
74 internal static extern int GetAudioEncoderBitrate(StreamRecorderHandle handle, out int bitrate);
76 [DllImport(Libraries.StreamRecorder, EntryPoint = "streamrecorder_set_video_encoder_bitrate")]
77 internal static extern StreamRecorderErrorCode SetVideoEncoderBitRate(StreamRecorderHandle handle, int bitrate);
79 [DllImport(Libraries.StreamRecorder, EntryPoint = "streamrecorder_get_video_encoder_bitrate")]
80 internal static extern int GetVideoEncoderBitrate(StreamRecorderHandle handle, out int bitrate);
82 [DllImport(Libraries.StreamRecorder, EntryPoint = "streamrecorder_set_audio_channel")]
83 internal static extern StreamRecorderErrorCode SetAudioChannel(StreamRecorderHandle handle, int channel);
85 [DllImport(Libraries.StreamRecorder, EntryPoint = "streamrecorder_get_audio_channel")]
86 internal static extern int GetAudioChannel(StreamRecorderHandle handle, out int channel);