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

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

Issue 1534273002: Switch to standard integer types in media/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more Created 5 years 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
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_SENDER_SOFTWARE_VIDEO_ENCODER_H_ 5 #ifndef MEDIA_CAST_SENDER_SOFTWARE_VIDEO_ENCODER_H_
6 #define MEDIA_CAST_SENDER_SOFTWARE_VIDEO_ENCODER_H_ 6 #define MEDIA_CAST_SENDER_SOFTWARE_VIDEO_ENCODER_H_
7 7
8 #include "base/basictypes.h"
9 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
10 #include "media/cast/sender/sender_encoded_frame.h" 9 #include "media/cast/sender/sender_encoded_frame.h"
11 10
12 namespace base { 11 namespace base {
13 class TimeTicks; 12 class TimeTicks;
14 } 13 }
15 14
16 namespace media { 15 namespace media {
17 class VideoFrame; 16 class VideoFrame;
18 } 17 }
19 18
20 namespace media { 19 namespace media {
21 namespace cast { 20 namespace cast {
22 21
23 class SoftwareVideoEncoder { 22 class SoftwareVideoEncoder {
24 public: 23 public:
25 virtual ~SoftwareVideoEncoder() {} 24 virtual ~SoftwareVideoEncoder() {}
26 25
27 // Initialize the encoder before Encode() can be called. This method 26 // Initialize the encoder before Encode() can be called. This method
28 // must be called on the thread that Encode() is called. 27 // must be called on the thread that Encode() is called.
29 virtual void Initialize() = 0; 28 virtual void Initialize() = 0;
30 29
31 // Encode a raw image (as a part of a video stream). 30 // Encode a raw image (as a part of a video stream).
32 virtual void Encode(const scoped_refptr<media::VideoFrame>& video_frame, 31 virtual void Encode(const scoped_refptr<media::VideoFrame>& video_frame,
33 const base::TimeTicks& reference_time, 32 const base::TimeTicks& reference_time,
34 SenderEncodedFrame* encoded_frame) = 0; 33 SenderEncodedFrame* encoded_frame) = 0;
35 34
36 // Update the encoder with a new target bit rate. 35 // Update the encoder with a new target bit rate.
37 virtual void UpdateRates(uint32 new_bitrate) = 0; 36 virtual void UpdateRates(uint32_t new_bitrate) = 0;
38 37
39 // Set the next frame to be a key frame. 38 // Set the next frame to be a key frame.
40 virtual void GenerateKeyFrame() = 0; 39 virtual void GenerateKeyFrame() = 0;
41 }; 40 };
42 41
43 } // namespace cast 42 } // namespace cast
44 } // namespace media 43 } // namespace media
45 44
46 #endif // MEDIA_CAST_SENDER_SOFTWARE_VIDEO_ENCODER_H_ 45 #endif // MEDIA_CAST_SENDER_SOFTWARE_VIDEO_ENCODER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698