| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0 */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Copyright (c) 2016 MediaTek Inc. |
|---|
| 3 | 4 | * Author: PC Chen <pc.chen@mediatek.com> |
|---|
| 4 | 5 | * Tiffany Lin <tiffany.lin@mediatek.com> |
|---|
| 5 | | - * |
|---|
| 6 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 7 | | - * it under the terms of the GNU General Public License version 2 as |
|---|
| 8 | | - * published by the Free Software Foundation. |
|---|
| 9 | | - * |
|---|
| 10 | | - * This program is distributed in the hope that it will be useful, |
|---|
| 11 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 12 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 13 | | - * GNU General Public License for more details. |
|---|
| 14 | 6 | */ |
|---|
| 15 | 7 | |
|---|
| 16 | 8 | #ifndef _VDEC_DRV_IF_H_ |
|---|
| .. | .. |
|---|
| 62 | 54 | struct vdec_fb *fb; |
|---|
| 63 | 55 | }; |
|---|
| 64 | 56 | |
|---|
| 57 | +extern const struct vdec_common_if vdec_h264_if; |
|---|
| 58 | +extern const struct vdec_common_if vdec_vp8_if; |
|---|
| 59 | +extern const struct vdec_common_if vdec_vp9_if; |
|---|
| 60 | + |
|---|
| 65 | 61 | /** |
|---|
| 66 | 62 | * vdec_if_init() - initialize decode driver |
|---|
| 67 | 63 | * @ctx : [in] v4l2 context |
|---|
| .. | .. |
|---|
| 80 | 76 | * vdec_if_decode() - trigger decode |
|---|
| 81 | 77 | * @ctx : [in] v4l2 context |
|---|
| 82 | 78 | * @bs : [in] input bitstream |
|---|
| 83 | | - * @fb : [in] frame buffer to store decoded frame, when null menas parse |
|---|
| 79 | + * @fb : [in] frame buffer to store decoded frame, when null means parse |
|---|
| 84 | 80 | * header only |
|---|
| 85 | 81 | * @res_chg : [out] resolution change happens if current bs have different |
|---|
| 86 | 82 | * picture width/height |
|---|