am fff175ae: Merge "Part of corrections from KLP API Review: Media" into klp-dev
* commit 'fff175aedc86a176fb6ceafe00fe5a26adc5d909': Part of corrections from KLP API Review: Media
This commit is contained in:
@@ -294,6 +294,9 @@ final public class MediaCodec {
|
|||||||
*/
|
*/
|
||||||
public native final void flush();
|
public native final void flush();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Thrown when a crypto error occurs while queueing a secure input buffer.
|
||||||
|
*/
|
||||||
public final static class CryptoException extends RuntimeException {
|
public final static class CryptoException extends RuntimeException {
|
||||||
public CryptoException(int errorCode, String detailMessage) {
|
public CryptoException(int errorCode, String detailMessage) {
|
||||||
super(detailMessage);
|
super(detailMessage);
|
||||||
@@ -318,6 +321,9 @@ final public class MediaCodec {
|
|||||||
*/
|
*/
|
||||||
public static final int ERROR_RESOURCE_BUSY = 3;
|
public static final int ERROR_RESOURCE_BUSY = 3;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Retrieve the error code associated with a CryptoException
|
||||||
|
*/
|
||||||
public int getErrorCode() {
|
public int getErrorCode() {
|
||||||
return mErrorCode;
|
return mErrorCode;
|
||||||
}
|
}
|
||||||
@@ -449,6 +455,9 @@ final public class MediaCodec {
|
|||||||
* @param presentationTimeUs The time at which this buffer should be rendered.
|
* @param presentationTimeUs The time at which this buffer should be rendered.
|
||||||
* @param flags A bitmask of flags {@link #BUFFER_FLAG_SYNC_FRAME},
|
* @param flags A bitmask of flags {@link #BUFFER_FLAG_SYNC_FRAME},
|
||||||
* {@link #BUFFER_FLAG_CODEC_CONFIG} or {@link #BUFFER_FLAG_END_OF_STREAM}.
|
* {@link #BUFFER_FLAG_CODEC_CONFIG} or {@link #BUFFER_FLAG_END_OF_STREAM}.
|
||||||
|
* @throws CryptoException if an error occurs while attempting to decrypt the buffer.
|
||||||
|
* An error code associated with the exception helps identify the
|
||||||
|
* reason for the failure.
|
||||||
*/
|
*/
|
||||||
public native final void queueSecureInputBuffer(
|
public native final void queueSecureInputBuffer(
|
||||||
int index,
|
int index,
|
||||||
|
|||||||
Reference in New Issue
Block a user