1 /* 2 * Copyright (C) 2021 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16 #ifndef FRAMEWORKS_INNERKITSIMPL_UTILS_INCLUDE_IMAGE_FORMAT_H 17 #define FRAMEWORKS_INNERKITSIMPL_UTILS_INCLUDE_IMAGE_FORMAT_H 18 19 namespace OHOS { 20 namespace Media { 21 enum class ImageFormat : int32_t { 22 UNKNOWN = 0, 23 NV21 = 1, 24 YUV420_888 = 2, 25 RAW10 = 4, 26 RAW16 = 5, 27 H264 = 6, 28 H265 = 7, 29 YCBCR_422_SP = 1000, 30 JPEG = 2000 31 }; 32 33 enum class ComponentType { 34 UNKNOWN = 0, 35 YUV_Y = 1, 36 YUV_U = 2, 37 YUV_V = 3, 38 JPEG = 4, 39 RAW10 = 5, 40 RAW16 = 6, 41 H264 = 7, 42 H265 = 8 43 }; 44 } // namespace Media 45 } // namespace OHOS 46 47 #endif // FRAMEWORKS_INNERKITSIMPL_UTILS_INCLUDE_IMAGE_FORMAT_H 48