| OLD | NEW |
| 1 /* | 1 /* |
| 2 * libjingle | 2 * libjingle |
| 3 * Copyright 2012 Google Inc. | 3 * Copyright 2012 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 RemoveSink( | 64 RemoveSink( |
| 65 static_cast<rtc::VideoSinkInterface<cricket::VideoFrame>*>(output)); | 65 static_cast<rtc::VideoSinkInterface<cricket::VideoFrame>*>(output)); |
| 66 } | 66 } |
| 67 | 67 |
| 68 // Adds |output| to the source to receive frames. | 68 // Adds |output| to the source to receive frames. |
| 69 // TODO(nisse): Delete dummy default implementation. | 69 // TODO(nisse): Delete dummy default implementation. |
| 70 virtual void AddSink(rtc::VideoSinkInterface<cricket::VideoFrame>* output){}; | 70 virtual void AddSink(rtc::VideoSinkInterface<cricket::VideoFrame>* output){}; |
| 71 virtual void RemoveSink( | 71 virtual void RemoveSink( |
| 72 rtc::VideoSinkInterface<cricket::VideoFrame>* output){}; | 72 rtc::VideoSinkInterface<cricket::VideoFrame>* output){}; |
| 73 virtual const cricket::VideoOptions* options() const = 0; | 73 virtual const cricket::VideoOptions* options() const = 0; |
| 74 virtual cricket::VideoRenderer* FrameInput() = 0; | |
| 75 | 74 |
| 76 protected: | 75 protected: |
| 77 virtual ~VideoSourceInterface() {} | 76 virtual ~VideoSourceInterface() {} |
| 78 }; | 77 }; |
| 79 | 78 |
| 80 } // namespace webrtc | 79 } // namespace webrtc |
| 81 | 80 |
| 82 #endif // TALK_APP_WEBRTC_VIDEOSOURCEINTERFACE_H_ | 81 #endif // TALK_APP_WEBRTC_VIDEOSOURCEINTERFACE_H_ |
| OLD | NEW |