Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(329)

Side by Side Diff: media/cast/video_sender/fake_software_video_encoder.h

Issue 288103002: [Cast] EncodedAudioFrame+EncodedVideoFrame+reference_time --> EncodedFrame (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MEDIA_CAST_VIDEO_SENDER_FAKE_SOFTWARE_VIDEO_ENCODER_H_ 5 #ifndef MEDIA_CAST_VIDEO_SENDER_FAKE_SOFTWARE_VIDEO_ENCODER_H_
6 #define MEDIA_CAST_VIDEO_SENDER_FAKE_SOFTWARE_VIDEO_ENCODER_H_ 6 #define MEDIA_CAST_VIDEO_SENDER_FAKE_SOFTWARE_VIDEO_ENCODER_H_
7 7
8 #include "media/cast/video_sender/software_video_encoder.h" 8 #include "media/cast/video_sender/software_video_encoder.h"
9 9
10 namespace media { 10 namespace media {
11 namespace cast { 11 namespace cast {
12 12
13 class FakeSoftwareVideoEncoder : public SoftwareVideoEncoder { 13 class FakeSoftwareVideoEncoder : public SoftwareVideoEncoder {
14 public: 14 public:
15 FakeSoftwareVideoEncoder(); 15 FakeSoftwareVideoEncoder();
16 virtual ~FakeSoftwareVideoEncoder(); 16 virtual ~FakeSoftwareVideoEncoder();
17 17
18 // SoftwareVideoEncoder implementations. 18 // SoftwareVideoEncoder implementations.
19 virtual void Initialize() OVERRIDE; 19 virtual void Initialize() OVERRIDE;
20 virtual bool Encode(const scoped_refptr<media::VideoFrame>& video_frame, 20 virtual bool Encode(const scoped_refptr<media::VideoFrame>& video_frame,
21 transport::EncodedVideoFrame* encoded_image) OVERRIDE; 21 transport::EncodedFrame* encoded_image) OVERRIDE;
22 virtual void UpdateRates(uint32 new_bitrate) OVERRIDE; 22 virtual void UpdateRates(uint32 new_bitrate) OVERRIDE;
23 virtual void GenerateKeyFrame() OVERRIDE; 23 virtual void GenerateKeyFrame() OVERRIDE;
24 virtual void LatestFrameIdToReference(uint32 frame_id) OVERRIDE; 24 virtual void LatestFrameIdToReference(uint32 frame_id) OVERRIDE;
25 25
26 private: 26 private:
27 bool next_frame_is_key_; 27 bool next_frame_is_key_;
28 uint32 frame_id_; 28 uint32 frame_id_;
29 uint32 frame_id_to_reference_; 29 uint32 frame_id_to_reference_;
30 }; 30 };
31 31
32 } // namespace cast 32 } // namespace cast
33 } // namespace media 33 } // namespace media
34 34
35 #endif // MEDIA_CAST_VIDEO_SENDER_FAKE_SOFTWARE_VIDEO_ENCODER_H_ 35 #endif // MEDIA_CAST_VIDEO_SENDER_FAKE_SOFTWARE_VIDEO_ENCODER_H_
OLDNEW
« no previous file with comments | « media/cast/video_sender/external_video_encoder_unittest.cc ('k') | media/cast/video_sender/fake_software_video_encoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698