Supervised user whitelists: Cleanup
[chromium-blink-merge.git] / media / cast / sender / fake_software_video_encoder.h
blob0b00e03b5e609de3637a90fc0cfbe6058c02b373
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef MEDIA_CAST_SENDER_FAKE_SOFTWARE_VIDEO_ENCODER_H_
6 #define MEDIA_CAST_SENDER_FAKE_SOFTWARE_VIDEO_ENCODER_H_
8 #include "media/cast/cast_config.h"
9 #include "media/cast/sender/software_video_encoder.h"
10 #include "ui/gfx/geometry/size.h"
12 namespace media {
13 namespace cast {
15 class FakeSoftwareVideoEncoder : public SoftwareVideoEncoder {
16 public:
17 FakeSoftwareVideoEncoder(const VideoSenderConfig& video_config);
18 ~FakeSoftwareVideoEncoder() override;
20 // SoftwareVideoEncoder implementations.
21 void Initialize() override;
22 void Encode(const scoped_refptr<media::VideoFrame>& video_frame,
23 const base::TimeTicks& reference_time,
24 EncodedFrame* encoded_frame) override;
25 void UpdateRates(uint32 new_bitrate) override;
26 void GenerateKeyFrame() override;
27 void LatestFrameIdToReference(uint32 frame_id) override;
29 private:
30 VideoSenderConfig video_config_;
31 gfx::Size last_frame_size_;
32 bool next_frame_is_key_;
33 uint32 frame_id_;
34 uint32 frame_id_to_reference_;
35 int frame_size_;
38 } // namespace cast
39 } // namespace media
41 #endif // MEDIA_CAST_SENDER_FAKE_SOFTWARE_VIDEO_ENCODER_H_