Home | History | Annotate | Download | only in video
      1 /*
      2  *  Copyright (c) 2013 The WebRTC project authors. All Rights Reserved.
      3  *
      4  *  Use of this source code is governed by a BSD-style license
      5  *  that can be found in the LICENSE file in the root of the source
      6  *  tree. An additional intellectual property rights grant can be found
      7  *  in the file PATENTS.  All contributing project authors may
      8  *  be found in the AUTHORS file in the root of the source tree.
      9  */
     10 
     11 #ifndef WEBRTC_VIDEO_ENCODED_FRAME_CALLBACK_ADAPTER_H_
     12 #define WEBRTC_VIDEO_ENCODED_FRAME_CALLBACK_ADAPTER_H_
     13 
     14 #include "webrtc/modules/video_coding/include/video_codec_interface.h"
     15 #include "webrtc/frame_callback.h"
     16 
     17 namespace webrtc {
     18 namespace internal {
     19 
     20 class EncodedFrameCallbackAdapter : public EncodedImageCallback {
     21  public:
     22   explicit EncodedFrameCallbackAdapter(EncodedFrameObserver* observer);
     23   virtual ~EncodedFrameCallbackAdapter();
     24 
     25   virtual int32_t Encoded(const EncodedImage& encodedImage,
     26                           const CodecSpecificInfo* codecSpecificInfo,
     27                           const RTPFragmentationHeader* fragmentation);
     28 
     29  private:
     30   EncodedFrameObserver* observer_;
     31 };
     32 
     33 }  // namespace internal
     34 }  // namespace webrtc
     35 
     36 #endif  // WEBRTC_VIDEO_ENCODED_FRAME_CALLBACK_ADAPTER_H_
     37