OLD | NEW |
1 /* | 1 /* |
2 * libjingle | 2 * libjingle |
3 * Copyright 2011 Google Inc. | 3 * Copyright 2011 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 26 matching lines...) Expand all Loading... |
37 #include "webrtc/base/bind.h" | 37 #include "webrtc/base/bind.h" |
38 #include "webrtc/base/checks.h" | 38 #include "webrtc/base/checks.h" |
39 #include "webrtc/base/criticalsection.h" | 39 #include "webrtc/base/criticalsection.h" |
40 #include "webrtc/base/logging.h" | 40 #include "webrtc/base/logging.h" |
41 #include "webrtc/base/safe_conversions.h" | 41 #include "webrtc/base/safe_conversions.h" |
42 #include "webrtc/base/thread.h" | 42 #include "webrtc/base/thread.h" |
43 #include "webrtc/base/timeutils.h" | 43 #include "webrtc/base/timeutils.h" |
44 | 44 |
45 #include "webrtc/base/win32.h" // Need this to #include the impl files. | 45 #include "webrtc/base/win32.h" // Need this to #include the impl files. |
46 #include "webrtc/modules/video_capture/include/video_capture_factory.h" | 46 #include "webrtc/modules/video_capture/include/video_capture_factory.h" |
47 #include "webrtc/system_wrappers/interface/field_trial.h" | 47 #include "webrtc/system_wrappers/include/field_trial.h" |
48 | 48 |
49 namespace cricket { | 49 namespace cricket { |
50 | 50 |
51 struct kVideoFourCCEntry { | 51 struct kVideoFourCCEntry { |
52 uint32_t fourcc; | 52 uint32_t fourcc; |
53 webrtc::RawVideoType webrtc_type; | 53 webrtc::RawVideoType webrtc_type; |
54 }; | 54 }; |
55 | 55 |
56 // This indicates our format preferences and defines a mapping between | 56 // This indicates our format preferences and defines a mapping between |
57 // webrtc::RawVideoType (from video_capture_defines.h) to our FOURCCs. | 57 // webrtc::RawVideoType (from video_capture_defines.h) to our FOURCCs. |
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
437 // Convert units from VideoFrame RenderTimeMs to CapturedFrame (nanoseconds). | 437 // Convert units from VideoFrame RenderTimeMs to CapturedFrame (nanoseconds). |
438 time_stamp = sample.render_time_ms() * rtc::kNumNanosecsPerMillisec; | 438 time_stamp = sample.render_time_ms() * rtc::kNumNanosecsPerMillisec; |
439 data_size = rtc::checked_cast<uint32_t>(length); | 439 data_size = rtc::checked_cast<uint32_t>(length); |
440 data = buffer; | 440 data = buffer; |
441 rotation = sample.rotation(); | 441 rotation = sample.rotation(); |
442 } | 442 } |
443 | 443 |
444 } // namespace cricket | 444 } // namespace cricket |
445 | 445 |
446 #endif // HAVE_WEBRTC_VIDEO | 446 #endif // HAVE_WEBRTC_VIDEO |
OLD | NEW |