Chromium Code Reviews| 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 #include "media/base/android/ndk_media_codec_bridge.h" | 5 #include "media/base/android/ndk_media_codec_bridge.h" |
| 6 | 6 |
| 7 #include <media/NdkMediaError.h> | 7 #include <media/NdkMediaError.h> |
| 8 #include <media/NdkMediaFormat.h> | 8 #include <media/NdkMediaFormat.h> |
| 9 | 9 |
| 10 #include <limits> | 10 #include <limits> |
| (...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 242 size_t offset, | 242 size_t offset, |
| 243 const uint8_t** addr, | 243 const uint8_t** addr, |
| 244 size_t* capacity) { | 244 size_t* capacity) { |
| 245 const uint8_t* src_data = | 245 const uint8_t* src_data = |
| 246 AMediaCodec_getOutputBuffer(media_codec_.get(), index, capacity); | 246 AMediaCodec_getOutputBuffer(media_codec_.get(), index, capacity); |
| 247 *addr = src_data + offset; | 247 *addr = src_data + offset; |
| 248 *capacity -= offset; | 248 *capacity -= offset; |
| 249 return MEDIA_CODEC_OK; | 249 return MEDIA_CODEC_OK; |
| 250 } | 250 } |
| 251 | 251 |
| 252 bool NdkMediaCodecBridge::IsSoftwareCodec() { | |
| 253 return false; | |
|
watk
2016/06/22 22:39:46
Comment would be nice to say why we either can't t
liberato (no reviews please)
2016/06/23 15:18:19
Done.
| |
| 254 } | |
| 255 | |
| 252 } // namespace media | 256 } // namespace media |
| OLD | NEW |