summaryrefslogtreecommitdiffstats
path: root/libvideoeditor/vss/common/inc/M4VD_EXTERNAL_Interface.h
blob: 90bfcb67a486dd1d81cb9a8a27774026dd5d2f8f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/*
 * Copyright (C) 2011 The Android Open Source Project
 *
 * 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 __M4VD_EXTERNAL_INTERFACE_H__
#define __M4VD_EXTERNAL_INTERFACE_H__

#include "M4DECODER_Common.h"

#ifdef __cplusplus
extern "C" {
#endif

/* ----- DSI bitstream parser ----- */

/* This function is available to clients of the shell to allow them to analyse clips
(useful for video editing) without having to instanciate a decoder, which can be useful precisely
if HW decoders are a possibility. */

M4OSA_ERR M4DECODER_EXTERNAL_ParseVideoDSI(
                      M4OSA_UInt8* pVol, M4OSA_Int32 aVolSize,
                      M4DECODER_MPEG4_DecoderConfigInfo* pDci,
                      M4DECODER_VideoSize* pVideoSize);

M4OSA_ERR getAVCProfileAndLevel(M4OSA_UInt8* pDSI, M4OSA_Int32 DSISize,
                      M4OSA_Int32 *pProfile, M4OSA_Int32 *pLevel);

M4OSA_ERR getH263ProfileAndLevel(M4OSA_UInt8* pDSI, M4OSA_Int32 DSISize,
                      M4OSA_Int32 *pProfile, M4OSA_Int32 *pLevel);

M4OSA_ERR getMPEG4ProfileAndLevel(M4OSA_UInt8 profileAndLevel,
                      M4OSA_Int32 *pProfile, M4OSA_Int32 *pLevel);

#ifdef __cplusplus
}
#endif /* __cplusplus */

#endif /* __M4VD_EXTERNAL_INTERFACE_H__ */