OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef MEDIA_BASE_ANDROID_NDK_MEDIA_CODEC_BRIDGE_H_ | 5 #ifndef MEDIA_BASE_ANDROID_NDK_MEDIA_CODEC_BRIDGE_H_ |
6 #define MEDIA_BASE_ANDROID_NDK_MEDIA_CODEC_BRIDGE_H_ | 6 #define MEDIA_BASE_ANDROID_NDK_MEDIA_CODEC_BRIDGE_H_ |
7 | 7 |
8 #include <media/NdkMediaCodec.h> | 8 #include <media/NdkMediaCodec.h> |
9 #include <stddef.h> | 9 #include <stddef.h> |
10 #include <stdint.h> | 10 #include <stdint.h> |
(...skipping 26 matching lines...) Expand all Loading... |
37 const base::TimeDelta& presentation_time) override; | 37 const base::TimeDelta& presentation_time) override; |
38 using MediaCodecBridge::QueueSecureInputBuffer; | 38 using MediaCodecBridge::QueueSecureInputBuffer; |
39 MediaCodecStatus QueueSecureInputBuffer( | 39 MediaCodecStatus QueueSecureInputBuffer( |
40 int index, | 40 int index, |
41 const uint8_t* data, | 41 const uint8_t* data, |
42 size_t data_size, | 42 size_t data_size, |
43 const std::vector<char>& key_id, | 43 const std::vector<char>& key_id, |
44 const std::vector<char>& iv, | 44 const std::vector<char>& iv, |
45 const SubsampleEntry* subsamples, | 45 const SubsampleEntry* subsamples, |
46 int subsamples_size, | 46 int subsamples_size, |
| 47 const EncryptionScheme& encryption_scheme, |
47 const base::TimeDelta& presentation_time) override; | 48 const base::TimeDelta& presentation_time) override; |
48 void QueueEOS(int input_buffer_index) override; | 49 void QueueEOS(int input_buffer_index) override; |
49 MediaCodecStatus DequeueInputBuffer(const base::TimeDelta& timeout, | 50 MediaCodecStatus DequeueInputBuffer(const base::TimeDelta& timeout, |
50 int* index) override; | 51 int* index) override; |
51 MediaCodecStatus DequeueOutputBuffer(const base::TimeDelta& timeout, | 52 MediaCodecStatus DequeueOutputBuffer(const base::TimeDelta& timeout, |
52 int* index, | 53 int* index, |
53 size_t* offset, | 54 size_t* offset, |
54 size_t* size, | 55 size_t* size, |
55 base::TimeDelta* presentation_time, | 56 base::TimeDelta* presentation_time, |
56 bool* end_of_stream, | 57 bool* end_of_stream, |
(...skipping 18 matching lines...) Expand all Loading... |
75 }; | 76 }; |
76 | 77 |
77 std::unique_ptr<AMediaCodec, AMediaCodecDeleter> media_codec_; | 78 std::unique_ptr<AMediaCodec, AMediaCodecDeleter> media_codec_; |
78 | 79 |
79 DISALLOW_COPY_AND_ASSIGN(NdkMediaCodecBridge); | 80 DISALLOW_COPY_AND_ASSIGN(NdkMediaCodecBridge); |
80 }; | 81 }; |
81 | 82 |
82 } // namespace media | 83 } // namespace media |
83 | 84 |
84 #endif // MEDIA_BASE_ANDROID_NDK_MEDIA_CODEC_BRIDGE_H_ | 85 #endif // MEDIA_BASE_ANDROID_NDK_MEDIA_CODEC_BRIDGE_H_ |
OLD | NEW |