IT. Expert System.

Android Reference

CamcorderProfile


android.media

Class CamcorderProfile



  • public class CamcorderProfile
    extends Object
    Retrieves the predefined camcorder profile settings for camcorder applications. These settings are read-only.

    The compressed output from a recording session with a given CamcorderProfile contains two tracks: one for audio and one for video.

    Each profile specifies the following set of parameters:

    • The file output format
    • Video codec format
    • Video bit rate in bits per second
    • Video frame rate in frames per second
    • Video frame width and height,
    • Audio codec format
    • Audio bit rate in bits per second,
    • Audio sample rate
    • Number of audio channels for recording.
    • Field Summary

      Fields
      Modifier and Type Field and Description
      int audioBitRate
      The target audio output bit rate in bits per second
      int audioChannels
      The number of audio channels used for the audio track
      int audioCodec
      The audio encoder being used for the audio track.
      int audioSampleRate
      The audio sampling rate used for the audio track
      int duration
      Default recording duration in seconds before the session is terminated.
      int fileFormat
      The file output format of the camcorder profile
      int quality
      The quality level of the camcorder profile
      static int QUALITY_1080P
      Quality level corresponding to the 1080p (1920 x 1080) resolution.
      static int QUALITY_480P
      Quality level corresponding to the 480p (720 x 480) resolution.
      static int QUALITY_720P
      Quality level corresponding to the 720p (1280 x 720) resolution.
      static int QUALITY_CIF
      Quality level corresponding to the cif (352 x 288) resolution.
      static int QUALITY_HIGH
      Quality level corresponding to the highest available resolution.
      static int QUALITY_LOW
      Quality level corresponding to the lowest available resolution.
      static int QUALITY_QCIF
      Quality level corresponding to the qcif (176 x 144) resolution.
      static int QUALITY_QVGA
      Quality level corresponding to the QVGA (320x240) resolution.
      static int QUALITY_TIME_LAPSE_1080P
      Time lapse quality level corresponding to the 1080p (1920 x 1088) resolution.
      static int QUALITY_TIME_LAPSE_480P
      Time lapse quality level corresponding to the 480p (720 x 480) resolution.
      static int QUALITY_TIME_LAPSE_720P
      Time lapse quality level corresponding to the 720p (1280 x 720) resolution.
      static int QUALITY_TIME_LAPSE_CIF
      Time lapse quality level corresponding to the cif (352 x 288) resolution.
      static int QUALITY_TIME_LAPSE_HIGH
      Time lapse quality level corresponding to the highest available resolution.
      static int QUALITY_TIME_LAPSE_LOW
      Time lapse quality level corresponding to the lowest available resolution.
      static int QUALITY_TIME_LAPSE_QCIF
      Time lapse quality level corresponding to the qcif (176 x 144) resolution.
      static int QUALITY_TIME_LAPSE_QVGA
      Time lapse quality level corresponding to the QVGA (320 x 240) resolution.
      int videoBitRate
      The target video output bit rate in bits per second
      int videoCodec
      The video encoder being used for the video track
      int videoFrameHeight
      The target video frame height in pixels
      int videoFrameRate
      The target video frame rate in frames per second
      int videoFrameWidth
      The target video frame width in pixels
    • Method Summary

      Methods
      Modifier and Type Method and Description
      static CamcorderProfile get(int quality)
      Returns the camcorder profile for the first back-facing camera on the device at the given quality level.
      static CamcorderProfile get(int cameraId, int quality)
      Returns the camcorder profile for the given camera at the given quality level.
      static boolean hasProfile(int quality)
      Returns true if camcorder profile exists for the first back-facing camera at the given quality level.
      static boolean hasProfile(int cameraId, int quality)
      Returns true if camcorder profile exists for the given camera at the given quality level.
    • Field Detail

      • QUALITY_LOW

        public static final int QUALITY_LOW
        Quality level corresponding to the lowest available resolution.
        See Also:
        Constant Field Values
      • QUALITY_HIGH

        public static final int QUALITY_HIGH
        Quality level corresponding to the highest available resolution.
        See Also:
        Constant Field Values
      • QUALITY_QCIF

        public static final int QUALITY_QCIF
        Quality level corresponding to the qcif (176 x 144) resolution.
        See Also:
        Constant Field Values
      • QUALITY_CIF

        public static final int QUALITY_CIF
        Quality level corresponding to the cif (352 x 288) resolution.
        See Also:
        Constant Field Values
      • QUALITY_480P

        public static final int QUALITY_480P
        Quality level corresponding to the 480p (720 x 480) resolution. Note that the horizontal resolution for 480p can also be other values, such as 640 or 704, instead of 720.
        See Also:
        Constant Field Values
      • QUALITY_720P

        public static final int QUALITY_720P
        Quality level corresponding to the 720p (1280 x 720) resolution.
        See Also:
        Constant Field Values
      • QUALITY_1080P

        public static final int QUALITY_1080P
        Quality level corresponding to the 1080p (1920 x 1080) resolution. Note that the vertical resolution for 1080p can also be 1088, instead of 1080 (used by some vendors to avoid cropping during video playback).
        See Also:
        Constant Field Values
      • QUALITY_QVGA

        public static final int QUALITY_QVGA
        Quality level corresponding to the QVGA (320x240) resolution.
        See Also:
        Constant Field Values
      • QUALITY_TIME_LAPSE_LOW

        public static final int QUALITY_TIME_LAPSE_LOW
        Time lapse quality level corresponding to the lowest available resolution.
        See Also:
        Constant Field Values
      • QUALITY_TIME_LAPSE_HIGH

        public static final int QUALITY_TIME_LAPSE_HIGH
        Time lapse quality level corresponding to the highest available resolution.
        See Also:
        Constant Field Values
      • QUALITY_TIME_LAPSE_QCIF

        public static final int QUALITY_TIME_LAPSE_QCIF
        Time lapse quality level corresponding to the qcif (176 x 144) resolution.
        See Also:
        Constant Field Values
      • QUALITY_TIME_LAPSE_CIF

        public static final int QUALITY_TIME_LAPSE_CIF
        Time lapse quality level corresponding to the cif (352 x 288) resolution.
        See Also:
        Constant Field Values
      • QUALITY_TIME_LAPSE_480P

        public static final int QUALITY_TIME_LAPSE_480P
        Time lapse quality level corresponding to the 480p (720 x 480) resolution.
        See Also:
        Constant Field Values
      • QUALITY_TIME_LAPSE_720P

        public static final int QUALITY_TIME_LAPSE_720P
        Time lapse quality level corresponding to the 720p (1280 x 720) resolution.
        See Also:
        Constant Field Values
      • QUALITY_TIME_LAPSE_1080P

        public static final int QUALITY_TIME_LAPSE_1080P
        Time lapse quality level corresponding to the 1080p (1920 x 1088) resolution.
        See Also:
        Constant Field Values
      • QUALITY_TIME_LAPSE_QVGA

        public static final int QUALITY_TIME_LAPSE_QVGA
        Time lapse quality level corresponding to the QVGA (320 x 240) resolution.
        See Also:
        Constant Field Values
      • duration

        public int duration
        Default recording duration in seconds before the session is terminated. This is useful for applications like MMS has limited file size requirement.
      • quality

        public int quality
        The quality level of the camcorder profile
      • videoBitRate

        public int videoBitRate
        The target video output bit rate in bits per second
      • videoFrameRate

        public int videoFrameRate
        The target video frame rate in frames per second
      • videoFrameWidth

        public int videoFrameWidth
        The target video frame width in pixels
      • videoFrameHeight

        public int videoFrameHeight
        The target video frame height in pixels
      • audioBitRate

        public int audioBitRate
        The target audio output bit rate in bits per second
      • audioSampleRate

        public int audioSampleRate
        The audio sampling rate used for the audio track
      • audioChannels

        public int audioChannels
        The number of audio channels used for the audio track
    • Method Detail

      • get

        public static CamcorderProfile get(int quality)
        Returns the camcorder profile for the first back-facing camera on the device at the given quality level. If the device has no back-facing camera, this returns null.
        Parameters:
        quality - the target quality level for the camcorder profile
        See Also:
        get(int, int)
      • get

        public static CamcorderProfile get(int cameraId,
                           int quality)
        Returns the camcorder profile for the given camera at the given quality level. Quality levels QUALITY_LOW, QUALITY_HIGH are guaranteed to be supported, while other levels may or may not be supported. The supported levels can be checked using hasProfile(int, int). QUALITY_LOW refers to the lowest quality available, while QUALITY_HIGH refers to the highest quality available. QUALITY_LOW/QUALITY_HIGH have to match one of qcif, cif, 480p, 720p, or 1080p. E.g. if the device supports 480p, 720p, and 1080p, then low is 480p and high is 1080p. The same is true for time lapse quality levels, i.e. QUALITY_TIME_LAPSE_LOW, QUALITY_TIME_LAPSE_HIGH are guaranteed to be supported and have to match one of qcif, cif, 480p, 720p, or 1080p. A camcorder recording session with higher quality level usually has higher output bit rate, better video and/or audio recording quality, larger video frame resolution and higher audio sampling rate, etc, than those with lower quality level.
        Parameters:
        cameraId - the id for the camera
        quality - the target quality level for the camcorder profile.
        See Also:
        QUALITY_LOW, QUALITY_HIGH, QUALITY_QCIF, QUALITY_CIF, QUALITY_480P, QUALITY_720P, QUALITY_1080P, QUALITY_TIME_LAPSE_LOW, QUALITY_TIME_LAPSE_HIGH, QUALITY_TIME_LAPSE_QCIF, QUALITY_TIME_LAPSE_CIF, QUALITY_TIME_LAPSE_480P, QUALITY_TIME_LAPSE_720P, QUALITY_TIME_LAPSE_1080P
      • hasProfile

        public static boolean hasProfile(int quality)
        Returns true if camcorder profile exists for the first back-facing camera at the given quality level.
        Parameters:
        quality - the target quality level for the camcorder profile
      • hasProfile

        public static boolean hasProfile(int cameraId,
                         int quality)
        Returns true if camcorder profile exists for the given camera at the given quality level.
        Parameters:
        cameraId - the id for the camera
        quality - the target quality level for the camcorder profile


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 3653 / . Delta: 0.02893 с