xref: /OK3568_Linux_fs/external/mpp/mpp/codec/dec/vp8/vp8d_api.c (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1 /*
2 *
3 * Copyright 2015 Rockchip Electronics Co. LTD
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 *      http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
17 
18 #define MODULE_TAG "vp8d_api"
19 
20 #include <string.h>
21 
22 #include "vp8d_api.h"
23 #include "vp8d_parser.h"
24 #include "vp8d_codec.h"
25 
26 const ParserApi api_vp8d_parser = {
27     .name = "vp8d_parse",
28     .coding = MPP_VIDEO_CodingVP8,
29     .ctx_size = sizeof(VP8DContext),
30     .flag = 0,
31     .init = vp8d_parser_init,
32     .deinit = vp8d_parser_deinit,
33     .prepare = vp8d_parser_prepare,
34     .parse = vp8d_parser_parse,
35     .reset = vp8d_parser_reset,
36     .flush = vp8d_parser_flush,
37     .control = vp8d_parser_control,
38     .callback = vp8d_parser_callback,
39 };
40