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 22 matching lines...) Expand all Loading... |
33 // There is also a solid box bouncing around in the Y-plane, and two differently | 33 // There is also a solid box bouncing around in the Y-plane, and two differently |
34 // coloured lines bouncing horizontally and vertically in the U and V plane. | 34 // coloured lines bouncing horizontally and vertically in the U and V plane. |
35 // This helps illustrating how the frame boundary goes, and can aid as a quite | 35 // This helps illustrating how the frame boundary goes, and can aid as a quite |
36 // handy visual help for noticing e.g. packet loss if the frames are encoded | 36 // handy visual help for noticing e.g. packet loss if the frames are encoded |
37 // and sent over the network. | 37 // and sent over the network. |
38 | 38 |
39 #ifndef TALK_MEDIA_BASE_YUVFRAMEGENERATOR_H_ | 39 #ifndef TALK_MEDIA_BASE_YUVFRAMEGENERATOR_H_ |
40 #define TALK_MEDIA_BASE_YUVFRAMEGENERATOR_H_ | 40 #define TALK_MEDIA_BASE_YUVFRAMEGENERATOR_H_ |
41 | 41 |
42 #include "webrtc/base/basictypes.h" | 42 #include "webrtc/base/basictypes.h" |
| 43 #include "webrtc/base/constructormagic.h" |
43 | 44 |
44 namespace cricket { | 45 namespace cricket { |
45 | 46 |
46 class YuvFrameGenerator { | 47 class YuvFrameGenerator { |
47 public: | 48 public: |
48 // Constructs a frame-generator that produces frames of size |width|x|height|. | 49 // Constructs a frame-generator that produces frames of size |width|x|height|. |
49 // If |enable_barcode| is specified, barcodes can be included in the frames | 50 // If |enable_barcode| is specified, barcodes can be included in the frames |
50 // when calling |GenerateNextFrame(uint8*, uint32)|. If |enable_barcode| is | 51 // when calling |GenerateNextFrame(uint8*, uint32)|. If |enable_barcode| is |
51 // |true| then |width|x|height| should be at least 160x100; otherwise this | 52 // |true| then |width|x|height| should be at least 160x100; otherwise this |
52 // constructor will abort. | 53 // constructor will abort. |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 | 97 |
97 int barcode_start_x_; | 98 int barcode_start_x_; |
98 int barcode_start_y_; | 99 int barcode_start_y_; |
99 | 100 |
100 RTC_DISALLOW_COPY_AND_ASSIGN(YuvFrameGenerator); | 101 RTC_DISALLOW_COPY_AND_ASSIGN(YuvFrameGenerator); |
101 }; | 102 }; |
102 | 103 |
103 } // namespace cricket | 104 } // namespace cricket |
104 | 105 |
105 #endif // TALK_MEDIA_BASE_YUVFRAMEGENERATOR_H_ | 106 #endif // TALK_MEDIA_BASE_YUVFRAMEGENERATOR_H_ |
OLD | NEW |