1 /* 2 * 3 * Copyright (C) 2016 Amlogic, Inc. All rights reserved. 4 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; either version 2 of the License, or 8 * (at your option) any later version. 9 * 10 * This program is distributed in the hope that it will be useful, but WITHOUT 11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 13 * more details. 14 * 15 */ 16 17 #ifndef _AML_VDEC_V4L2_BUFFER_H_ 18 #define _AML_VDEC_V4L2_BUFFER_H_ 19 20 #include "../../../amvdec_ports/vdec_drv_base.h" 21 #include "../../../amvdec_ports/aml_vcodec_adapt.h" 22 23 int vdec_v4l_get_buffer( 24 struct aml_vcodec_ctx *ctx, 25 struct vdec_v4l2_buffer **out); 26 27 int vdec_v4l_get_pic_info( 28 struct aml_vcodec_ctx *ctx, 29 struct vdec_pic_info *pic); 30 31 int vdec_v4l_set_ps_infos( 32 struct aml_vcodec_ctx *ctx, 33 struct aml_vdec_ps_infos *ps); 34 35 int vdec_v4l_set_hdr_infos( 36 struct aml_vcodec_ctx *ctx, 37 struct aml_vdec_hdr_infos *hdr); 38 39 int vdec_v4l_write_frame_sync( 40 struct aml_vcodec_ctx *ctx); 41 42 int vdec_v4l_post_evet( 43 struct aml_vcodec_ctx *ctx, 44 u32 event); 45 46 int vdec_v4l_res_ch_event( 47 struct aml_vcodec_ctx *ctx); 48 49 #endif 50