| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2015 The WebRTC project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| 11 #include "webrtc/api/java/jni/native_handle_impl.h" | 11 #include "webrtc/api/android/jni/native_handle_impl.h" |
| 12 | 12 |
| 13 #include <memory> | 13 #include <memory> |
| 14 | 14 |
| 15 #include "webrtc/api/java/jni/jni_helpers.h" | 15 #include "webrtc/api/android/jni/jni_helpers.h" |
| 16 #include "webrtc/base/bind.h" | 16 #include "webrtc/base/bind.h" |
| 17 #include "webrtc/base/checks.h" | 17 #include "webrtc/base/checks.h" |
| 18 #include "webrtc/base/keep_ref_until_done.h" | 18 #include "webrtc/base/keep_ref_until_done.h" |
| 19 #include "webrtc/base/logging.h" | 19 #include "webrtc/base/logging.h" |
| 20 #include "webrtc/base/scoped_ref_ptr.h" | 20 #include "webrtc/base/scoped_ref_ptr.h" |
| 21 | 21 |
| 22 using webrtc::NativeHandleBuffer; | 22 using webrtc::NativeHandleBuffer; |
| 23 | 23 |
| 24 namespace webrtc_jni { | 24 namespace webrtc_jni { |
| 25 | 25 |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 cropped_width / static_cast<float>(width()), | 206 cropped_width / static_cast<float>(width()), |
| 207 cropped_height / static_cast<float>(height()), | 207 cropped_height / static_cast<float>(height()), |
| 208 crop_x / static_cast<float>(width()), | 208 crop_x / static_cast<float>(width()), |
| 209 crop_y / static_cast<float>(height())); | 209 crop_y / static_cast<float>(height())); |
| 210 } | 210 } |
| 211 buffer->native_handle_.sampling_matrix.Rotate(rotation); | 211 buffer->native_handle_.sampling_matrix.Rotate(rotation); |
| 212 return buffer; | 212 return buffer; |
| 213 } | 213 } |
| 214 | 214 |
| 215 } // namespace webrtc_jni | 215 } // namespace webrtc_jni |
| OLD | NEW |