12a0553609b5b6d1d4dce0366b334dc9ef8aa4d65buildbot@webrtc.org// libjingle 22a0553609b5b6d1d4dce0366b334dc9ef8aa4d65buildbot@webrtc.org// Copyright 2014 Google Inc. 32a0553609b5b6d1d4dce0366b334dc9ef8aa4d65buildbot@webrtc.org// 42a0553609b5b6d1d4dce0366b334dc9ef8aa4d65buildbot@webrtc.org// Redistribution and use in source and binary forms, with or without 52a0553609b5b6d1d4dce0366b334dc9ef8aa4d65buildbot@webrtc.org// modification, are permitted provided that the following conditions are met: 62a0553609b5b6d1d4dce0366b334dc9ef8aa4d65buildbot@webrtc.org// 72a0553609b5b6d1d4dce0366b334dc9ef8aa4d65buildbot@webrtc.org// 1. Redistributions of source code must retain the above copyright notice, 82a0553609b5b6d1d4dce0366b334dc9ef8aa4d65buildbot@webrtc.org// this list of conditions and the following disclaimer. 92a0553609b5b6d1d4dce0366b334dc9ef8aa4d65buildbot@webrtc.org// 2. Redistributions in binary form must reproduce the above copyright notice, 102a0553609b5b6d1d4dce0366b334dc9ef8aa4d65buildbot@webrtc.org// this list of conditions and the following disclaimer in the documentation 112a0553609b5b6d1d4dce0366b334dc9ef8aa4d65buildbot@webrtc.org// and/or other materials provided with the distribution. 122a0553609b5b6d1d4dce0366b334dc9ef8aa4d65buildbot@webrtc.org// 3. The name of the author may not be used to endorse or promote products 132a0553609b5b6d1d4dce0366b334dc9ef8aa4d65buildbot@webrtc.org// derived from this software without specific prior written permission. 142a0553609b5b6d1d4dce0366b334dc9ef8aa4d65buildbot@webrtc.org// 152a0553609b5b6d1d4dce0366b334dc9ef8aa4d65buildbot@webrtc.org// THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED 162a0553609b5b6d1d4dce0366b334dc9ef8aa4d65buildbot@webrtc.org// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 172a0553609b5b6d1d4dce0366b334dc9ef8aa4d65buildbot@webrtc.org// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO 182a0553609b5b6d1d4dce0366b334dc9ef8aa4d65buildbot@webrtc.org// EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 192a0553609b5b6d1d4dce0366b334dc9ef8aa4d65buildbot@webrtc.org// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 202a0553609b5b6d1d4dce0366b334dc9ef8aa4d65buildbot@webrtc.org// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 212a0553609b5b6d1d4dce0366b334dc9ef8aa4d65buildbot@webrtc.org// OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 222a0553609b5b6d1d4dce0366b334dc9ef8aa4d65buildbot@webrtc.org// WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 232a0553609b5b6d1d4dce0366b334dc9ef8aa4d65buildbot@webrtc.org// OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 242a0553609b5b6d1d4dce0366b334dc9ef8aa4d65buildbot@webrtc.org// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 252a0553609b5b6d1d4dce0366b334dc9ef8aa4d65buildbot@webrtc.org// 262a0553609b5b6d1d4dce0366b334dc9ef8aa4d65buildbot@webrtc.org 272a0553609b5b6d1d4dce0366b334dc9ef8aa4d65buildbot@webrtc.org#ifndef TALK_MEDIA_WEBRTC_WEBRTCVIDEOFRAMEFACTORY_H_ 282a0553609b5b6d1d4dce0366b334dc9ef8aa4d65buildbot@webrtc.org#define TALK_MEDIA_WEBRTC_WEBRTCVIDEOFRAMEFACTORY_H_ 292a0553609b5b6d1d4dce0366b334dc9ef8aa4d65buildbot@webrtc.org 302a0553609b5b6d1d4dce0366b334dc9ef8aa4d65buildbot@webrtc.org#include "talk/media/base/videoframefactory.h" 312a0553609b5b6d1d4dce0366b334dc9ef8aa4d65buildbot@webrtc.org 322a0553609b5b6d1d4dce0366b334dc9ef8aa4d65buildbot@webrtc.orgnamespace cricket { 332a0553609b5b6d1d4dce0366b334dc9ef8aa4d65buildbot@webrtc.org 342a0553609b5b6d1d4dce0366b334dc9ef8aa4d65buildbot@webrtc.orgstruct CapturedFrame; 352a0553609b5b6d1d4dce0366b334dc9ef8aa4d65buildbot@webrtc.org 362a0553609b5b6d1d4dce0366b334dc9ef8aa4d65buildbot@webrtc.org// Creates instances of cricket::WebRtcVideoFrame. 372a0553609b5b6d1d4dce0366b334dc9ef8aa4d65buildbot@webrtc.orgclass WebRtcVideoFrameFactory : public VideoFrameFactory { 382a0553609b5b6d1d4dce0366b334dc9ef8aa4d65buildbot@webrtc.org public: 392a0553609b5b6d1d4dce0366b334dc9ef8aa4d65buildbot@webrtc.org virtual VideoFrame* CreateAliasedFrame( 402a0553609b5b6d1d4dce0366b334dc9ef8aa4d65buildbot@webrtc.org const CapturedFrame* aliased_frame, int width, int height) const OVERRIDE; 412a0553609b5b6d1d4dce0366b334dc9ef8aa4d65buildbot@webrtc.org}; 422a0553609b5b6d1d4dce0366b334dc9ef8aa4d65buildbot@webrtc.org 432a0553609b5b6d1d4dce0366b334dc9ef8aa4d65buildbot@webrtc.org} // namespace cricket 442a0553609b5b6d1d4dce0366b334dc9ef8aa4d65buildbot@webrtc.org 452a0553609b5b6d1d4dce0366b334dc9ef8aa4d65buildbot@webrtc.org#endif // TALK_MEDIA_WEBRTC_WEBRTCVIDEOFRAMEFACTORY_H_ 46