CAMERA_MODE_PHOTO2 = 100
CAMERA_MODE_PHOTO = 0
CAMERA_MODE_FACE_BEAUTY = 1
CAMERA_MODE_PANORAMA = 2
CAMERA_MODE_SELF_WIDEVIEW = 3
CAMERA_MODE_SCENE_FRAME = 4
CAMERA_MODE_GESTURE_SHOT = 5
CAMERA_MODE_LIVE_PHOTO = 6
CAMERA_MODE_VIDEO = 7
CAMERA_MODE_PROFESSIONAL = 8
CAMERA_MODE_NIGHTSHOT = 9
CAMERA_MODE_PIP = 10
CAMERA_MODE_SPORTS = 11
CAMERA_MODE_VIV = 12
CAMERA_MODE_ZBAR_CODE = 13
CAMERA_MODE_REFOCUS = 14
CAMERA_MODE_CHROMAFLASH = 15
CAMERA_MODE_SUPERPIXEL = 16
CAMERA_MODE_CLEARSIGHT = 17
CAMERA_MODE_VIDEOBEAUTY = 18
CAMERA_MODE_VIDEOTIMELAPSE = 19
CAMERA_MODE_MONOCHROME = 20
CAMERA_MODE_PORTRAIT = 21

VALUE_CAPTURE_MODE_VIDEO = "video"
VALUE_CAPTURE_MODE_AUTO = "normal"
VALUE_CAPTURE_MODE_BEAUTYSHOT = "beautyshot"
VALUE_CAPTURE_MODE_NIGHTSHOT = "nightshot"
VALUE_CAPTURE_MODE_PANORAMA = "panorama"
VALUE_CAPTURE_MODE_WIDESELF = "wideself"
VALUE_CAPTURE_MODE_PROFESSIONAL = "professional"
VALUE_CAPTURE_MODE_SCENE_FRAME = "sceneframe"
VALUE_CAPTURE_MODE_SPORT = "sports"
VALUE_CAPTURE_MODE_PIP = "pip"
VALUE_CAPTURE_MODE_VIV = "viv"
VALUE_CAPTURE_MODE_ZBAR = "zbarcode"
VALUE_CAPTURE_MODE_REFOCUS = "refocus"
VALUE_CAPTURE_MODE_CHROMAFLASH = "chromaflash"
VALUE_CAPTURE_MODE_SUPERPIXEL = "superphoto"
VALUE_CAPTURE_MODE_VEDOBEAUTY = "videobeauty"
VALUE_CAPTURE_MODE_CLEARSIGHT = "clearsight"
VALUE_CAPTURE_MODE_VEDOTIMELAPSE = "videotimelapse"
VALUE_CAPTURE_MODE_MONOCHROME = "monochrome"
VALUE_CAPTURE_MODE_PORTRAIT = "picselfie"
VALUE_CAPTURE_MODE_VIDEOAUTOZOOM = "videoautozoom"

VALUE_CAPTURE_MODE_UNKNOWN = "unknown"


def get_mode_name(mode):
    



action = "android.myos.action.%s"

ACTION_NOMARL_CAMERA = "NOMARLCAMERA"  # normal
ACTION_NS_CAMERA = "NSCAMERA"  # night
ACTION_BEATY_CAMERA = "BEATYCAMERA"  # beauty
ACTION_SUPERPIXEL_CAMERA = "SUPERPIXELCAMERA"  # super photo


# ACTION_PRO_CAMERA = "PROCAMERA"
# ACTION_WIDESELFT_CAMERA = "WIDESELFCAMERA"
# ACTION_SPORT_CAMERA = "SPORTCAMERA"
# ACTION_SMARTFOCUS_CAMERA = "SMARTFOCUSCAMERA"
# ACTION_SMARTFLASH_CAMERA = "SMARTFLASHCAMERA"
# ACTION_PANORAMA_CAMERA = "PANORAMACAMERA"
# ACTION_MONOCHROME_CAMERA = "MONOCHROMECAMERA"


def get_actions():
    actions = [action % ACTION_NS_CAMERA,
               action % ACTION_BEATY_CAMERA,
               action % ACTION_NOMARL_CAMERA,
               action % ACTION_SUPERPIXEL_CAMERA]
    return actions

return {
        CAMERA_MODE_PHOTO: VALUE_CAPTURE_MODE_AUTO,
        CAMERA_MODE_FACE_BEAUTY: VALUE_CAPTURE_MODE_BEAUTYSHOT,
        CAMERA_MODE_PANORAMA: VALUE_CAPTURE_MODE_PANORAMA,
        CAMERA_MODE_SELF_WIDEVIEW: VALUE_CAPTURE_MODE_WIDESELF,
        CAMERA_MODE_SCENE_FRAME: VALUE_CAPTURE_MODE_SCENE_FRAME,
        CAMERA_MODE_GESTURE_SHOT: VALUE_CAPTURE_MODE_UNKNOWN,
        CAMERA_MODE_LIVE_PHOTO: VALUE_CAPTURE_MODE_UNKNOWN,
        CAMERA_MODE_VIDEO: VALUE_CAPTURE_MODE_VIDEO,
        CAMERA_MODE_PROFESSIONAL: VALUE_CAPTURE_MODE_PROFESSIONAL,
        CAMERA_MODE_NIGHTSHOT: VALUE_CAPTURE_MODE_NIGHTSHOT,
        CAMERA_MODE_PIP: VALUE_CAPTURE_MODE_PIP,
        CAMERA_MODE_SPORTS: VALUE_CAPTURE_MODE_SPORT,
        CAMERA_MODE_VIV: VALUE_CAPTURE_MODE_VIV,
        CAMERA_MODE_ZBAR_CODE: VALUE_CAPTURE_MODE_ZBAR,
        CAMERA_MODE_REFOCUS: VALUE_CAPTURE_MODE_REFOCUS,
        CAMERA_MODE_CHROMAFLASH: VALUE_CAPTURE_MODE_CHROMAFLASH,
        CAMERA_MODE_SUPERPIXEL: VALUE_CAPTURE_MODE_SUPERPIXEL,
        CAMERA_MODE_CLEARSIGHT: VALUE_CAPTURE_MODE_CLEARSIGHT,
        CAMERA_MODE_VIDEOBEAUTY: VALUE_CAPTURE_MODE_VEDOBEAUTY,
        CAMERA_MODE_VIDEOTIMELAPSE: VALUE_CAPTURE_MODE_VEDOTIMELAPSE,
        CAMERA_MODE_MONOCHROME: VALUE_CAPTURE_MODE_MONOCHROME,
        CAMERA_MODE_PORTRAIT: VALUE_CAPTURE_MODE_PORTRAIT
    }.get(mode)