1 /* 2 * Copyright 2016 Rockchip Electronics Co. LTD 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 #ifndef __HAL_H263D_BASE_H__ 18 #define __HAL_H263D_BASE_H__ 19 20 #include "mpp_device.h" 21 22 typedef struct h263d_reg_context { 23 MppHalApi hal_api; 24 MppBufSlots frm_slots; 25 MppBufSlots pkt_slots; 26 MppCbCtx *dec_cb; 27 MppDev dev; 28 29 // save fd for curr/ref0/ref1 for reg_gen 30 RK_S32 vpu_fd; 31 RK_S32 fd_curr; 32 RK_S32 fd_ref0; 33 34 void* regs; 35 } hal_h263_ctx; 36 37 void vpu_h263d_get_buffer_by_index(hal_h263_ctx *ctx, RK_S32 index, MppBuffer *buffer); 38 39 #endif 40