| OLD | NEW |
| 1 /* | 1 /* |
| 2 * libjingle | 2 * libjingle |
| 3 * Copyright 2004 Google Inc. | 3 * Copyright 2004 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 virtual bool GetBestCaptureFormat(const VideoFormat& desired, | 70 virtual bool GetBestCaptureFormat(const VideoFormat& desired, |
| 71 VideoFormat* best_format); | 71 VideoFormat* best_format); |
| 72 virtual CaptureState Start(const VideoFormat& capture_format); | 72 virtual CaptureState Start(const VideoFormat& capture_format); |
| 73 virtual void Stop(); | 73 virtual void Stop(); |
| 74 virtual bool IsRunning(); | 74 virtual bool IsRunning(); |
| 75 virtual bool IsScreencast() const { return false; } | 75 virtual bool IsScreencast() const { return false; } |
| 76 virtual bool SetApplyRotation(bool enable); | 76 virtual bool SetApplyRotation(bool enable); |
| 77 | 77 |
| 78 protected: | 78 protected: |
| 79 // Override virtual methods of the parent class VideoCapturer. | 79 // Override virtual methods of the parent class VideoCapturer. |
| 80 virtual bool GetPreferredFourccs(std::vector<uint32>* fourccs); | 80 virtual bool GetPreferredFourccs(std::vector<uint32_t>* fourccs); |
| 81 | 81 |
| 82 private: | 82 private: |
| 83 // Callback when a frame is captured by camera. | 83 // Callback when a frame is captured by camera. |
| 84 virtual void OnIncomingCapturedFrame(const int32_t id, | 84 virtual void OnIncomingCapturedFrame(const int32_t id, |
| 85 const webrtc::VideoFrame& frame); | 85 const webrtc::VideoFrame& frame); |
| 86 virtual void OnCaptureDelayChanged(const int32_t id, | 86 virtual void OnCaptureDelayChanged(const int32_t id, |
| 87 const int32_t delay); | 87 const int32_t delay); |
| 88 | 88 |
| 89 // Used to signal captured frames on the same thread as invoked Start(). | 89 // Used to signal captured frames on the same thread as invoked Start(). |
| 90 // With WebRTC's current VideoCapturer implementations, this will mean a | 90 // With WebRTC's current VideoCapturer implementations, this will mean a |
| (...skipping 16 matching lines...) Expand all Loading... |
| 107 public: | 107 public: |
| 108 WebRtcCapturedFrame(const webrtc::VideoFrame& frame, | 108 WebRtcCapturedFrame(const webrtc::VideoFrame& frame, |
| 109 void* buffer, | 109 void* buffer, |
| 110 size_t length); | 110 size_t length); |
| 111 }; | 111 }; |
| 112 | 112 |
| 113 } // namespace cricket | 113 } // namespace cricket |
| 114 | 114 |
| 115 #endif // HAVE_WEBRTC_VIDEO | 115 #endif // HAVE_WEBRTC_VIDEO |
| 116 #endif // TALK_MEDIA_WEBRTCVIDEOCAPTURER_H_ | 116 #endif // TALK_MEDIA_WEBRTCVIDEOCAPTURER_H_ |
| OLD | NEW |