OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |