#ifndef MEDIA_CAST_ENCODING_SOFTWARE_VIDEO_ENCODER_H_
#define MEDIA_CAST_ENCODING_SOFTWARE_VIDEO_ENCODER_H_
#include <stdint.h>
#include "base/memory/scoped_refptr.h"
namespace base {
class TimeTicks;
}
namespace media {
class VideoFrame;
}
namespace media {
namespace cast {
struct SenderEncodedFrame;
class SoftwareVideoEncoder {
public:
virtual ~SoftwareVideoEncoder() {}
virtual void Initialize() = 0;
virtual void Encode(scoped_refptr<media::VideoFrame> video_frame,
base::TimeTicks reference_time,
SenderEncodedFrame* encoded_frame) = 0;
virtual void UpdateRates(uint32_t new_bitrate) = 0;
virtual void GenerateKeyFrame() = 0;
};
}
}
#endif