1 /* 2 * Copyright 2020 Rockchip Electronics Co. LTD 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 17 #ifndef __IEP2_ROI_H__ 18 #define __IEP2_ROI_H__ 19 20 #include "iep2.h" 21 22 struct iep2_api_ctx; 23 24 struct iep2_rect { 25 int x; 26 int y; 27 int w; 28 int h; 29 }; 30 31 enum ROI_MODE { 32 ROI_MODE_NORMAL, 33 ROI_MODE_BYPASS, 34 ROI_MODE_SPATIAL, 35 ROI_MODE_MA, 36 ROI_MODE_MA_MC, 37 ROI_MODE_MC_SPATIAL, 38 ROI_MODE_RESERVED0, 39 ROI_MODE_RESERVED1, 40 ROI_MODE_RESERVED2, 41 ROI_MODE_SPEC_MC 42 }; 43 44 void iep2_set_roi(struct iep2_api_ctx *ctx, struct iep2_rect *r, 45 enum ROI_MODE mode); 46 47 #endif 48