sipxmedialib  Version 3.3
MpDecoderPayloadMap.h
Go to the documentation of this file.
1 //
2 // Copyright (C) 2008 SIPez LLC.
3 // Licensed to SIPfoundry under a Contributor Agreement.
4 //
5 // Copyright (C) 2008 SIPfoundry Inc.
6 // Licensed by SIPfoundry under the LGPL license.
7 //
8 // $$
10 
11 #ifndef _MpDecoderPayloadMap_h_
12 #define _MpDecoderPayloadMap_h_
13 
14 // SYSTEM INCLUDES
15 // APPLICATION INCLUDES
16 // DEFINES
17 // MACROS
18 // EXTERNAL FUNCTIONS
19 // EXTERNAL VARIABLES
20 // CONSTANTS
21 // STRUCTS
22 // TYPEDEFS
23 // FORWARD DECLARATIONS
24 class MpDecoderBase;
25 
28 {
29 /* //////////////////////////// PUBLIC //////////////////////////////////// */
30 public:
31 
32  enum {
34  };
35 
36 /* ============================ CREATORS ================================== */
38 
39 
42 
44 
45 /* ============================ MANIPULATORS ============================== */
47 
48 
50  void addPayloadType(int payloadType, MpDecoderBase* pDecoder);
51 
53  void deletePayloadType(int payloadType);
54 
56 
57 /* ============================ ACCESSORS ================================= */
59 
60 
62  MpDecoderBase* mapPayloadType(int payloadType) const;
63 
65 
66 /* ============================ INQUIRY =================================== */
68 
69 
71 
72 /* //////////////////////////// PROTECTED ///////////////////////////////// */
73 protected:
74 
75 /* //////////////////////////// PRIVATE /////////////////////////////////// */
76 private:
77 
80 
81 };
82 
83 /* ============================ INLINE METHODS ============================ */
84 
85 #endif // _MpDecoderPayloadMap_h_
Definition: MpDecoderPayloadMap.h:33
Base class for all media processing decoders.
Definition: MpDecoderBase.h:37
MpDecoderPayloadMap()
Constructor.
Definition: MpDecoderPayloadMap.cpp:25
MpDecoderBase * mapPayloadType(int payloadType) const
Get decoder for this payload type.
Definition: MpDecoderPayloadMap.cpp:89
void deletePayloadType(int payloadType)
Remove an RTP payload type from decoder instance map.
Definition: MpDecoderPayloadMap.cpp:61
Helper class for MprDecode - it maps payload types to decoder instances.
Definition: MpDecoderPayloadMap.h:27
MpDecoderBase * mpPayloadMap[NUM_PAYLOAD_TYPES]
Map RTP payload types to our decoders.
Definition: MpDecoderPayloadMap.h:78
void addPayloadType(int payloadType, MpDecoderBase *pDecoder)
Add an RTP payload type to decoder instance mapping table.
Definition: MpDecoderPayloadMap.cpp:34