Song Zhao | 1b23760 | 2020-02-13 10:58:57 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2019 Amlogic, Inc. All rights reserved. |
| 3 | * |
| 4 | * This source code is subject to the terms and conditions defined in the |
| 5 | * file 'LICENSE' which is part of this source code package. |
| 6 | * |
| 7 | * Description: |
| 8 | */ |
| 9 | #ifndef _V4L2_DEC_H_ |
| 10 | #define _V4L2_DEC_H_ |
| 11 | |
| 12 | #include <stdint.h> |
| 13 | #include "demux.h" |
| 14 | |
| 15 | enum vdec_dw_mode { |
| 16 | VDEC_DW_AFBC_ONLY = 0, |
| 17 | VDEC_DW_AFBC_1_1_DW = 1, |
| 18 | VDEC_DW_AFBC_1_4_DW = 2, |
| 19 | VDEC_DW_AFBC_x2_1_4_DW = 3, |
| 20 | VDEC_DW_AFBC_1_2_DW = 4, |
| 21 | VDEC_DW_NO_AFBC = 16, |
| 22 | }; |
| 23 | |
| 24 | typedef void (*decode_finish_fn)(); |
| 25 | |
Song Zhao | 6c7d1f8 | 2020-04-06 23:22:49 -0700 | [diff] [blame] | 26 | int v4l2_dec_init(enum vtype type, int secure, decode_finish_fn); |
Song Zhao | 1b23760 | 2020-02-13 10:58:57 -0800 | [diff] [blame] | 27 | int v4l2_dec_destroy(); |
| 28 | |
| 29 | int v4l2_dec_write_es(const uint8_t *data, int size); |
| 30 | int v4l2_dec_frame_done(); |
| 31 | int capture_buffer_recycle(void* handle); |
| 32 | int v4l2_dec_eos(); |
| 33 | void dump_v4l2_decode_state(); |
| 34 | |
| 35 | #endif |