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

Side by Side Diff: media/cast/sender/software_video_encoder.h

Issue 388663003: Cast: Reshuffle files under media/cast (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: missing includes Created 6 years, 5 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
« no previous file with comments | « media/cast/sender/rtp_timestamp_helper.cc ('k') | media/cast/sender/video_encoder.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_SOFTWARE_VIDEO_ENCODER_H_ 5 #ifndef MEDIA_CAST_SENDER_SOFTWARE_VIDEO_ENCODER_H_
6 #define MEDIA_CAST_VIDEO_SENDER_SOFTWARE_VIDEO_ENCODER_H_ 6 #define MEDIA_CAST_SENDER_SOFTWARE_VIDEO_ENCODER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 10
11 namespace media { 11 namespace media {
12 class VideoFrame; 12 class VideoFrame;
13 } 13 }
14 14
15 namespace media { 15 namespace media {
16 namespace cast { 16 namespace cast {
17 namespace transport {
18 struct EncodedFrame; 17 struct EncodedFrame;
19 } // namespace transport
20 18
21 class SoftwareVideoEncoder { 19 class SoftwareVideoEncoder {
22 public: 20 public:
23 virtual ~SoftwareVideoEncoder() {} 21 virtual ~SoftwareVideoEncoder() {}
24 22
25 // Initialize the encoder before Encode() can be called. This method 23 // Initialize the encoder before Encode() can be called. This method
26 // must be called on the thread that Encode() is called. 24 // must be called on the thread that Encode() is called.
27 virtual void Initialize() = 0; 25 virtual void Initialize() = 0;
28 26
29 // Encode a raw image (as a part of a video stream). 27 // Encode a raw image (as a part of a video stream).
30 virtual bool Encode(const scoped_refptr<media::VideoFrame>& video_frame, 28 virtual bool Encode(const scoped_refptr<media::VideoFrame>& video_frame,
31 transport::EncodedFrame* encoded_image) = 0; 29 EncodedFrame* encoded_image) = 0;
32 30
33 // Update the encoder with a new target bit rate. 31 // Update the encoder with a new target bit rate.
34 virtual void UpdateRates(uint32 new_bitrate) = 0; 32 virtual void UpdateRates(uint32 new_bitrate) = 0;
35 33
36 // Set the next frame to be a key frame. 34 // Set the next frame to be a key frame.
37 virtual void GenerateKeyFrame() = 0; 35 virtual void GenerateKeyFrame() = 0;
38 36
39 // Set the last frame to reference. 37 // Set the last frame to reference.
40 virtual void LatestFrameIdToReference(uint32 frame_id) = 0; 38 virtual void LatestFrameIdToReference(uint32 frame_id) = 0;
41 }; 39 };
42 40
43 } // namespace cast 41 } // namespace cast
44 } // namespace media 42 } // namespace media
45 43
46 #endif // MEDIA_CAST_VIDEO_SENDER_SOFTWARE_VIDEO_ENCODER_H_ 44 #endif // MEDIA_CAST_SENDER_SOFTWARE_VIDEO_ENCODER_H_
OLDNEW
« no previous file with comments | « media/cast/sender/rtp_timestamp_helper.cc ('k') | media/cast/sender/video_encoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698