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

Side by Side Diff: media/base/android/ndk_media_codec_wrapper.cc

Issue 1542013004: Switch to standard integer types in media/, take 2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more stddef 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 // The file defines the symbols from NDKMediaCodec that android is using. It 5 // The file defines the symbols from NDKMediaCodec that android is using. It
6 // then loads the library dynamically on first use. 6 // then loads the library dynamically on first use.
7 7
8 #include <media/NdkMediaCodec.h> 8 #include <media/NdkMediaCodec.h>
9 #include <media/NdkMediaFormat.h> 9 #include <media/NdkMediaFormat.h>
10 #include <stddef.h>
11 #include <stdint.h>
10 12
11 #include "base/files/file_path.h" 13 #include "base/files/file_path.h"
12 #include "base/logging.h" 14 #include "base/logging.h"
13 #include "base/native_library.h" 15 #include "base/native_library.h"
14 16
15 #define LOOKUP_FUNC(func_name, return_type, args, arg_names) \ 17 #define LOOKUP_FUNC(func_name, return_type, args, arg_names) \
16 return_type func_name args { \ 18 return_type func_name args { \
17 typedef return_type(*signature) args; \ 19 typedef return_type(*signature) args; \
18 static signature g_##func_name = \ 20 static signature g_##func_name = \
19 reinterpret_cast<signature>(base::GetFunctionPointerFromNativeLibrary( \ 21 reinterpret_cast<signature>(base::GetFunctionPointerFromNativeLibrary( \
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 size_t* encrypted_bytes), 155 size_t* encrypted_bytes),
154 (num_subsamples, key, iv, mode, clear_bytes, encrypted_bytes)); 156 (num_subsamples, key, iv, mode, clear_bytes, encrypted_bytes));
155 LOOKUP_FUNC(AMediaCodecCryptoInfo_delete, 157 LOOKUP_FUNC(AMediaCodecCryptoInfo_delete,
156 media_status_t, 158 media_status_t,
157 (AMediaCodecCryptoInfo * info), 159 (AMediaCodecCryptoInfo * info),
158 (info)); 160 (info));
159 LOOKUP_FUNC(AMediaFormat_getInt32, 161 LOOKUP_FUNC(AMediaFormat_getInt32,
160 bool, 162 bool,
161 (AMediaFormat * format, const char* name, int32_t* out), 163 (AMediaFormat * format, const char* name, int32_t* out),
162 (format, name, out)); 164 (format, name, out));
OLDNEW
« no previous file with comments | « media/base/android/ndk_media_codec_bridge.h ('k') | media/base/android/sdk_media_codec_bridge.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698