xref: /OK3568_Linux_fs/external/camera_engine_rkaiq/rkaiq/include/uAPI2/rk_aiq_user_api2_debug.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1 
2 /*
3  *  Copyright (c) 2019 Rockchip Corporation
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  *      http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  */
18 
19 #ifndef RK_AIQ_USER_API_DEBUG_H
20 #define RK_AIQ_USER_API_DEBUG_H
21 
22 #include "rk_aiq.h"
23 
24 #ifndef RK_AIQ_SYS_CTX_T
25 #define RK_AIQ_SYS_CTX_T
26 typedef struct rk_aiq_sys_ctx_s rk_aiq_sys_ctx_t;
27 #endif
28 
29 RKAIQ_BEGIN_DECLARE
30 
31 XCamReturn
32 rk_aiq_uapi2_debug_captureRawYuvSync(const rk_aiq_sys_ctx_t* ctx, capture_raw_t type);
33 
34 /*!
35  * \brief capture raw Image synchronously
36  *
37  * \param[in] ctx             the context returned by \ref rk_aiq_uapi_sysctl_init
38  * \param[in] type            the type of capturing raw images
39  * \param[in] count           the count of capturing raw images
40  * \param[in] capture_dir     Raw's top-level storage directory
41  * \param[out] output_dir     Raw's storage directory
42  * \return return 0 if success
43  */
44 XCamReturn
45 rk_aiq_uapi2_debug_captureRawSync(const rk_aiq_sys_ctx_t* ctx, capture_raw_t type,
46                                  int count, const char* capture_dir, char* output_dir);
47 
48 XCamReturn
49 rk_aiq_uapi2_debug_captureRawNotify(const rk_aiq_sys_ctx_t* ctx);
50 
51 RKAIQ_END_DECLARE
52 
53 #endif
54