1 /* 2 * This file is auto-generated. Modifications will be lost. 3 * 4 * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/ 5 * for more information. 6 */ 7 #ifndef __UAPI_CAM_JPEG_H__ 8 #define __UAPI_CAM_JPEG_H__ 9 #include <media/cam_defs.h> 10 #define CAM_JPEG_DEV_TYPE_ENC 0 11 #define CAM_JPEG_DEV_TYPE_DMA 1 12 #define CAM_JPEG_DEV_TYPE_MAX 2 13 #define CAM_JPEG_NUM_DEV_PER_RES_MAX 1 14 #define CAM_JPEG_RES_TYPE_ENC 0 15 #define CAM_JPEG_RES_TYPE_DMA 1 16 #define CAM_JPEG_RES_TYPE_MAX 2 17 #define CAM_JPEG_OPCODE_ENC_UPDATE 0 18 #define CAM_JPEG_OPCODE_DMA_UPDATE 1 19 #define CAM_JPEG_ENC_INPUT_IMAGE 0x0 20 #define CAM_JPEG_ENC_OUTPUT_IMAGE 0x1 21 #define CAM_JPEG_ENC_IO_IMAGES_MAX 0x2 22 #define CAM_JPEG_DMA_INPUT_IMAGE 0x0 23 #define CAM_JPEG_DMA_OUTPUT_IMAGE 0x1 24 #define CAM_JPEG_DMA_IO_IMAGES_MAX 0x2 25 #define CAM_JPEG_IMAGE_MAX 0x2 26 struct cam_jpeg_dev_ver { 27 uint32_t size; 28 uint32_t dev_type; 29 struct cam_hw_version hw_ver; 30 }; 31 struct cam_jpeg_query_cap_cmd { 32 struct cam_iommu_handle dev_iommu_handle; 33 struct cam_iommu_handle cdm_iommu_handle; 34 uint32_t num_enc; 35 uint32_t num_dma; 36 struct cam_jpeg_dev_ver dev_ver[CAM_JPEG_DEV_TYPE_MAX]; 37 }; 38 struct cam_jpeg_res_info { 39 uint32_t format; 40 uint32_t width; 41 uint32_t height; 42 uint32_t fps; 43 }; 44 struct cam_jpeg_acquire_dev_info { 45 uint32_t dev_type; 46 uint32_t reserved; 47 struct cam_jpeg_res_info in_res; 48 struct cam_jpeg_res_info out_res; 49 }; 50 struct cam_jpeg_config_inout_param_info { 51 int32_t clk_index; 52 int32_t output_size; 53 }; 54 #endif 55