70 lines
1.9 KiB
C
70 lines
1.9 KiB
C
![]() |
// Copyright 2020-2021 Beken
|
||
|
//
|
||
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||
|
// you may not use this file except in compliance with the License.
|
||
|
// You may obtain a copy of the License at
|
||
|
//
|
||
|
// http://www.apache.org/licenses/LICENSE-2.0
|
||
|
//
|
||
|
// Unless required by applicable law or agreed to in writing, software
|
||
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
||
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
|
// See the License for the specific language governing permissions and
|
||
|
// limitations under the License.
|
||
|
|
||
|
#pragma once
|
||
|
|
||
|
#include <common/bk_include.h>
|
||
|
#include <driver/yuv_buf_types.h>
|
||
|
#include <driver/jpeg_enc_types.h>
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
extern "C" {
|
||
|
#endif
|
||
|
|
||
|
bk_err_t bk_yuv_buf_driver_init(void);
|
||
|
|
||
|
bk_err_t bk_yuv_buf_driver_deinit(void);
|
||
|
|
||
|
bk_err_t bk_yuv_buf_init(const yuv_buf_config_t *config);
|
||
|
|
||
|
bk_err_t bk_yuv_buf_deinit(void);
|
||
|
|
||
|
bk_err_t bk_yuv_buf_set_frame_resolution(uint32_t width, uint32_t height);
|
||
|
|
||
|
bk_err_t bk_yuv_buf_set_resize(const yuv_buf_resize_config_t *config);
|
||
|
|
||
|
bk_err_t bk_yuv_buf_start(yuv_mode_t work_mode);
|
||
|
|
||
|
bk_err_t bk_yuv_buf_stop(yuv_mode_t work_mode);
|
||
|
|
||
|
bk_err_t bk_yuv_buf_rencode_start(void);
|
||
|
|
||
|
bk_err_t bk_yuv_buf_enable_nosensor_encode_mode(void);
|
||
|
|
||
|
bk_err_t bk_yuv_buf_set_em_base_addr(uint32_t em_base_addr);
|
||
|
|
||
|
uint32_t bk_yuv_buf_get_em_base_addr(void);
|
||
|
|
||
|
bk_err_t bk_yuv_buf_set_emr_base_addr(uint32_t emr_base_addr);
|
||
|
|
||
|
uint32_t bk_yuv_buf_get_emr_base_addr(void);
|
||
|
|
||
|
bk_err_t bk_yuv_buf_register_isr(yuv_buf_isr_type_t type_id, yuv_buf_isr_t isr, void *param);
|
||
|
|
||
|
bk_err_t bk_yuv_buf_unregister_isr(yuv_buf_isr_type_t type_id);
|
||
|
|
||
|
bk_err_t bk_yuv_buf_init_partial_display(const yuv_buf_partial_offset_config_t *offset_config);
|
||
|
|
||
|
bk_err_t bk_yuv_buf_deinit_partial_display(void);
|
||
|
|
||
|
bk_err_t bk_yuv_buf_set_mclk_div(mclk_div_t div);
|
||
|
|
||
|
bk_err_t bk_yuv_buf_soft_reset(void);
|
||
|
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
}
|
||
|
#endif
|
||
|
|