2 * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the License);
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an AS IS BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 using System.Runtime.InteropServices;
19 using Tizen.Content.MediaContent;
21 internal static partial class Interop
23 internal static partial class ImageInfo
25 [DllImport(Libraries.MediaContent, EntryPoint = "image_meta_destroy", CallingConvention = CallingConvention.Cdecl)]
26 internal static extern MediaContentError Destroy(IntPtr media);
28 [DllImport(Libraries.MediaContent, EntryPoint = "image_meta_get_orientation", CallingConvention = CallingConvention.Cdecl)]
29 internal static extern MediaContentError GetOrientation(IntPtr handle, out Orientation orientation);
31 [DllImport(Libraries.MediaContent, EntryPoint = "image_meta_get_date_taken", CallingConvention = CallingConvention.Cdecl)]
32 internal static extern MediaContentError GetDateTaken(IntPtr handle, out IntPtr dateTaken);
34 [DllImport(Libraries.MediaContent, EntryPoint = "image_meta_get_exposure_time", CallingConvention = CallingConvention.Cdecl)]
35 internal static extern MediaContentError GetExposureTime(IntPtr handle, out IntPtr exposureTime);
37 [DllImport(Libraries.MediaContent, EntryPoint = "image_meta_get_fnumber", CallingConvention = CallingConvention.Cdecl)]
38 internal static extern MediaContentError GetFNumber(IntPtr handle, out double fNumber);
40 [DllImport(Libraries.MediaContent, EntryPoint = "image_meta_get_iso", CallingConvention = CallingConvention.Cdecl)]
41 internal static extern MediaContentError GetISO(IntPtr handle, out int iso);
43 [DllImport(Libraries.MediaContent, EntryPoint = "image_meta_get_model", CallingConvention = CallingConvention.Cdecl)]
44 internal static extern MediaContentError GetModel(IntPtr handle, out IntPtr model);
46 [DllImport(Libraries.MediaContent, EntryPoint = "image_meta_get_width", CallingConvention = CallingConvention.Cdecl)]
47 internal static extern MediaContentError GetWidth(IntPtr handle, out int width);
49 [DllImport(Libraries.MediaContent, EntryPoint = "image_meta_get_height", CallingConvention = CallingConvention.Cdecl)]
50 internal static extern MediaContentError GetHeight(IntPtr handle, out int width);