| 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 18 matching lines...) Expand all Loading... |
| 29 // Y-plane, plus a horizontal gradient in the U-plane and a vertical one in the | 29 // Y-plane, plus a horizontal gradient in the U-plane and a vertical one in the |
| 30 // V-plane. This makes for a nice mix of colours that is suited for both | 30 // V-plane. This makes for a nice mix of colours that is suited for both |
| 31 // catching visual errors and making sure e.g. YUV->RGB/BGR conversion looks | 31 // catching visual errors and making sure e.g. YUV->RGB/BGR conversion looks |
| 32 // the same on different platforms. | 32 // the same on different platforms. |
| 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 WEBRTC_MEDIA_BASE_YUVFRAMEGENERATOR_H_ |
| 40 #define TALK_MEDIA_BASE_YUVFRAMEGENERATOR_H_ | 40 #define WEBRTC_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 #include "webrtc/base/constructormagic.h" |
| 44 | 44 |
| 45 namespace cricket { | 45 namespace cricket { |
| 46 | 46 |
| 47 class YuvFrameGenerator { | 47 class YuvFrameGenerator { |
| 48 public: | 48 public: |
| 49 // 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|. |
| 50 // 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 |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 uint8_t* v_data_; | 101 uint8_t* v_data_; |
| 102 | 102 |
| 103 int barcode_start_x_; | 103 int barcode_start_x_; |
| 104 int barcode_start_y_; | 104 int barcode_start_y_; |
| 105 | 105 |
| 106 RTC_DISALLOW_COPY_AND_ASSIGN(YuvFrameGenerator); | 106 RTC_DISALLOW_COPY_AND_ASSIGN(YuvFrameGenerator); |
| 107 }; | 107 }; |
| 108 | 108 |
| 109 } // namespace cricket | 109 } // namespace cricket |
| 110 | 110 |
| 111 #endif // TALK_MEDIA_BASE_YUVFRAMEGENERATOR_H_ | 111 #endif // WEBRTC_MEDIA_BASE_YUVFRAMEGENERATOR_H_ |
| OLD | NEW |