• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* ------------------------------------------------------------------
2  * Copyright (C) 1998-2009 PacketVideo
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
13  * express or implied.
14  * See the License for the specific language governing permissions
15  * and limitations under the License.
16  * -------------------------------------------------------------------
17  */
18 #ifndef PVMF_AMRFFPARSER_FACTORY_H_INCLUDED
19 #define PVMF_AMRFFPARSER_FACTORY_H_INCLUDED
20 
21 #ifndef OSCL_SCHEDULER_AO_H_INCLUDED
22 #include "oscl_scheduler_ao.h"
23 #endif
24 
25 // Forward declaration
26 class PVMFNodeInterface;
27 
28 #define KPVMFAmrFFParserNodeUuid PVUuid(0x9966e471,0xc1b7,0x4b3c,0x93,0x9e,0x1e,0x00,0xc8,0xed,0xe5,0xf4)
29 
30 
31 /**
32  * PVMFAMRFFParserNodeFactory Class
33  *
34  * PVMFAMRFFParserNodeFactory class is a singleton class which instantiates and provides
35  * access to PVMF GSM-AMR NB audio decoder node. It returns a PVMFNodeInterface
36  * reference, the interface class of the PVMFAMRFFParserNode.
37  *
38  * The client is expected to contain and maintain a pointer to the instance created
39  * while the node is active.
40  */
41 class PVMFAMRFFParserNodeFactory
42 {
43     public:
44         /**
45          * Creates an instance of a PVMFAMRFFParserNode. If the creation fails, this function will leave.
46          *
47          * @param aPriority The active object priority for the node. Default is standard priority if not specified
48          * @returns A pointer to an instance of PVMFAMRFFParserNode as PVMFNodeInterface reference or leaves if instantiation fails
49          **/
50         OSCL_IMPORT_REF static PVMFNodeInterface* CreatePVMFAMRFFParserNode(int32 aPriority = OsclActiveObject::EPriorityNominal);
51 
52         /**
53          * Deletes an instance of PVMFAMRFFParserNode
54          * and reclaims all allocated resources.  An instance can be deleted only in
55          * the idle state. An attempt to delete in any other state will fail and return false.
56          *
57          * @param aNode The PVMFAMRFFParserNode instance to be deleted
58          * @returns A status code indicating success or failure of deletion
59          **/
60         OSCL_IMPORT_REF static bool DeletePVMFAMRFFParserNode(PVMFNodeInterface* aNode);
61 };
62 
63 
64 
65 #endif // PVMF_AMRFFPARSER_FACTORY_H_INCLUDED
66 
67