M4VD_EXTERNAL_Interface.h revision 0a389ab70db304fb840e33f33781ecc0503eae3c
1/*
2 * Copyright (C) 2004-2011 NXP Software
3 * Copyright (C) 2011 The Android Open Source Project
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#ifndef __M4VD_EXTERNAL_INTERFACE_H__
19#define __M4VD_EXTERNAL_INTERFACE_H__
20
21#include "M4DECODER_Common.h"
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
27/* ----- DSI bitstream parser ----- */
28
29/* This function is available to clients of the shell to allow them to analyse clips
30(useful for video editing) without having to instanciate a decoder, which can be useful precisely
31if HW decoders are a possibility. */
32
33M4OSA_ERR M4DECODER_EXTERNAL_ParseVideoDSI(M4OSA_UInt8* pVol, M4OSA_Int32 aVolSize,
34                                             M4DECODER_MPEG4_DecoderConfigInfo* pDci,
35                                             M4DECODER_VideoSize* pVideoSize);
36
37M4OSA_ERR M4DECODER_EXTERNAL_ParseAVCDSI(M4OSA_UInt8* pDSI, M4OSA_Int32 DSISize,
38                                            M4DECODER_AVCProfileLevel *profile);
39
40
41#ifdef __cplusplus
42}
43#endif /* __cplusplus */
44
45#endif /* __M4VD_EXTERNAL_INTERFACE_H__ */
46