• 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_MP4FFPARSER_FACTORY_H_INCLUDED
19 #define PVMF_MP4FFPARSER_FACTORY_H_INCLUDED
20 
21 #ifndef OSCL_BASE_H_INCLUDED
22 #include "oscl_base.h"
23 #endif
24 
25 #ifndef OSCL_SCHEDULER_AO_H_INCLUDED
26 #include "oscl_scheduler_ao.h"
27 #endif
28 
29 // Forward declaration
30 class PVMFNodeInterface;
31 
32 #define KPVMFMP4FFParserNodeUuid PVUuid(0xb7d84b4a,0xfa69,0x4e4a,0x9d,0x43,0xa2,0x22,0x83,0x3f,0xb1,0x2f)
33 
34 /**
35  * PVMFMP4FFParserNodeFactory Class
36  *
37  * PVMFMP4FFParserNodeFactory class is a singleton class which instantiates and provides
38  * access to PVMF MP4 file format parser node. It returns a PVMFNodeInterface
39  * reference, the interface class of the PVMFMP4FFParserNode.
40  *
41  * The client is expected to contain and maintain a pointer to the instance created
42  * while the node is active.
43  */
44 class PVMFMP4FFParserNodeFactory
45 {
46     public:
47         /**
48          * Creates an instance of a PVMFMP4FFParserNode. If the creation fails, this function will leave.
49          *
50          * @param aPriority The active object priority for the node. Default is standard priority if not specified
51          * @returns A pointer to an instance of PVMFMP4FFParserNode as PVMFNodeInterface reference or leaves if instantiation fails
52          **/
53         OSCL_IMPORT_REF static PVMFNodeInterface* CreatePVMFMP4FFParserNode(int32 aPriority = OsclActiveObject::EPriorityNominal);
54 
55         /**
56          * Deletes an instance of PVMFMP4FFParserNode
57          * and reclaims all allocated resources.  An instance can be deleted only in
58          * the idle state. An attempt to delete in any other state will fail and return false.
59          *
60          * @param aNode The PVMFMP4FFParserNode instance to be deleted
61          * @returns A status code indicating success or failure of deletion
62          **/
63         OSCL_IMPORT_REF static bool DeletePVMFMP4FFParserNode(PVMFNodeInterface* aNode);
64 };
65 
66 #endif // PVMF_MP4FFPARSER_FACTORY_H_INCLUDED
67