Chong Zhang | 6646927 | 2020-06-04 16:51:55 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2020 The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | //#define LOG_NDEBUG 0 |
| 17 | #define LOG_TAG "NdkCommon" |
| 18 | #include <log/log.h> |
| 19 | #include <media/NdkCommon.h> |
| 20 | |
| 21 | #include <cstdio> |
| 22 | #include <cstring> |
| 23 | #include <utility> |
| 24 | |
| 25 | /* TODO(b/153592281) |
| 26 | * Note: constants used by the native media tests but not available in media ndk api |
| 27 | */ |
| 28 | const char* AMEDIA_MIMETYPE_VIDEO_VP8 = "video/x-vnd.on2.vp8"; |
| 29 | const char* AMEDIA_MIMETYPE_VIDEO_VP9 = "video/x-vnd.on2.vp9"; |
| 30 | const char* AMEDIA_MIMETYPE_VIDEO_AV1 = "video/av01"; |
| 31 | const char* AMEDIA_MIMETYPE_VIDEO_AVC = "video/avc"; |
| 32 | const char* AMEDIA_MIMETYPE_VIDEO_HEVC = "video/hevc"; |
| 33 | const char* AMEDIA_MIMETYPE_VIDEO_MPEG4 = "video/mp4v-es"; |
| 34 | const char* AMEDIA_MIMETYPE_VIDEO_H263 = "video/3gpp"; |
| 35 | |
| 36 | /* TODO(b/153592281) */ |
| 37 | const char* TBD_AMEDIACODEC_PARAMETER_KEY_REQUEST_SYNC_FRAME = "request-sync"; |
| 38 | const char* TBD_AMEDIACODEC_PARAMETER_KEY_VIDEO_BITRATE = "video-bitrate"; |
| 39 | const char* TBD_AMEDIACODEC_PARAMETER_KEY_MAX_B_FRAMES = "max-bframes"; |
| 40 | const char* TBD_AMEDIAFORMAT_KEY_BIT_RATE_MODE = "bitrate-mode"; |