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

Side by Side Diff: media/cast/sender/h264_vt_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_H264_VT_ENCODER_H_ 5 #ifndef MEDIA_CAST_SENDER_H264_VT_ENCODER_H_
6 #define MEDIA_CAST_SENDER_H264_VT_ENCODER_H_ 6 #define MEDIA_CAST_SENDER_H264_VT_ENCODER_H_
7 7
8 #include "base/mac/scoped_cftyperef.h" 8 #include "base/mac/scoped_cftyperef.h"
9 #include "base/power_monitor/power_observer.h" 9 #include "base/power_monitor/power_observer.h"
10 #include "base/threading/thread_checker.h" 10 #include "base/threading/thread_checker.h"
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 // Thread checker to enforce that this object is used on a specific thread. 105 // Thread checker to enforce that this object is used on a specific thread.
106 base::ThreadChecker thread_checker_; 106 base::ThreadChecker thread_checker_;
107 107
108 // The compression session. 108 // The compression session.
109 base::ScopedCFTypeRef<VTCompressionSessionRef> compression_session_; 109 base::ScopedCFTypeRef<VTCompressionSessionRef> compression_session_;
110 110
111 // Video frame factory tied to the encoder. 111 // Video frame factory tied to the encoder.
112 scoped_refptr<VideoFrameFactoryImpl> video_frame_factory_; 112 scoped_refptr<VideoFrameFactoryImpl> video_frame_factory_;
113 113
114 // The ID of the last frame that was emitted. 114 // The ID of the last frame that was emitted.
115 uint32 last_frame_id_; 115 uint32_t last_frame_id_;
116 116
117 // Force next frame to be a keyframe. 117 // Force next frame to be a keyframe.
118 bool encode_next_frame_as_keyframe_; 118 bool encode_next_frame_as_keyframe_;
119 119
120 // Power suspension state. 120 // Power suspension state.
121 bool power_suspended_; 121 bool power_suspended_;
122 122
123 // NOTE: Weak pointers must be invalidated before all other member variables. 123 // NOTE: Weak pointers must be invalidated before all other member variables.
124 base::WeakPtrFactory<H264VideoToolboxEncoder> weak_factory_; 124 base::WeakPtrFactory<H264VideoToolboxEncoder> weak_factory_;
125 125
126 DISALLOW_COPY_AND_ASSIGN(H264VideoToolboxEncoder); 126 DISALLOW_COPY_AND_ASSIGN(H264VideoToolboxEncoder);
127 }; 127 };
128 128
129 } // namespace cast 129 } // namespace cast
130 } // namespace media 130 } // namespace media
131 131
132 #endif // MEDIA_CAST_SENDER_H264_VT_ENCODER_H_ 132 #endif // MEDIA_CAST_SENDER_H264_VT_ENCODER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698