| OLD | NEW | 
|---|
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be | 
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. | 
| 4 | 4 | 
| 5 #include <math.h> | 5 #include <math.h> | 
| 6 #include <stdio.h> | 6 #include <stdio.h> | 
| 7 #include <string.h> | 7 #include <string.h> | 
| 8 | 8 | 
| 9 #include <algorithm> | 9 #include <algorithm> | 
| 10 #include <deque> | 10 #include <deque> | 
| (...skipping 17 matching lines...) Expand all  Loading... | 
| 28 #include "ppapi/utility/completion_callback_factory.h" | 28 #include "ppapi/utility/completion_callback_factory.h" | 
| 29 | 29 | 
| 30 // When compiling natively on Windows, PostMessage, min and max can be | 30 // When compiling natively on Windows, PostMessage, min and max can be | 
| 31 // #define-d to something else. | 31 // #define-d to something else. | 
| 32 #ifdef WIN32 | 32 #ifdef WIN32 | 
| 33 #undef min | 33 #undef min | 
| 34 #undef max | 34 #undef max | 
| 35 #undef PostMessage | 35 #undef PostMessage | 
| 36 #endif | 36 #endif | 
| 37 | 37 | 
| 38 // Use assert as a poor-man's CHECK, even in non-debug mode. | 38 // Use assert as a makeshift CHECK, even in non-debug mode. | 
| 39 // Since <assert.h> redefines assert on every inclusion (it doesn't use | 39 // Since <assert.h> redefines assert on every inclusion (it doesn't use | 
| 40 // include-guards), make sure this is the last file #include'd in this file. | 40 // include-guards), make sure this is the last file #include'd in this file. | 
| 41 #undef NDEBUG | 41 #undef NDEBUG | 
| 42 #include <assert.h> | 42 #include <assert.h> | 
| 43 | 43 | 
| 44 #define fourcc(a, b, c, d)                                               \ | 44 #define fourcc(a, b, c, d)                                               \ | 
| 45   (((uint32_t)(a) << 0) | ((uint32_t)(b) << 8) | ((uint32_t)(c) << 16) | \ | 45   (((uint32_t)(a) << 0) | ((uint32_t)(b) << 8) | ((uint32_t)(c) << 16) | \ | 
| 46    ((uint32_t)(d) << 24)) | 46    ((uint32_t)(d) << 24)) | 
| 47 | 47 | 
| 48 namespace { | 48 namespace { | 
| (...skipping 560 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 609 } | 609 } | 
| 610 | 610 | 
| 611 }  // anonymous namespace | 611 }  // anonymous namespace | 
| 612 | 612 | 
| 613 namespace pp { | 613 namespace pp { | 
| 614 // Factory function for your specialization of the Module object. | 614 // Factory function for your specialization of the Module object. | 
| 615 Module* CreateModule() { | 615 Module* CreateModule() { | 
| 616   return new VideoEncoderModule(); | 616   return new VideoEncoderModule(); | 
| 617 } | 617 } | 
| 618 }  // namespace pp | 618 }  // namespace pp | 
| OLD | NEW | 
|---|