• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2011 The Android Open Source Project
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 #ifndef __M4VD_EXTERNAL_INTERFACE_H__
18 #define __M4VD_EXTERNAL_INTERFACE_H__
19 
20 #include "M4DECODER_Common.h"
21 
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25 
26 /* ----- DSI bitstream parser ----- */
27 
28 /* This function is available to clients of the shell to allow them to analyse clips
29 (useful for video editing) without having to instanciate a decoder, which can be useful precisely
30 if HW decoders are a possibility. */
31 
32 M4OSA_ERR M4DECODER_EXTERNAL_ParseVideoDSI(
33                       M4OSA_UInt8* pVol, M4OSA_Int32 aVolSize,
34                       M4DECODER_MPEG4_DecoderConfigInfo* pDci,
35                       M4DECODER_VideoSize* pVideoSize);
36 
37 M4OSA_ERR getAVCProfileAndLevel(M4OSA_UInt8* pDSI, M4OSA_Int32 DSISize,
38                       M4OSA_Int32 *pProfile, M4OSA_Int32 *pLevel);
39 
40 M4OSA_ERR getH263ProfileAndLevel(M4OSA_UInt8* pDSI, M4OSA_Int32 DSISize,
41                       M4OSA_Int32 *pProfile, M4OSA_Int32 *pLevel);
42 
43 M4OSA_ERR getMPEG4ProfileAndLevel(M4OSA_UInt8 profileAndLevel,
44                       M4OSA_Int32 *pProfile, M4OSA_Int32 *pLevel);
45 
46 #ifdef __cplusplus
47 }
48 #endif /* __cplusplus */
49 
50 #endif /* __M4VD_EXTERNAL_INTERFACE_H__ */
51