BK_JPEG_DEC_SW
BK_JPEG_DEC_SW API Status
API |
|---|
BK_JPEG_DEC_SW API Reference
Header File
Functions
-
int32_t bk_jpeg_dec_sw_init(void)
JPEG_DEC APIs Version 1.0.
Init the jpeg_dec
This API init the jpeg_dec
config jpeg_dec image resoult, and simple_rate
malloc buffer for jpeg_dec
- Attention
1. only for software jpeg_dec
- 参数:
src_buf – input image address
dst_buf – output decode image address
- 返回:
kNoErr: succeed
other: errors.
-
int32_t bk_jpeg_dec_sw_deinit(void)
Deinit the jpeg_dec.
This API deinit the jpeg_dec
clear all configure for jpeg_dec
free buffer for jpeg_dec
- Attention
1. only for software jpeg_dec
- 返回:
kNoErr: succeed
other: errors.
-
int32_t bk_jpeg_dec_sw_start(uint32_t frame_size, uint8_t *src_buf, uint8_t *dst_buf, bk_jpeg_dec_sw_res_t *result)
jpeg_decoder_fun
This API jpeg_decoder_fun
jpeg_prepare for jpeg_dec
start jpeg_dec
- Attention
1. only for software jpeg_dec
- 参数:
frame_size – input image size
- 返回:
kNoErr: succeed
other: errors.
-
int32_t bk_jpeg_dec_sw_get_img_info(uint32_t frame_size, uint8_t *src_buf, bk_jpeg_dec_sw_res_t *result)
jpeg_decoder_fun
This API is used to get img width and size
- Attention
1. only for software jpeg_dec
- 参数:
frame_size – input image size
- 返回:
kNoErr: succeed
other: errors.
-
void bk_jpeg_dec_sw_register_finish_callback(void *cb)
jpegdec register finish icallback_func
This API jpeg_decoder_fun, the callback function wiil execute when decode success
- Attention
1. only for software jpeg_dec
- 参数:
cb – finish jpeg_dec callback function
- 返回:
Structures
-
struct bk_jpeg_dec_sw_res_t