From 75a5a48ee94ced322407f8cfae7dcbedbf01ad16 Mon Sep 17 00:00:00 2001 From: Haesu Gwon Date: Tue, 23 May 2017 17:10:49 +0900 Subject: [PATCH] [TCSACR-37][Camera/Recorder] Modify camera, recorder privilege for some APIs Change-Id: I7d034d9bfb01d211aa669c8ba63723fba7bf3d47 Signed-off-by: Haesu Gwon --- src/Tizen.Multimedia.Camera/Camera/Camera.cs | 15 ----- .../Camera/CameraDisplaySettings.cs | 6 -- .../Camera/CameraSettings.cs | 78 ---------------------- src/Tizen.Multimedia.Recorder/Recorder/Recorder.cs | 27 +++----- 4 files changed, 8 insertions(+), 118 deletions(-) mode change 100644 => 100755 src/Tizen.Multimedia.Camera/Camera/Camera.cs mode change 100644 => 100755 src/Tizen.Multimedia.Camera/Camera/CameraDisplaySettings.cs mode change 100644 => 100755 src/Tizen.Multimedia.Camera/Camera/CameraSettings.cs diff --git a/src/Tizen.Multimedia.Camera/Camera/Camera.cs b/src/Tizen.Multimedia.Camera/Camera/Camera.cs old mode 100644 new mode 100755 index 2fdc447..7b4014b --- a/src/Tizen.Multimedia.Camera/Camera/Camera.cs +++ b/src/Tizen.Multimedia.Camera/Camera/Camera.cs @@ -38,9 +38,6 @@ namespace Tizen.Multimedia /// and functions for picture manipulations like sepia negative and many more. /// It also notifies you when a significant picture parameter changes e.g. focus. /// - /// - /// http://tizen.org/privilege/camera - /// public class Camera : IDisposable, IDisplayable { private IntPtr _handle = IntPtr.Zero; @@ -52,9 +49,6 @@ namespace Tizen.Multimedia /// Initializes a new instance of the Class. /// /// The camera device to access - /// - /// http://tizen.org/privilege/camera - /// public Camera(CameraDevice device) { CameraErrorFactory.ThrowIfError(Native.Create((int)device, out _handle), @@ -526,9 +520,6 @@ namespace Tizen.Multimedia /// Changes the camera device. /// /// The hardware camera to access. - /// - /// http://tizen.org/privilege/camera - /// /// /// If display reuse is set using /// before stopping the preview, the display will be reused and last frame on the display @@ -550,9 +541,6 @@ namespace Tizen.Multimedia /// /// Gets the device state. /// - /// - /// http://tizen.org/privilege/camera - /// /// The device to get state. /// Returns the state of camera device /// In case of invalid parameters. @@ -571,9 +559,6 @@ namespace Tizen.Multimedia /// /// Gets the flash state. /// - /// - /// http://tizen.org/privilege/camera - /// /// The device to get state. /// Returns the flash state of camera device /// In case of invalid parameters. diff --git a/src/Tizen.Multimedia.Camera/Camera/CameraDisplaySettings.cs b/src/Tizen.Multimedia.Camera/Camera/CameraDisplaySettings.cs old mode 100644 new mode 100755 index c7622e9..2d89713 --- a/src/Tizen.Multimedia.Camera/Camera/CameraDisplaySettings.cs +++ b/src/Tizen.Multimedia.Camera/Camera/CameraDisplaySettings.cs @@ -84,9 +84,6 @@ namespace Tizen.Multimedia /// The display rotation. /// /// A that specifies the rotation of camera device. - /// - /// http://tizen.org/privilege/camera. - /// /// The camera already has been disposed. public CameraRotation Rotation { @@ -111,9 +108,6 @@ namespace Tizen.Multimedia /// The display flip. /// /// A that specifies camera flip type. - /// - /// http://tizen.org/privilege/camera. - /// /// The camera already has been disposed. public CameraFlip Flip { diff --git a/src/Tizen.Multimedia.Camera/Camera/CameraSettings.cs b/src/Tizen.Multimedia.Camera/Camera/CameraSettings.cs old mode 100644 new mode 100755 index 3286db4..4c125c1 --- a/src/Tizen.Multimedia.Camera/Camera/CameraSettings.cs +++ b/src/Tizen.Multimedia.Camera/Camera/CameraSettings.cs @@ -72,9 +72,6 @@ namespace Tizen.Multimedia /// /// should not be the . /// - /// - /// http://tizen.org/privilege/camera - /// /// X position /// Y position /// In case of invalid parameters. @@ -92,9 +89,6 @@ namespace Tizen.Multimedia /// /// should not be the . /// - /// - /// http://tizen.org/privilege/camera - /// /// structure including X, Y position /// In case of invalid parameters. /// In case of any invalid operations. @@ -108,9 +102,6 @@ namespace Tizen.Multimedia /// /// Clears the auto focus area. /// - /// - /// http://tizen.org/privilege/camera - /// /// The camera already has been disposed. public void ClearFocusArea() { @@ -122,9 +113,6 @@ namespace Tizen.Multimedia /// The auto focus mode. /// /// A that specifies the auto focus mode. - /// - /// http://tizen.org/privilege/camera - /// /// The camera already has been disposed. public CameraAutoFocusMode AutoFocusMode { @@ -150,9 +138,6 @@ namespace Tizen.Multimedia /// /// The contrast level of the camera. /// - /// - /// http://tizen.org/privilege/camera - /// /// The camera already has been disposed. public int Contrast { @@ -177,9 +162,6 @@ namespace Tizen.Multimedia /// The auto contrast. /// If true auto contrast is enabled, otherwise false. /// - /// - /// http://tizen.org/privilege/camera - /// /// The camera already has been disposed. public bool AutoContrast { @@ -224,9 +206,6 @@ namespace Tizen.Multimedia /// /// The brightness level of the camera. /// - /// - /// http://tizen.org/privilege/camera - /// /// The camera already has been disposed. public int Brightness { @@ -272,9 +251,6 @@ namespace Tizen.Multimedia /// /// The exposure value. /// - /// - /// http://tizen.org/privilege/camera - /// /// The camera already has been disposed. public int Exposure { @@ -299,9 +275,6 @@ namespace Tizen.Multimedia /// The exposure mode. /// /// A that specifies the exposure mode. - /// - /// http://tizen.org/privilege/camera - /// /// The camera already has been disposed. public CameraExposureMode ExposureMode { @@ -348,9 +321,6 @@ namespace Tizen.Multimedia /// The zoom level. /// The range for zoom level is received from ZoomRange property. /// - /// - /// http://tizen.org/privilege/camera. - /// /// The camera already has been disposed. public int ZoomLevel { @@ -396,9 +366,6 @@ namespace Tizen.Multimedia /// The whitebalance mode. /// /// A that specifies the white balance mode. - /// - /// http://tizen.org/privilege/camera - /// /// The camera already has been disposed. public CameraWhiteBalance WhiteBalance { @@ -423,9 +390,6 @@ namespace Tizen.Multimedia /// The ISO level. /// /// A that specifies ISO level. - /// - /// http://tizen.org/privilege/camera - /// /// The camera already has been disposed. public CameraIsoLevel IsoLevel { @@ -450,9 +414,6 @@ namespace Tizen.Multimedia /// The quality of the image. /// The range for image quality is 1 to 100. /// - /// - /// http://tizen.org/privilege/camera. - /// /// The camera already has been disposed. public int ImageQuality { @@ -501,9 +462,6 @@ namespace Tizen.Multimedia /// /// Gets or sets the resolution of preview /// - /// - /// http://tizen.org/privilege/camera - /// /// In case of invalid parameters. /// The camera already has been disposed. public Size PreviewResolution @@ -576,9 +534,6 @@ namespace Tizen.Multimedia /// /// Resolution of the captured image. /// - /// - /// http://tizen.org/privilege/camera - /// /// In case of invalid parameters /// The camera already has been disposed. public Size CaptureResolution @@ -681,9 +636,6 @@ namespace Tizen.Multimedia /// The theater mode. /// /// A that specifies theater mode. - /// - /// http://tizen.org/privilege/camera - /// /// /// If you want to display the preview image on the external display with the full screen mode, /// use this property. @@ -712,9 +664,6 @@ namespace Tizen.Multimedia /// The camera effect mode. /// /// A that specifies effect mode. - /// - /// http://tizen.org/privilege/camera - /// /// The camera already has been disposed. public CameraEffectMode Effect { @@ -739,9 +688,6 @@ namespace Tizen.Multimedia /// The scene mode. /// /// A that specifies scene mode. - /// - /// http://tizen.org/privilege/camera - /// /// The camera already has been disposed. public CameraSceneMode SceneMode { @@ -766,9 +712,6 @@ namespace Tizen.Multimedia /// The camera's flash mode. /// /// A that specifies flash mode. - /// - /// http://tizen.org/privilege/camera - /// /// The camera already has been disposed. public CameraFlashMode FlashMode { @@ -858,9 +801,6 @@ namespace Tizen.Multimedia /// The mode of HDR(High dynamic range) capture. /// /// A that specifies the HDR mode. - /// - /// http://tizen.org/privilege/camera - /// /// /// Taking multiple pictures at different exposure levels and intelligently stitching them together /// so that we eventually arrive at a picture that is representative in both dark and bright areas. @@ -914,9 +854,6 @@ namespace Tizen.Multimedia /// Enables/Disables the video stabilization feature. /// If true video stabilization is enabled, otherwise false. /// - /// - /// http://tizen.org/privilege/camera - /// /// /// If video stabilization is enabled, zero shutter lag is disabled. /// This feature is used to record a video. @@ -976,9 +913,6 @@ namespace Tizen.Multimedia /// /// Sets the position to move horizontally. /// - /// - /// http://tizen.org/privilege/camera - /// /// ptz move type. /// pan step /// In case of invalid parameters @@ -992,9 +926,6 @@ namespace Tizen.Multimedia /// /// Gets the current position of the camera. /// - /// - /// http://tizen.org/privilege/camera - /// /// Returns the camera's horizontal position /// The camera already has been disposed. public int GetPan() @@ -1010,9 +941,6 @@ namespace Tizen.Multimedia /// /// Sets the position to move vertically. /// - /// - /// http://tizen.org/privilege/camera - /// /// ptz move type /// tilt step /// In case of invalid parameters @@ -1026,9 +954,6 @@ namespace Tizen.Multimedia /// /// Gets the current position of the camera. /// - /// - /// http://tizen.org/privilege/camera - /// /// Returns the current vertical position /// The camera already has been disposed. public int GetTilt() @@ -1192,9 +1117,6 @@ namespace Tizen.Multimedia /// /// Removes the geotag(GPS data) in the EXIF(Exchangeable image file format) tag. /// - /// - /// http://tizen.org/privilege/camera - /// /// The camera already has been disposed. public void RemoveGeoTag() { diff --git a/src/Tizen.Multimedia.Recorder/Recorder/Recorder.cs b/src/Tizen.Multimedia.Recorder/Recorder/Recorder.cs index 10877c6..6fcd1bc 100755 --- a/src/Tizen.Multimedia.Recorder/Recorder/Recorder.cs +++ b/src/Tizen.Multimedia.Recorder/Recorder/Recorder.cs @@ -31,9 +31,6 @@ namespace Tizen.Multimedia /// to start, stop and save the recorded content. It also provides methods /// to get/set various attributes and capabilities of recorder. /// - /// - /// http://tizen.org/privilege/recorder - /// public class Recorder : IDisposable { private IntPtr _handle = IntPtr.Zero; @@ -43,9 +40,6 @@ namespace Tizen.Multimedia /// /// Audio recorder constructor. /// - /// /// - /// http://tizen.org/privilege/microphone - /// public Recorder() { RecorderErrorFactory.ThrowIfError(Native.Create(out _handle), @@ -65,9 +59,6 @@ namespace Tizen.Multimedia /// /// The camera object. /// - /// - /// http://tizen.org/privilege/camera - /// public Recorder(Camera camera) { RecorderErrorFactory.ThrowIfError(Native.CreateVideo(camera.Handle, out _handle), @@ -239,9 +230,6 @@ namespace Tizen.Multimedia /// Before calling the function, it is required to set AudioEncoder, /// videoencoder and fileformat properties of recorder. /// - /// - /// http://tizen.org/privilege/camera or http://tizen.org/privilege/microphone - /// /// In case of any invalid operations. /// The camera already has been disposed. public void Prepare() @@ -260,9 +248,6 @@ namespace Tizen.Multimedia /// After this method is finished without any exception, /// The state of recorder will be changed to state. /// - /// - /// http://tizen.org/privilege/camera or http://tizen.org/privilege/microphone - /// /// In case of any invalid operations. /// The camera already has been disposed. public void Unprepare() @@ -288,10 +273,11 @@ namespace Tizen.Multimedia /// The filename should be set before this function is invoked. /// /// - /// http://tizen.org/privilege/camera or http://tizen.org/privilege/microphone + /// http://tizen.org/privilege/recorder /// /// In case of any invalid operations. /// The camera already has been disposed. + /// In case of access to the resources cannot be granted. public void Start() { ValidateState(RecorderState.Ready, RecorderState.Paused); @@ -312,10 +298,11 @@ namespace Tizen.Multimedia /// Recording can be resumed with Start(). /// /// - /// http://tizen.org/privilege/camera or http://tizen.org/privilege/microphone + /// http://tizen.org/privilege/recorder /// /// In case of any invalid operations. /// The camera already has been disposed. + /// In case of access to the resources cannot be granted. public void Pause() { ValidateState(RecorderState.Recording); @@ -333,10 +320,11 @@ namespace Tizen.Multimedia /// The state of recorder will be changed to state. /// /// - /// http://tizen.org/privilege/camera or http://tizen.org/privilege/microphone + /// http://tizen.org/privilege/recorder /// /// In case of any invalid operations. /// The camera already has been disposed. + /// In case of access to the resources cannot be granted. public void Commit() { ValidateState(RecorderState.Recording, RecorderState.Paused); @@ -355,10 +343,11 @@ namespace Tizen.Multimedia /// The state of recorder will be changed to state. /// /// - /// http://tizen.org/privilege/camera or http://tizen.org/privilege/microphone + /// http://tizen.org/privilege/recorder /// /// In case of any invalid operations. /// The camera already has been disposed. + /// In case of access to the resources cannot be granted. public void Cancel() { ValidateState(RecorderState.Recording, RecorderState.Paused); -- 2.7.4