Common keys for video QP manipulation
Definitions for managing Video encoding Quantization Parameter (QP). Providing a standardized key instead of various vendor-specific keys. Bug: 161486623 Test: build, b/179554934 for functionality Change-Id: I8f1976cff55e119a2b42332de3d7ae690dc9e1fa
This commit is contained in:
@@ -21905,6 +21905,14 @@ package android.media {
|
||||
field public static final String KEY_TILE_HEIGHT = "tile-height";
|
||||
field public static final String KEY_TILE_WIDTH = "tile-width";
|
||||
field public static final String KEY_TRACK_ID = "track-id";
|
||||
field public static final String KEY_VIDEO_QP_B_MAX = "video-qp-b-max";
|
||||
field public static final String KEY_VIDEO_QP_B_MIN = "video-qp-b-min";
|
||||
field public static final String KEY_VIDEO_QP_I_MAX = "video-qp-i-max";
|
||||
field public static final String KEY_VIDEO_QP_I_MIN = "video-qp-i-min";
|
||||
field public static final String KEY_VIDEO_QP_MAX = "video-qp-max";
|
||||
field public static final String KEY_VIDEO_QP_MIN = "video-qp-min";
|
||||
field public static final String KEY_VIDEO_QP_P_MAX = "video-qp-p-max";
|
||||
field public static final String KEY_VIDEO_QP_P_MIN = "video-qp-p-min";
|
||||
field public static final String KEY_WIDTH = "width";
|
||||
field public static final String MIMETYPE_AUDIO_AAC = "audio/mp4a-latm";
|
||||
field public static final String MIMETYPE_AUDIO_AC3 = "audio/ac3";
|
||||
|
||||
@@ -20,7 +20,6 @@ import android.annotation.IntDef;
|
||||
import android.annotation.NonNull;
|
||||
import android.annotation.Nullable;
|
||||
import android.compat.annotation.UnsupportedAppUsage;
|
||||
import android.util.Log;
|
||||
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
@@ -980,6 +979,74 @@ public final class MediaFormat {
|
||||
*/
|
||||
public static final String KEY_BITRATE_MODE = "bitrate-mode";
|
||||
|
||||
/**
|
||||
* A key describing the maximum Quantization Parameter allowed for encoding video.
|
||||
* This key applies to all three video frame types (I, P, and B). This value fills
|
||||
* in for any of the frame-specific #KEY_VIDEO_QP_I_MAX, #KEY_VIDEO_QP_P_MAX, or
|
||||
* #KEY_VIDEO_QP_B_MAX keys that are not specified
|
||||
*
|
||||
* The associated value is an integer.
|
||||
*/
|
||||
public static final String KEY_VIDEO_QP_MAX = "video-qp-max";
|
||||
|
||||
/**
|
||||
* A key describing the maximum Quantization Parameter allowed for encoding video.
|
||||
* This key applies to all three video frame types (I, P, and B). This value fills
|
||||
* in for any of the frame-specific #KEY_VIDEO_QP_I_MIN, #KEY_VIDEO_QP_P_MIN, or
|
||||
* #KEY_VIDEO_QP_B_MIN keys that are not specified
|
||||
*
|
||||
* The associated value is an integer.
|
||||
*/
|
||||
public static final String KEY_VIDEO_QP_MIN = "video-qp-min";
|
||||
|
||||
/**
|
||||
* A key describing the maximum Quantization Parameter allowed for encoding video.
|
||||
* This value applies to video I-frames.
|
||||
*
|
||||
* The associated value is an integer.
|
||||
*/
|
||||
public static final String KEY_VIDEO_QP_I_MAX = "video-qp-i-max";
|
||||
|
||||
/**
|
||||
* A key describing the minimum Quantization Parameter allowed for encoding video.
|
||||
* This value applies to video I-frames.
|
||||
*
|
||||
* The associated value is an integer.
|
||||
*/
|
||||
public static final String KEY_VIDEO_QP_I_MIN = "video-qp-i-min";
|
||||
|
||||
/**
|
||||
* A key describing the maximum Quantization Parameter allowed for encoding video.
|
||||
* This value applies to video P-frames.
|
||||
*
|
||||
* The associated value is an integer.
|
||||
*/
|
||||
public static final String KEY_VIDEO_QP_P_MAX = "video-qp-p-max";
|
||||
|
||||
/**
|
||||
* A key describing the minimum Quantization Parameter allowed for encoding video.
|
||||
* This value applies to video P-frames.
|
||||
*
|
||||
* The associated value is an integer.
|
||||
*/
|
||||
public static final String KEY_VIDEO_QP_P_MIN = "video-qp-p-min";
|
||||
|
||||
/**
|
||||
* A key describing the maximum Quantization Parameter allowed for encoding video.
|
||||
* This value applies to video B-frames.
|
||||
*
|
||||
* The associated value is an integer.
|
||||
*/
|
||||
public static final String KEY_VIDEO_QP_B_MAX = "video-qp-b-max";
|
||||
|
||||
/**
|
||||
* A key describing the minimum Quantization Parameter allowed for encoding video.
|
||||
* This value applies to video B-frames.
|
||||
*
|
||||
* The associated value is an integer.
|
||||
*/
|
||||
public static final String KEY_VIDEO_QP_B_MIN = "video-qp-b-min";
|
||||
|
||||
/**
|
||||
* A key describing the audio session ID of the AudioTrack associated
|
||||
* to a tunneled video codec.
|
||||
|
||||
Reference in New Issue
Block a user