GithubHelp home page GithubHelp logo

droid-camres's Introduction

droid-camres

Gets camera resolutions for droidcam

Usage: droid-camres [OPTION]

  -o [filename]       Generate json for camera-settings-plugin
  -w [filename]       Generate dconf for jolla-camera-hw.txt

Generating json file for camera-settings-plugin

[nemo@localhost ~]$ droid-camres -o camera-resolutions.json
Camres version 1.0.0
usage: droid-camres {-o json-output-filename}

Camres: Writing to file camera-resolutions.json
Resolutions for Primary camera:
image resolutions:
4160x3120 (4:3)
4000x3000 (4:3)
4096x2160 (9:5)
3840x2160 (16:9)
3264x2448 (4:3)
3120x3120 (1:1)
2592x1944 (4:3)
2048x1536 (4:3)
1920x1080 (16:9)
1600x1200 (4:3)
1280x960 (4:3)
1280x768 (16:10)
1280x720 (16:9)
1088x1088 (1:1)
1024x768 (4:3)
800x600 (4:3)
800x480 (16:10)
720x480 (3:2)
640x480 (4:3)
352x288 (5:4)
320x240 (4:3)
video resolutions:
1920x1080 (16:9)
1280x720 (16:9)
864x480 (9:5)
800x480 (16:10)
720x480 (3:2)
640x480 (4:3)
480x320 (3:2)
352x288 (5:4)
320x240 (4:3)
176x144 (5:4)
viewfinder resolutions:
2048x1536 (4:3)
1920x1080 (16:9)
1440x1080 (4:3)
1280x960 (4:3)
1280x720 (16:9)
1088x1088 (1:1)
960x720 (4:3)
864x480 (9:5)
800x480 (16:10)
768x432 (16:9)
736x736 (1:1)
720x480 (3:2)
640x640 (1:1)
640x480 (4:3)
576x432 (4:3)
480x320 (3:2)
384x288 (4:3)
352x288 (5:4)
320x240 (4:3)
240x160 (3:2)
176x144 (5:4)
Resolutions for Secondary camera:
image resolutions:
3264x2448 (4:3)
2592x1944 (4:3)
2048x1536 (4:3)
1920x1080 (16:9)
1600x1200 (4:3)
1280x960 (4:3)
1280x720 (16:9)
1280x768 (16:10)
1024x768 (4:3)
1088x1088 (1:1)
800x600 (4:3)
800x480 (16:10)
720x480 (3:2)
640x480 (4:3)
352x288 (5:4)
320x240 (4:3)
video resolutions:
1920x1080 (16:9)
1280x720 (16:9)
864x480 (9:5)
800x480 (16:10)
720x480 (3:2)
640x480 (4:3)
480x320 (3:2)
352x288 (5:4)
320x240 (4:3)
176x144 (5:4)
viewfinder resolutions:
2048x1536 (4:3)
1920x1080 (16:9)
1440x1080 (4:3)
1280x960 (4:3)
1280x720 (16:9)
960x720 (4:3)
1088x1088 (1:1)
864x480 (9:5)
800x480 (16:10)
720x480 (3:2)
768x432 (16:9)
576x432 (4:3)
736x736 (1:1)
640x640 (1:1)
640x480 (4:3)
480x320 (3:2)
384x288 (4:3)
352x288 (5:4)
320x240 (4:3)
240x160 (3:2)
176x144 (5:4)

camera-resolutions.json

{
    "primary":
    {
        "image":
        [
            { "resolution": "4160x3120", "aspectRatio": "4:3" },
            { "resolution": "4000x3000", "aspectRatio": "4:3" },
            { "resolution": "4096x2160", "aspectRatio": "9:5" },
            { "resolution": "3840x2160", "aspectRatio": "16:9" },
            { "resolution": "3264x2448", "aspectRatio": "4:3" },
            { "resolution": "3120x3120", "aspectRatio": "1:1" },
            { "resolution": "2592x1944", "aspectRatio": "4:3" },
            { "resolution": "2048x1536", "aspectRatio": "4:3" },
            { "resolution": "1920x1080", "aspectRatio": "16:9" },
            { "resolution": "1600x1200", "aspectRatio": "4:3" },
            { "resolution": "1280x960", "aspectRatio": "4:3" },
            { "resolution": "1280x768", "aspectRatio": "16:10" },
            { "resolution": "1280x720", "aspectRatio": "16:9" },
            { "resolution": "1088x1088", "aspectRatio": "1:1" },
            { "resolution": "1024x768", "aspectRatio": "4:3" },
            { "resolution": "800x600", "aspectRatio": "4:3" },
            { "resolution": "800x480", "aspectRatio": "16:10" },
            { "resolution": "720x480", "aspectRatio": "3:2" },
            { "resolution": "640x480", "aspectRatio": "4:3" },
            { "resolution": "352x288", "aspectRatio": "5:4" },
            { "resolution": "320x240", "aspectRatio": "4:3" }
        ],
        "video":
        [
            { "resolution": "1920x1080", "aspectRatio": "16:9" },
            { "resolution": "1280x720", "aspectRatio": "16:9" },
            { "resolution": "864x480", "aspectRatio": "9:5" },
            { "resolution": "800x480", "aspectRatio": "16:10" },
            { "resolution": "720x480", "aspectRatio": "3:2" },
            { "resolution": "640x480", "aspectRatio": "4:3" },
            { "resolution": "480x320", "aspectRatio": "3:2" },
            { "resolution": "352x288", "aspectRatio": "5:4" },
            { "resolution": "320x240", "aspectRatio": "4:3" },
            { "resolution": "176x144", "aspectRatio": "5:4" }
        ]
    },
    "secondary":
    {
        "image":
        [
            { "resolution": "3264x2448", "aspectRatio": "4:3" },
            { "resolution": "2592x1944", "aspectRatio": "4:3" },
            { "resolution": "2048x1536", "aspectRatio": "4:3" },
            { "resolution": "1920x1080", "aspectRatio": "16:9" },
            { "resolution": "1600x1200", "aspectRatio": "4:3" },
            { "resolution": "1280x960", "aspectRatio": "4:3" },
            { "resolution": "1280x720", "aspectRatio": "16:9" },
            { "resolution": "1280x768", "aspectRatio": "16:10" },
            { "resolution": "1024x768", "aspectRatio": "4:3" },
            { "resolution": "1088x1088", "aspectRatio": "1:1" },
            { "resolution": "800x600", "aspectRatio": "4:3" },
            { "resolution": "800x480", "aspectRatio": "16:10" },
            { "resolution": "720x480", "aspectRatio": "3:2" },
            { "resolution": "640x480", "aspectRatio": "4:3" },
            { "resolution": "352x288", "aspectRatio": "5:4" },
            { "resolution": "320x240", "aspectRatio": "4:3" }
        ],
        "video":
        [
            { "resolution": "1920x1080", "aspectRatio": "16:9" },
            { "resolution": "1280x720", "aspectRatio": "16:9" },
            { "resolution": "864x480", "aspectRatio": "9:5" },
            { "resolution": "800x480", "aspectRatio": "16:10" },
            { "resolution": "720x480", "aspectRatio": "3:2" },
            { "resolution": "640x480", "aspectRatio": "4:3" },
            { "resolution": "480x320", "aspectRatio": "3:2" },
            { "resolution": "352x288", "aspectRatio": "5:4" },
            { "resolution": "320x240", "aspectRatio": "4:3" },
            { "resolution": "176x144", "aspectRatio": "5:4" }
        ]
    },
    "viewfinder":
    {
        "viewfinderResolution_4_3" : "1440x1080",
        "viewfinderResolution_16_9" : "1920x1080"
    }
}

Generation of jolla-camera-hw.txt

[nemo@localhost ~]$ droid-camres -w jolla-camera-hw.txt
Camres version 1.0.0
Searching cameras...
Searching resolutions for Primary camera...
Searching resolutions for Secondary camera...

Resolutions for Primary camera:
...
...
...
Camres: Writing dconf settings to file jolla-camera-hw.txt

jolla-camera-hw.txt

[apps/jolla-camera/primary/image]
imageResolution='4160x3120'
videoResolution='1920x1080'
viewfinderResolution='1440x1080'
isoValues=[0, 100, 200, 400]
whiteBalanceValues=[0, 3, 2, 6, 5]
focusDistanceValues=[8, 4, 16]
flashValues=[1, 2, 4]
exposureCompensationValues=[4, 2, 0, -2, -4]
imageResolution_4_3='4160x3120'
imageResolution_16_9='3840x2160'
viewfinderResolution_4_3='1440x1080'
viewfinderResolution_16_9='1920x1080'
resolutionText_4_3='camera_settings-me-4-3-8m'
resolutionText_16_9='camera_settings-me-16-9-6m'
focusDistance=16

[apps/jolla-camera/secondary/image]
imageResolution='3264x2448'
videoResolution='1920x1080'
viewfinderResolution='1440x1080'
isoValues=[0, 100, 200, 400]
whiteBalanceValues=[0, 3, 2, 6, 5]
focusDistanceValues=[4]
flashValues=[2]
exposureCompensationValues=[4, 2, 0, -2, -4]
imageResolution_4_3='3264x2448'
imageResolution_16_9='1920x1080'
viewfinderResolution_4_3='1440x1080'
viewfinderResolution_16_9='1920x1080'
resolutionText_4_3='camera_settings-me-4-3-2m'
resolutionText_16_9='camera_settings-me-16-9-1m'
focusDistance=4

[apps/jolla-camera/primary/video]
imageResolution='1920x1080'
videoResolution='1920x1080'
viewfinderResolution='1920x1080'
isoValues=[0, 100, 200, 400]
whiteBalanceValues=[0, 3, 2, 6, 5]
focusDistanceValues=[4, 16]
flashValues=[2]
exposureCompensationValues=[4, 2, 0, -2, -4]
focusDistance=16

[apps/jolla-camera/secondary/video]
imageResolution='1920x1080'
videoResolution='1920x1080'
viewfinderResolution='1920x1080'
isoValues=[0, 100, 200, 400]
whiteBalanceValues=[0, 3, 2, 6, 5]
focusDistanceValues=[4]
flashValues=[2]
exposureCompensationValues=[4, 2, 0, -2, -4]
focusDistance=4

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.