• 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 *************************************************************************
18  * @file    M4VD_Null.h
19  * @brief   Implementation of the a "null" video decoder,i.e. a decoder
20  *          that does not do actual decoding.
21  * @note    This file defines the getInterface function.
22 *************************************************************************
23 */
24 #ifndef __M4DECODER_NULL_H__
25 #define __M4DECODER_NULL_H__
26 
27 #include "M4DECODER_Common.h"
28 
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32 
33 
34 /**
35  ************************************************************************
36  * @brief Retrieves the interface implemented by the decoder
37  * @param pDecoderType        : Pointer to a M4DECODER_VideoType
38  *                             (allocated by the caller)
39  *                             that will be filled with the decoder type
40  * @param pDecoderInterface   : Address of a pointer that will be set to
41  *                              the interface implemented by this decoder.
42  *                              The interface is a structure allocated by
43  *                              this function and must be freed by the caller.
44  *
45  * @returns : M4NO_ERROR  if OK
46  *            M4ERR_ALLOC if allocation failed
47  ************************************************************************
48 */
49 M4OSA_ERR M4DECODER_NULL_getInterface( M4DECODER_VideoType *pDecoderType,
50                                  M4DECODER_VideoInterface **pDecoderInterface);
51 
52 #ifdef __cplusplus
53 }
54 #endif /* __cplusplus */
55 
56 #endif /*__M4DECODER_NULL_H__*/
57 
58