/*
|
*
|
* Copyright 2010 Rockchip Electronics Co. LTD
|
*
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
* you may not use this file except in compliance with the License.
|
* You may obtain a copy of the License at
|
*
|
* http://www.apache.org/licenses/LICENSE-2.0
|
*
|
* Unless required by applicable law or agreed to in writing, software
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* See the License for the specific language governing permissions and
|
* limitations under the License.
|
*/
|
|
#ifndef __MPG4D_PARSER_H__
|
#define __MPG4D_PARSER_H__
|
|
#include "mpp_packet.h"
|
#include "mpp_buf_slot.h"
|
#include "hal_dec_task.h"
|
|
#define MPG4D_DBG_FUNCTION (0x00000001)
|
#define MPG4D_DBG_STARTCODE (0x00000002)
|
#define MPG4D_DBG_BITS (0x00000004)
|
#define MPG4D_DBG_RESULT (0x00000008)
|
#define MPG4D_DBG_TIME (0x00000100)
|
|
typedef void* Mpg4dParser;
|
|
#ifdef __cplusplus
|
extern "C" {
|
#endif
|
|
MPP_RET mpp_mpg4_parser_init(Mpg4dParser *ctx, MppBufSlots frame_slots);
|
MPP_RET mpp_mpg4_parser_deinit(Mpg4dParser ctx);
|
MPP_RET mpp_mpg4_parser_flush(Mpg4dParser ctx);
|
MPP_RET mpp_mpg4_parser_reset(Mpg4dParser ctx);
|
|
MPP_RET mpp_mpg4_parser_split(Mpg4dParser ctx, MppPacket dst, MppPacket src);
|
MPP_RET mpp_mpg4_parser_decode(Mpg4dParser ctx, MppPacket pkt);
|
MPP_RET mpp_mpg4_parser_setup_syntax(Mpg4dParser ctx, MppSyntax *syntax);
|
MPP_RET mpp_mpg4_parser_setup_hal_output(Mpg4dParser ctx, RK_S32 *output);
|
MPP_RET mpp_mpg4_parser_setup_refer(Mpg4dParser ctx, RK_S32 *refer, RK_S32 max_ref);
|
MPP_RET mpp_mpg4_parser_update_dpb(Mpg4dParser ctx);
|
|
#ifdef __cplusplus
|
}
|
#endif
|
|
#endif/* __MPG4D_PAESER_H__ */
|