OLD | NEW |
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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 | 63 |
64 void Init(); | 64 void Init(); |
65 // Override virtual methods of parent class VideoCapturer. | 65 // Override virtual methods of parent class VideoCapturer. |
66 virtual CaptureState Start(const VideoFormat& capture_format); | 66 virtual CaptureState Start(const VideoFormat& capture_format); |
67 virtual void Stop(); | 67 virtual void Stop(); |
68 virtual bool IsRunning(); | 68 virtual bool IsRunning(); |
69 virtual bool IsScreencast() const { return false; } | 69 virtual bool IsScreencast() const { return false; } |
70 | 70 |
71 protected: | 71 protected: |
72 // Override virtual methods of parent class VideoCapturer. | 72 // Override virtual methods of parent class VideoCapturer. |
73 virtual bool GetPreferredFourccs(std::vector<uint32>* fourccs); | 73 virtual bool GetPreferredFourccs(std::vector<uint32_t>* fourccs); |
74 | 74 |
75 // Read a frame and determine how long to wait for the next frame. | 75 // Read a frame and determine how long to wait for the next frame. |
76 void ReadFrame(bool first_frame); | 76 void ReadFrame(bool first_frame); |
77 | 77 |
78 private: | 78 private: |
79 class YuvFramesThread; // Forward declaration, defined in .cc. | 79 class YuvFramesThread; // Forward declaration, defined in .cc. |
80 | 80 |
81 YuvFrameGenerator* frame_generator_; | 81 YuvFrameGenerator* frame_generator_; |
82 CapturedFrame captured_frame_; | 82 CapturedFrame captured_frame_; |
83 YuvFramesThread* frames_generator_thread; | 83 YuvFramesThread* frames_generator_thread; |
84 int width_; | 84 int width_; |
85 int height_; | 85 int height_; |
86 uint32 frame_data_size_; | 86 uint32_t frame_data_size_; |
87 uint32 frame_index_; | 87 uint32_t frame_index_; |
88 | 88 |
89 int64 barcode_reference_timestamp_millis_; | 89 int64_t barcode_reference_timestamp_millis_; |
90 int32 barcode_interval_; | 90 int32_t barcode_interval_; |
91 int32 GetBarcodeValue(); | 91 int32_t GetBarcodeValue(); |
92 | 92 |
93 RTC_DISALLOW_COPY_AND_ASSIGN(YuvFramesCapturer); | 93 RTC_DISALLOW_COPY_AND_ASSIGN(YuvFramesCapturer); |
94 }; | 94 }; |
95 | 95 |
96 } // namespace cricket | 96 } // namespace cricket |
97 | 97 |
98 #endif // TALK_MEDIA_DEVICES_YUVFRAMESCAPTURER_H_ | 98 #endif // TALK_MEDIA_DEVICES_YUVFRAMESCAPTURER_H_ |
OLD | NEW |