| OLD | NEW |
| 1 /* | 1 /* |
| 2 * libjingle | 2 * libjingle |
| 3 * Copyright 2015 Google Inc. | 3 * Copyright 2015 Google Inc. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are met: | 6 * modification, are permitted provided that the following conditions are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright notice, | 8 * 1. Redistributions of source code must retain the above copyright notice, |
| 9 * this list of conditions and the following disclaimer. | 9 * this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright notice, | 10 * 2. Redistributions in binary form must reproduce the above copyright notice, |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 public: | 59 public: |
| 60 JniNativeHandleBuffer(void* native_handle, int width, int height) | 60 JniNativeHandleBuffer(void* native_handle, int width, int height) |
| 61 : NativeHandleBuffer(native_handle, width, height) {} | 61 : NativeHandleBuffer(native_handle, width, height) {} |
| 62 | 62 |
| 63 // TODO(pbos): Override destructor to release native handle, at the moment the | 63 // TODO(pbos): Override destructor to release native handle, at the moment the |
| 64 // native handle is not released based on refcount. | 64 // native handle is not released based on refcount. |
| 65 | 65 |
| 66 private: | 66 private: |
| 67 rtc::scoped_refptr<VideoFrameBuffer> NativeToI420Buffer() override { | 67 rtc::scoped_refptr<VideoFrameBuffer> NativeToI420Buffer() override { |
| 68 // TODO(pbos): Implement before using this in the encoder pipeline (or | 68 // TODO(pbos): Implement before using this in the encoder pipeline (or |
| 69 // remove the CHECK() in VideoCapture). | 69 // remove the RTC_CHECK() in VideoCapture). |
| 70 RTC_NOTREACHED(); | 70 RTC_NOTREACHED(); |
| 71 return nullptr; | 71 return nullptr; |
| 72 } | 72 } |
| 73 }; | 73 }; |
| 74 | 74 |
| 75 } // namespace webrtc_jni | 75 } // namespace webrtc_jni |
| 76 | 76 |
| 77 #endif // TALK_APP_WEBRTC_JAVA_JNI_NATIVE_HANDLE_IMPL_H_ | 77 #endif // TALK_APP_WEBRTC_JAVA_JNI_NATIVE_HANDLE_IMPL_H_ |
| OLD | NEW |