| 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 explicit AndroidVideoCapturer( | 64 explicit AndroidVideoCapturer( |
| 65 const rtc::scoped_refptr<AndroidVideoCapturerDelegate>& delegate); | 65 const rtc::scoped_refptr<AndroidVideoCapturerDelegate>& delegate); |
| 66 virtual ~AndroidVideoCapturer(); | 66 virtual ~AndroidVideoCapturer(); |
| 67 | 67 |
| 68 // Called from JNI when the capturer has been started. | 68 // Called from JNI when the capturer has been started. |
| 69 void OnCapturerStarted(bool success); | 69 void OnCapturerStarted(bool success); |
| 70 | 70 |
| 71 // Called from JNI when a new frame has been captured. | 71 // Called from JNI when a new frame has been captured. |
| 72 void OnIncomingFrame(void* video_frame, | 72 void OnIncomingFrame(void* video_frame, |
| 73 int length, | 73 int length, |
| 74 int width, |
| 75 int height, |
| 74 int rotation, | 76 int rotation, |
| 75 int64 time_stamp); | 77 int64 time_stamp); |
| 76 | 78 |
| 77 // Called from JNI to request a new video format. | 79 // Called from JNI to request a new video format. |
| 78 void OnOutputFormatRequest(int width, int height, int fps); | 80 void OnOutputFormatRequest(int width, int height, int fps); |
| 79 | 81 |
| 80 AndroidVideoCapturerDelegate* delegate() { return delegate_.get(); } | 82 AndroidVideoCapturerDelegate* delegate() { return delegate_.get(); } |
| 81 | 83 |
| 82 private: | 84 private: |
| 83 // cricket::VideoCapturer implementation. | 85 // cricket::VideoCapturer implementation. |
| (...skipping 13 matching lines...) Expand all Loading... |
| 97 | 99 |
| 98 class FrameFactory; | 100 class FrameFactory; |
| 99 FrameFactory* frame_factory_; // Owned by cricket::VideoCapturer. | 101 FrameFactory* frame_factory_; // Owned by cricket::VideoCapturer. |
| 100 | 102 |
| 101 cricket::CaptureState current_state_; | 103 cricket::CaptureState current_state_; |
| 102 }; | 104 }; |
| 103 | 105 |
| 104 } // namespace webrtc | 106 } // namespace webrtc |
| 105 | 107 |
| 106 #endif // TALK_APP_WEBRTC_ANDROIDVIDEOCAPTURER_H_ | 108 #endif // TALK_APP_WEBRTC_ANDROIDVIDEOCAPTURER_H_ |
| OLD | NEW |