1 /* 2 * Copyright 2015 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 #define MODULE_TAG "m2vd_api" 18 19 #include <string.h> 20 21 #include "m2vd_api.h" 22 #include "m2vd_parser.h" 23 #include "m2vd_codec.h" 24 25 const ParserApi api_m2vd_parser = { 26 .name = "m2vd_parse", 27 .coding = MPP_VIDEO_CodingMPEG2, 28 .ctx_size = sizeof(M2VDContext), 29 .flag = 0, 30 .init = m2vd_parser_init, 31 .deinit = m2vd_parser_deinit, 32 .prepare = m2vd_parser_prepare, 33 .parse = m2vd_parser_parse, 34 .reset = m2vd_parser_reset, 35 .flush = m2vd_parser_flush, 36 .control = m2vd_parser_control, 37 .callback = m2vd_parser_callback, 38 }; 39