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

Side by Side Diff: talk/media/base/videocapturer.h

Issue 1345433002: Add RTC_ prefix to contructormagic macros. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Formatting fix. Created 5 years, 3 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
« no previous file with comments | « talk/media/base/videoadapter.h ('k') | talk/media/base/yuvframegenerator.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 /* 1 /*
2 * libjingle 2 * libjingle
3 * Copyright 2010 Google Inc. 3 * Copyright 2010 Google Inc.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met: 6 * modification, are permitted provided that the following conditions are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright notice, 8 * 1. Redistributions of source code must retain the above copyright notice,
9 * this list of conditions and the following disclaimer. 9 * this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright notice, 10 * 2. Redistributions in binary form must reproduce the above copyright notice,
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 uint32 data_size; // number of bytes of the frame data 97 uint32 data_size; // number of bytes of the frame data
98 98
99 // TODO(guoweis): This can't be converted to VideoRotation yet as it's 99 // TODO(guoweis): This can't be converted to VideoRotation yet as it's
100 // used by chrome now. 100 // used by chrome now.
101 int rotation; // rotation in degrees of the frame (0, 90, 180, 270) 101 int rotation; // rotation in degrees of the frame (0, 90, 180, 270)
102 102
103 void* data; // pointer to the frame data. This object allocates the 103 void* data; // pointer to the frame data. This object allocates the
104 // memory or points to an existing memory. 104 // memory or points to an existing memory.
105 105
106 private: 106 private:
107 DISALLOW_COPY_AND_ASSIGN(CapturedFrame); 107 RTC_DISALLOW_COPY_AND_ASSIGN(CapturedFrame);
108 }; 108 };
109 109
110 // VideoCapturer is an abstract class that defines the interfaces for video 110 // VideoCapturer is an abstract class that defines the interfaces for video
111 // capturing. The subclasses implement the video capturer for various types of 111 // capturing. The subclasses implement the video capturer for various types of
112 // capturers and various platforms. 112 // capturers and various platforms.
113 // 113 //
114 // The captured frames may need to be adapted (for example, cropping). 114 // The captured frames may need to be adapted (for example, cropping).
115 // Video adaptation is built into and enabled by default. After a frame has 115 // Video adaptation is built into and enabled by default. After a frame has
116 // been captured from the device, it is sent to the video adapter, then out to 116 // been captured from the device, it is sent to the video adapter, then out to
117 // the encoder. 117 // the encoder.
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 int adapt_frame_drops_; 390 int adapt_frame_drops_;
391 rtc::RollingAccumulator<int> adapt_frame_drops_data_; 391 rtc::RollingAccumulator<int> adapt_frame_drops_data_;
392 double previous_frame_time_; 392 double previous_frame_time_;
393 rtc::RollingAccumulator<double> frame_time_data_; 393 rtc::RollingAccumulator<double> frame_time_data_;
394 // The captured frame format before potential adapation. 394 // The captured frame format before potential adapation.
395 VideoFormat last_captured_frame_format_; 395 VideoFormat last_captured_frame_format_;
396 396
397 // Whether capturer should apply rotation to the frame before signaling it. 397 // Whether capturer should apply rotation to the frame before signaling it.
398 bool apply_rotation_; 398 bool apply_rotation_;
399 399
400 DISALLOW_COPY_AND_ASSIGN(VideoCapturer); 400 RTC_DISALLOW_COPY_AND_ASSIGN(VideoCapturer);
401 }; 401 };
402 402
403 } // namespace cricket 403 } // namespace cricket
404 404
405 #endif // TALK_MEDIA_BASE_VIDEOCAPTURER_H_ 405 #endif // TALK_MEDIA_BASE_VIDEOCAPTURER_H_
OLDNEW
« no previous file with comments | « talk/media/base/videoadapter.h ('k') | talk/media/base/yuvframegenerator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698