Chromium Code Reviews| Index: media/base/android/media_codec_bridge.h |
| diff --git a/media/base/android/media_codec_bridge.h b/media/base/android/media_codec_bridge.h |
| index c09ea52a7c2e685c1b7b4636995e9b78e3e22da4..8785065d1638653ff65baa5d0145083b16788dc7 100644 |
| --- a/media/base/android/media_codec_bridge.h |
| +++ b/media/base/android/media_codec_bridge.h |
| @@ -107,6 +107,10 @@ class MEDIA_EXPORT MediaCodecBridge { |
| // returns a format change by returning INFO_OUTPUT_FORMAT_CHANGED |
| void GetOutputFormat(int* width, int* height); |
| + // Used for checking for new sampling rate after DequeueInputBuffer() returns |
| + // INFO_OUTPUT_FORMAT_CHANGED |
| + void GetOutputSamplingRate(int* sampling_rate); |
|
qinmin
2015/01/21 02:04:13
why not int GetOutputSamplingRate() as there is on
kjoswiak
2015/01/21 03:21:18
Done.
|
| + |
| // Submits a byte array to the given input buffer. Call this after getting an |
| // available buffer from DequeueInputBuffer(). If |data| is NULL, assume the |
| // input buffer has already been populated (but still obey |size|). |
| @@ -182,6 +186,9 @@ class MEDIA_EXPORT MediaCodecBridge { |
| static bool RegisterMediaCodecBridge(JNIEnv* env); |
| + // Returns true if reconfigure is successful, false otherwise |
| + bool ReconfigureAudioTrack(); |
| + |
| protected: |
| // Returns true if |mime_type| is known to be unaccelerated (i.e. backed by a |
| // software codec instead of a hardware one). |