1 /* 2 * thumbnails_head.h 3 * 4 * Copyright (c) 2021 Rockchip Electronics Co., Ltd. 5 * 6 * Licensed under the Apache License, Version 2.0 (the "License"); 7 * you may not use this file except in compliance with the License. 8 * You may obtain a copy of the License at 9 * 10 * http://www.apache.org/licenses/LICENSE-2.0 11 * 12 * Unless required by applicable law or agreed to in writing, software 13 * distributed under the License is distributed on an "AS IS" BASIS, 14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 * See the License for the specific language governing permissions and 16 * limitations under the License. 17 * 18 */ 19 20 #ifndef __CALIBDBV2_THUMBNAILS_HEAD_H__ 21 #define __CALIBDBV2_THUMBNAILS_HEAD_H__ 22 23 #include <rk_aiq_comm.h> 24 25 RKAIQ_BEGIN_DECLARE 26 27 typedef struct rkaiq_thumbnails_config_s { 28 // M4_NUMBER_DESC("owner_cookies", "u32", M4_RANGE(0,65535), "1", M4_DIGIT(0)) 29 uint32_t owner_cookies; 30 // M4_NUMBER_DESC("stream_type", "u32", M4_RANGE(0,65535), "1", M4_DIGIT(0)) 31 uint32_t stream_type; 32 // image_source after these nodes, 1 node per bit 33 // M4_NUMBER_DESC("after_nodes", "u32", M4_RANGE(0,65535), "1", M4_DIGIT(0)) 34 uint64_t after_nodes; 35 // image_source after the node, 1 node per bit 36 // M4_NUMBER_DESC("after_nodes", "u32", M4_RANGE(0,65535), "1", M4_DIGIT(0)) 37 uint64_t before_node; 38 // fourcc code 39 // M4_ARRAY_DESC("format", "u8", M4_SIZE(1,4), M4_RANGE(0,100), "0", M4_DIGIT(0), M4_DYNAMIC(0)) 40 char format[4]; 41 // M4_NUMBER_DESC("width_intfactor", "u32", M4_RANGE(0,65535), "1", M4_DIGIT(0)) 42 uint32_t width_intfactor; 43 // M4_NUMBER_DESC("height_intfactor", "u32", M4_RANGE(0,65535), "1", M4_DIGIT(0)) 44 uint32_t height_intfactor; 45 // M4_NUMBER_DESC("buffer_count", "s32", M4_RANGE(-65535,65535), "1", M4_DIGIT(0)) 46 int32_t buffer_count; 47 } rkaiq_thumbnails_config_t; 48 49 typedef struct CalibDbV2_Thumbnails_Param_s { 50 // pointers to thumbnail info array 51 // which contains format/width/height/stride 52 // M4_STRUCT_LIST_DESC("thumbnail_configs", M4_SIZE(1,4), "normal_ui_style") 53 rkaiq_thumbnails_config_t* thumbnail_configs; 54 // total thumbnails count 55 uint32_t thumbnail_configs_len; 56 } CalibDbV2_Thumbnails_Param_t; 57 58 typedef struct CalibDbV2_Thumbnails_s { 59 // M4_STRUCT_DESC("param", "normal_ui_style") 60 CalibDbV2_Thumbnails_Param_t param; 61 } CalibDbV2_Thumbnails_t; 62 63 RKAIQ_END_DECLARE 64 65 #endif 66