Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(64)

Side by Side Diff: ppapi/examples/video_encode/video_encode.cc

Issue 1548813002: Switch to standard integer types in ppapi/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixes Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 20 matching lines...) Expand all
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 poor-man's 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>
42 #include <stdint.h>
41 43
42 #define fourcc(a, b, c, d) \ 44 #define fourcc(a, b, c, d) \
43 (((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) | \
44 ((uint32_t)(d) << 24)) 46 ((uint32_t)(d) << 24))
45 47
46 namespace { 48 namespace {
47 49
48 double clamp(double min, double max, double value) { 50 double clamp(double min, double max, double value) {
49 return std::max(std::min(value, max), min); 51 return std::max(std::min(value, max), min);
50 } 52 }
(...skipping 556 matching lines...) Expand 10 before | Expand all | Expand 10 after
607 } 609 }
608 610
609 } // anonymous namespace 611 } // anonymous namespace
610 612
611 namespace pp { 613 namespace pp {
612 // Factory function for your specialization of the Module object. 614 // Factory function for your specialization of the Module object.
613 Module* CreateModule() { 615 Module* CreateModule() {
614 return new VideoEncoderModule(); 616 return new VideoEncoderModule();
615 } 617 }
616 } // namespace pp 618 } // namespace pp
OLDNEW
« no previous file with comments | « ppapi/examples/video_effects/video_effects.cc ('k') | ppapi/generators/test_thunk/simple_thunk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698