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 15 matching lines...) Expand all Loading... |
26 #include "ppapi/cpp/video_encoder.h" | 26 #include "ppapi/cpp/video_encoder.h" |
27 #include "ppapi/cpp/video_frame.h" | 27 #include "ppapi/cpp/video_frame.h" |
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 can be #define-d to | 30 // When compiling natively on Windows, PostMessage can be #define-d to |
31 // something else. | 31 // something else. |
32 #ifdef PostMessage | 32 #ifdef PostMessage |
33 #undef PostMessage | 33 #undef PostMessage |
34 #endif | 34 #endif |
35 | 35 |
36 // Use assert as a poor-man's CHECK, even in non-debug mode. | 36 // Use assert as a makeshift CHECK, even in non-debug mode. |
37 // Since <assert.h> redefines assert on every inclusion (it doesn't use | 37 // Since <assert.h> redefines assert on every inclusion (it doesn't use |
38 // include-guards), make sure this is the last file #include'd in this file. | 38 // include-guards), make sure this is the last file #include'd in this file. |
39 #undef NDEBUG | 39 #undef NDEBUG |
40 #include <assert.h> | 40 #include <assert.h> |
41 #include <stddef.h> | 41 #include <stddef.h> |
42 #include <stdint.h> | 42 #include <stdint.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)) |
(...skipping 562 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 |