#ifndef MEDIA_CAST_VIDEO_RECEIVER_VIDEO_DECODER_H_
#define MEDIA_CAST_VIDEO_RECEIVER_VIDEO_DECODER_H_
#include "base/memory/scoped_ptr.h"
#include "base/threading/non_thread_safe.h"
#include "media/cast/cast_config.h"
#include "media/cast/cast_receiver.h"
namespace media {
namespace cast {
class Vp8Decoder;
class VideoFrame;
class VideoDecoder : public base::NonThreadSafe {
public:
VideoDecoder(const VideoReceiverConfig& video_config,
scoped_refptr<CastEnvironment> cast_environment);
virtual ~VideoDecoder();
bool DecodeVideoFrame(const transport::EncodedVideoFrame* encoded_frame,
const base::TimeTicks render_time,
const VideoFrameDecodedCallback& frame_decoded_cb);
private:
transport::VideoCodec codec_;
scoped_ptr<Vp8Decoder> vp8_decoder_;
DISALLOW_COPY_AND_ASSIGN(VideoDecoder);
};
}
}
#endif