Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

frameworks/base: Add support for QCELP/EVRC formats

Change-Id: I82e4e2c23e6ed3e2421fe54ff8bd4f848768b8c6
  • Loading branch information...
commit 437ab9812b2012de9358547d9bdd2b3c9caa5f95 1 parent 1ab6349
Vidyakumar Athota authored Whitehawkx committed
Showing with 14 additions and 0 deletions.
  1. +4 −0 api/current.txt
  2. +10 −0 media/java/android/media/MediaRecorder.java
View
4 api/current.txt
@@ -11474,6 +11474,9 @@ package android.media {
field public static final int AMR_WB = 2; // 0x2
field public static final int DEFAULT = 0; // 0x0
field public static final int HE_AAC = 4; // 0x4
+ field public static final int EVRC = 6; // 0x6
+ field public static final int QCELP = 7; // 0x7
+ field public static final int LPCM = 8; // 0x8
}
public final class MediaRecorder.AudioSource {
@@ -11501,6 +11504,7 @@ package android.media {
field public static final int AMR_WB = 4; // 0x4
field public static final int DEFAULT = 0; // 0x0
field public static final int MPEG_4 = 2; // 0x2
+ field public static final int QCP = 9; // 0x9
field public static final deprecated int RAW_AMR = 3; // 0x3
field public static final int THREE_GPP = 1; // 0x1
}
View
10 media/java/android/media/MediaRecorder.java
@@ -1,5 +1,6 @@
/*
* Copyright (C) 2007 The Android Open Source Project
+ * Copyright (c) 2012, Code Aurora Forum. 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.
@@ -235,6 +236,9 @@ private OutputFormat() {}
/** @hide H.264/AAC data encapsulated in MPEG2/TS */
public static final int OUTPUT_FORMAT_MPEG2TS = 8;
+
+ /** QCP file format */
+ public static final int QCP = 9;
};
/**
@@ -257,6 +261,12 @@ private AudioEncoder() {}
public static final int HE_AAC = 4;
/** Enhanced Low Delay AAC (AAC-ELD) audio codec */
public static final int AAC_ELD = 5;
+ /** EVRC audio codec */
+ public static final int EVRC = 6;
+ /** QCELP audio codec */
+ public static final int QCELP =7;
+ /** Linear PCM audio codec */
+ public static final int LPCM =8;
}
/**
Please sign in to comment.
Something went wrong with that request. Please try again.