/*
* Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
*
* Licensed under the Apache License, Version 2.0 (the License);
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an AS IS BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
using System;
namespace Tizen.Multimedia
{
///
/// Enumeration for the camera device.
///
/// 3
public enum CameraDevice
{
///
/// The rear camera device.
///
Rear,
///
/// The front camera device.
///
Front,
///
/// The primary camera device.
///
/// 5
CameraDevice0 = Rear,
///
/// The secondary camera device.
///
/// 5
CameraDevice1 = Front,
///
/// The third camera device.
///
/// 5
CameraDevice2,
///
/// The fourth camera device.
///
/// 5
CameraDevice3,
///
/// The fifth camera device.
///
/// 5
CameraDevice4,
///
/// The sixth camera device.
///
/// 5
CameraDevice5,
///
/// The seventh camera device.
///
/// 5
CameraDevice6,
///
/// The eighth camera device.
///
/// 5
CameraDevice7,
///
/// The ninth camera device.
///
/// 5
CameraDevice8,
///
/// The tenth camera device.
///
/// 5
CameraDevice9
}
///
/// Enumeration for the camera device state.
///
/// 3
public enum CameraDeviceState
{
///
/// Not opened.
///
NotOpened,
///
/// Opened.
///
Opened,
///
/// Now previewing or capturing or is being used for the video recording.
///
Working
}
///
/// Enumeration for the facing direction of camera module.
///
/// 3
public enum CameraFacingDirection
{
///
/// Rear direction.
///
Rear,
///
/// Front direction.
///
Front
}
///
/// Enumeration for the current flash state.
///
/// 3
public enum CameraFlashState
{
///
/// Flash is not used now through the camera API.
///
NotUsed,
///
/// Flash is used now through the camera API.
///
Used
}
///
/// Enumeration for the camera focus state.
///
/// 3
public enum CameraFocusState
{
///
/// Focus released.
///
Released,
///
/// Focus in progress.
///
Ongoing,
///
/// Focus succeeded.
///
Focused,
///
/// Focus failed.
///
Failed
}
///
/// Enumeration for the camera pixel format.
///
/// 3
public enum CameraPixelFormat
{
///
/// Invalid pixel format.
///
Invalid = -1,
///
/// NV12 pixel format.
///
Nv12,
///
/// NV12 tiled pixel format.
///
Nv12t,
///
/// NV16 pixel format.
///
Nv16,
///
/// NV21 pixel format.
///
Nv21,
///
/// YUYV(YUY2) pixel format.
///
Yuyv,
///
/// UYVY pixel format.
///
Uyvy,
///
/// YUV422(Y:U:V) planar pixel format.
///
Yuv422Planar,
///
/// I420 pixel format.
///
I420,
///
/// YV12 pixel format.
///
Yv12,
///
/// RGB565 pixel format.
///
Rgb565,
///
/// RGB565 pixel format.
///
Rgb888,
///
/// RGBA pixel format.
///
Rgba,
///
/// ARGB pixel format.
///
Argb,
///
/// Encoded pixel format.
///
Jpeg,
///
/// Encoded pixel format : H264.
///
H264 = 15,
///
/// Depth pixel format.
///
/// 5
Invz
}
///
/// Enumeration for the camera policy.
///
/// 3
public enum CameraPolicy
{
///
/// None.
///
None,
///
/// Security policy.
///
Security = 4,
///
/// Resource conflict.
///
ResourceConflict
}
///
/// Enumeration for the camera state.
///
/// 3
public enum CameraState
{
///
/// Before creating.
///
None,
///
/// Created, but not initialized yet.
///
Created,
///
/// Preview.
///
Preview,
///
/// While capturing.
///
Capturing,
///
/// After capturing.
///
Captured
}
///
/// Enumeration for the auto-focus mode.
///
/// 3
public enum CameraAutoFocusMode
{
///
/// Auto-focus is not set.
///
None,
///
/// Auto-focus is in the normal mode.
///
Normal,
///
/// Auto-focus is in the macro mode (close distance).
///
Macro,
///
/// Auto-focus is in the full mode (all range scan, limited by device spec).
///
Full
}
///
/// Enumeration for the color tone, which provides the impression of looking through a tinted glass.
///
/// 3
public enum CameraEffectMode
{
///
/// None.
///
None,
///
/// Mono.
///
Mono,
///
/// Sepia.
///
Sepia,
///
/// Negative.
///
Negative,
///
/// Blue.
///
Blue,
///
/// Green.
///
Green,
///
/// Aqua.
///
Aqua,
///
/// Violet.
///
Violet,
///
/// Orange.
///
Orange,
///
/// Gray.
///
Gray,
///
/// Red.
///
Red,
///
/// Antique.
///
Antique,
///
/// Warm.
///
Warm,
///
/// Pink.
///
Pink,
///
/// Yellow.
///
Yellow,
///
/// Purple.
///
Purple,
///
/// Emboss.
///
Emboss,
///
/// Outline.
///
Outline,
///
/// Solarization.
///
Solarization,
///
/// Sketch.
///
Sketch,
///
/// Washed.
///
Washed,
///
/// Vintage warm.
///
VintageWarm,
///
/// Vintage cold.
///
VintageCold,
///
/// Posterization.
///
Posterization,
///
/// Cartoon.
///
Cartoon,
///
/// Selective color - red.
///
SelectiveRed,
///
/// Selective color - green.
///
SelectiveGreen,
///
/// Selective color - blue.
///
SelectiveBlue,
///
/// Selective color - yellow.
///
SelectiveYellow,
///
/// Selective color - red and yellow.
///
SelectiveRedYellow,
///
/// Other graphic effects.
///
OtherGraphics
}
///
/// Enumeration for the camera exposure modes.
///
/// 3
public enum CameraExposureMode
{
///
/// Off.
///
Off,
///
/// All mode.
///
All,
///
/// Center mode.
///
Center,
///
/// Spot mode.
///
Spot,
///
/// Custom mode.
///
Custom
}
///
/// Enumeration for the flash mode.
///
/// 3
public enum CameraFlashMode
{
///
/// Always off.
///
Off,
///
/// Always splashes.
///
On,
///
/// Depending on intensity of light, strobe starts to flash.
///
Auto,
///
/// Red eye reduction. Multiple flash before capturing.
///
RedEyeReduction,
///
/// Slow sync curtain synchronization.
///
SlowSync,
///
/// Front curtain synchronization.
///
FrontCurtain,
///
/// Rear curtain synchronization.
///
RearCurtain,
///
/// Keep turned on until turning off.
///
Permanent
}
///
/// Enumeration for the preview fps.
///
/// 3
public enum CameraFps
{
///
/// Auto fps.
///
Auto = 0,
///
/// 7 fps.
///
Fps7 = 7,
///
/// 8 fps.
///
Fps8 = 8,
///
/// 15 fps.
///
Fps15 = 15,
///
/// 20 fps.
///
Fps20 = 20,
///
/// 24 fps.
///
Fps24 = 24,
///
/// 25 fps.
///
Fps25 = 25,
///
/// 30 fps.
///
Fps30 = 30,
///
/// 60 fps.
///
Fps60 = 60,
///
/// 90 fps.
///
Fps90 = 90,
///
/// 120 fps.
///
Fps120 = 120
}
///
/// Enumeration for the HDR capture mode.
///
/// 3
public enum CameraHdrMode
{
///
/// Disable the HDR capture.
///
Disable,
///
/// Enable the HDR capture.
///
Enable,
///
/// Enable the HDR capture mode and keep original image data.
///
KeepOriginal
}
///
/// Enumeration for the ISO levels of the camera.
///
/// 3
public enum CameraIsoLevel
{
///
/// ISO auto mode.
///
Auto,
///
/// ISO 50.
///
Iso50,
///
/// ISO 100.
///
Iso100,
///
/// ISO 200.
///
Iso200,
///
/// ISO 400.
///
Iso400,
///
/// ISO 800.
///
Iso800,
///
/// ISO 1600.
///
Iso1600,
///
/// ISO 3200.
///
Iso3200
}
///
/// Enumeration for the PTZ(Pan Tilt Zoom) movement type.
///
/// 3
public enum CameraPtzMoveType
{
///
/// Move to a specific coordinate position.
///
Absoulute,
///
/// Move to a specific distance from the current position.
///
Relative
}
///
/// Enumeration for the PTZ(Pan Tilt Zoom) type.
///
/// 3
public enum CameraPtzType
{
///
/// Move the camera device physically.
///
Mechanical,
///
/// Zoom digitally and move into portion of the image.
///
Electronic
}
///
/// Enumeration for the camera scene mode.
///
/// 3
public enum CameraSceneMode
{
///
/// Normal.
///
Normal,
///
/// Portrait.
///
Portrait,
///
/// Landscape.
///
Landscape,
///
/// Sports.
///
Sports,
///
/// Party and indoor.
///
PartyAndIndoor,
///
/// Beach and indoor.
///
BeachAndIndoor,
///
/// Sunset.
///
Sunset,
///
/// Dusk and dawn.
///
DuskAndDawn,
///
/// Fall.
///
FallColor,
///
/// Night scene.
///
NightScene,
///
/// Firework.
///
FireWork,
///
/// Text.
///
Text,
///
/// Show window.
///
ShowWindow,
///
/// Candle light.
///
CandleLight,
///
/// Backlight.
///
BackLight,
///
/// Aqua.
///
Aqua
}
///
/// Enumeration for the orientation values of tag.
///
/// 3
public enum CameraTagOrientation
{
///
/// Row #0 is at the top, column #0 is to the left.
///
TopLeft = 1,
///
/// Row #0 is at the top, column #0 is to the right.
///
TopRight = 2,
///
/// Row #0 is at the bottom, column #0 is to the right.
///
BottomRight = 3,
///
/// Row #0 is at the bottom, column #0 is to the left.
///
BottomLeft = 4,
///
/// Row #0 is at the left, column #0 is to the top.
///
LeftTop = 5,
///
/// Row #0 is at the right, column #0 is to the top.
///
RightTop = 6,
///
/// Row #0 is at the right, column #0 is to the bottom.
///
RightBottom = 7,
///
/// Row #0 is at the left, column #0 is to the bottom.
///
LeftBottom = 8
}
///
/// Enumeration for the theater mode.
///
/// 3
public enum CameraTheaterMode
{
///
/// Disable the theater mode - the external display shows same image as the device display.
///
Disable,
///
/// Clone the mode - the preview image is displayed on an external display with full screen mode. Also, the preview image is shown by the UI on the device display.
///
Clone,
///
/// Enable the theater mode - the preview image is displayed on an external display with full screen mode, but the preview image is not shown on the device display.
///
Enable
}
///
/// Enumeration for the white balance levels of the camera.
///
/// 3
public enum CameraWhiteBalance
{
///
/// None.
///
None,
///
/// Automatic.
///
Automatic,
///
/// Daylight.
///
Daylight,
///
/// Cloudy.
///
Cloudy,
///
/// Fluorescent.
///
Fluorescent,
///
/// Incandescent.
///
Incandescent,
///
/// Shade.
///
Shade,
///
/// Horizon.
///
Horizon,
///
/// Flash.
///
Flash,
///
/// Custom.
///
Custom
}
///
/// Enumeration for the camera display mode.
///
/// 3
public enum CameraDisplayMode
{
///
/// Letter box.
///
LetterBox,
///
/// Original size.
///
OriginSize,
///
/// Full screen.
///
Full,
///
/// Cropped full screen.
///
CroppedFull,
///
/// Original size or letter box.
///
OriginOrLetterBox,
///
/// Custom ROI.
///
CustomROI
}
///
/// Enumeration for the camera failure error.
///
/// 3
public enum CameraErrorCode
{
///
/// Device Error.
///
DeviceError = CameraError.DeviceError,
///
/// Internal error.
///
InvalidOperation = CameraError.InvalidOperation,
///
/// Out of memory.
///
OutOfMemory = CameraError.OutOfMemory,
///
/// Service is disconnected.
///
ServiceDisconnected = CameraError.ServiceDisconnected
}
///
/// Enumeration for the image datatype.
///
/// 3
public enum PlaneType
{
///
/// Single plane data.
///
SinglePlane,
///
/// Double plane data.
///
DoublePlane,
///
/// Triple plane data.
///
TriplePlane,
///
/// Encoded plane data.
///
EncodedPlane,
///
/// Depth plane data.
///
/// 5
DepthPlane,
///
/// Rgb plane data.
///
/// 5
RgbPlane
}
}