• 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 /**
19  * @file pv_media_output_node_events.h
20  * @brief
21  */
22 
23 #ifndef PV_MEDIA_OUTPUT_NODE_EVENTS_H_INCLUDED
24 #define PV_MEDIA_OUTPUT_NODE_EVENTS_H_INCLUDED
25 
26 
27 /**
28  UUID for file format error and information event type codes
29  **/
30 //d62cbd20-abca-11d9-9669-0800200c9a66
31 #define PVMFMediaOutputNodeEventTypesUUID PVUuid(0xd62cbd20,0xabca,0x11d9,0x96,0x69,0x08,0x00,0x20,0x0c,0x9a,0x66)
32 
33 /**
34  Maximum number of media messages that the sink node should buffer at
35  once this number of messages are buffered, sink node sends an infor-
36  mational event up to the engine, where the engine decides whether or
37  not to start the playback
38  **/
39 #define MIONODE_MAX_BUFFER_SIZE 1
40 
41 /**
42  Event codes for Media Output Node events.
43  All the messages are of type PVMFBasicErrorInfoMessage
44 **/
45 typedef enum
46 {
47     //This value is just a placeholder-- the event will not be reported.
48     PVMFMoutNodeErr_First = 0
49 
50     //This error code indicates that a port referenced in a command
51     //does not exist.
52     , PVMFMoutNodeErr_PortNotExist
53 
54     //This error code indicates that a SkipMediaData command failed
55     //on the port.
56     , PVMFMoutNodeErr_PortSkipMediaData
57 
58     //This error code indicates that a Cancel command failed
59     //because the indicated command is no longer queueud.
60     , PVMFMoutNodeErr_CmdNotQueued
61 
62     //This error code indicates that the Media Output component does not exist
63     , PVMFMoutNodeErr_MediaIONotExist
64 
65     //This error code indicates that the Media Output component was in
66     //an unexpected state when the node tried to issue a command.
67     , PVMFMoutNodeErr_MediaIOWrongState
68 
69     //These error codes indicate that a specific command to the
70     //Media Output control component failed.
71     , PVMFMoutNodeErr_MediaIOConnect
72     , PVMFMoutNodeErr_MediaIOQueryCapConfigInterface//query for capability & config interface
73     , PVMFMoutNodeErr_MediaIOSetParameterSync//setparametersync on config-cap failed.
74     , PVMFMoutNodeErr_MediaIOInit
75     , PVMFMoutNodeErr_MediaIOStart
76     , PVMFMoutNodeErr_MediaIOPause
77     , PVMFMoutNodeErr_MediaIOStop
78     , PVMFMoutNodeErr_MediaIOFlush
79     , PVMFMoutNodeErr_MediaIODiscardData
80     , PVMFMoutNodeErr_MediaIOCancelCommand
81     , PVMFMoutNodeErr_MediaIOReset
82 
83     //These error codes indicate errors in the data transfer to the media
84     //Output componenet
85     , PVMFMoutNodeErr_WriteAsync //unexpeced leave in writeAsync
86     , PVMFMoutNodeErr_WriteComplete //unexpected error reported in writeComplete
87 
88     //These error codes indicate errors in the LATM parsing.
89     , PVMFMoutNodeErr_LatmHeaderConvert //codec header conversion failed.
90     , PVMFMoutNodeErr_LatmSampleConvert //audio sample conversion failed.
91 
92     //This error indicates an unexpected error in port processing resulting
93     //in dropped data.
94     , PVMFMoutNodeErr_Unexpected
95 
96     //This value is just a placeholder-- the event will not be reported.
97     , PVMFMoutNodeErr_Last
98 
99     //This value is just a placeholder-- the event will not be reported.
100     , PVMFMoutNodeInfo_First
101 
102     //Notifications of dropped or skipped frames.
103     , PVMFMoutNodeInfo_FramesDropped
104     , PVMFMoutNodeInfo_FramesSkipped
105 
106     //This value is just a placeholder-- the event will not be reported.
107     , PVMFMoutNodeInfo_Last
108 
109 } PVMFMediaOutputNodeErrorInfoEventTypes;
110 
111 #endif // PV_MEDIA_OUTPUT_NODE_EVENTS_H_INCLUDED
112 
113 
114 
115 
116 
117