Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(104)

Side by Side Diff: talk/app/webrtc/androidvideocapturer.h

Issue 1178703009: VideoCapturerAndroid: Add function to change capture format while camera is running (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 AndroidVideoCapturerDelegate* delegate() { return delegate_.get(); } 79 AndroidVideoCapturerDelegate* delegate() { return delegate_.get(); }
78 80
79 private: 81 private:
80 // cricket::VideoCapturer implementation. 82 // cricket::VideoCapturer implementation.
81 // Video frames will be delivered using 83 // Video frames will be delivered using
82 // cricket::VideoCapturer::SignalFrameCaptured on the thread that calls Start. 84 // cricket::VideoCapturer::SignalFrameCaptured on the thread that calls Start.
83 cricket::CaptureState Start( 85 cricket::CaptureState Start(
(...skipping 10 matching lines...) Expand all
94 96
95 class FrameFactory; 97 class FrameFactory;
96 FrameFactory* frame_factory_; // Owned by cricket::VideoCapturer. 98 FrameFactory* frame_factory_; // Owned by cricket::VideoCapturer.
97 99
98 cricket::CaptureState current_state_; 100 cricket::CaptureState current_state_;
99 }; 101 };
100 102
101 } // namespace webrtc 103 } // namespace webrtc
102 104
103 #endif // TALK_APP_WEBRTC_ANDROIDVIDEOCAPTURER_H_ 105 #endif // TALK_APP_WEBRTC_ANDROIDVIDEOCAPTURER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698