Home | History | Annotate | Download | only in include
      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 pvmf_media_input_node_events.h
     20  * @brief
     21  */
     22 
     23 #ifndef PV_COMMS_IO_NODE_EVENTS_H_INCLUDED
     24 #define PV_COMMS_IO_NODE_EVENTS_H_INCLUDED
     25 
     26 /**
     27  UUID for file format error and information event type codes
     28  **/
     29 #define PVCommsIONodeEventTypesUUID PVUuid(0x57598870,0xa620,0x11d9,0x96,0x69,0x08,0x00,0x20,0x0c,0x9a,0x66)
     30 
     31 /**
     32  Event codes for Media I/O Node events.
     33  All the messages are of type PVMFBasicErrorInfoMessage
     34 **/
     35 typedef enum
     36 {
     37     //This value is just a placeholder-- the event will not be reported.
     38     PVCommsIONodeErr_First = 1024
     39 
     40     //This error code indicates that no ports exist, but ports are
     41     //required to complete the command.
     42     , PVCommsIONodeErr_NoPorts
     43 
     44     //This error code indicates that a port referenced in a command
     45     //does not exist.
     46     , PVCommsIONodeErr_PortNotExist
     47 
     48     //This error code indicates that a Cancel command failed
     49     //because the indicated command is no longer queueud.
     50     , PVCommsIONodeErr_CmdNotQueued
     51 
     52     //This error code indicates that the Media I/O component does not exist
     53     , PVCommsIONodeErr_MediaIONotExist
     54 
     55     //This error code indicates that the Media I/O component was in
     56     //an unexpected state when the node tried to issue a command.
     57     , PVCommsIONodeErr_MediaIOWrongState
     58 
     59     //These error codes indicate that a specific command to the
     60     //Media I/O control component failed.
     61     , PVCommsIONodeErr_MediaIOConnect
     62     , PVCommsIONodeErr_MediaIOQueryCapConfigInterface//query for capability & config interface
     63     , PVCommsIONodeErr_MediaIOInit
     64     , PVCommsIONodeErr_MediaIOStart
     65     , PVCommsIONodeErr_MediaIOPause
     66     , PVCommsIONodeErr_MediaIOStop
     67     , PVCommsIONodeErr_MediaIOFlush
     68     , PVCommsIONodeErr_MediaIOCancelCommand
     69 
     70     //These error codes indicate errors in the data transfer
     71     , PVCommsIONodeErr_WriteAsync //unexpeced leave in writeAsync
     72     , PVCommsIONodeErr_WriteComplete //unexpected error reported in writeComplete
     73 
     74     //This value is just a placeholder-- the event will not be reported.
     75     , PVCommsIONodeErr_Last
     76 
     77     //This value is just a placeholder-- the event will not be reported.
     78     , PVCommsIONodeInfo_First
     79 
     80     //Notifications of dropped or skipped frames.
     81     , PVCommsIONodeInfo_FramesDropped
     82     , PVCommsIONodeInfo_FramesSkipped
     83 
     84     //This value is just a placeholder-- the event will not be reported.
     85     , PVCommsIONodeInfo_Last
     86 
     87 } PVCommsIONodeErrorInfoEventTypes;
     88 
     89 #endif // PV_COMMS_IO_NODE_EVENTS_H_INCLUDED
     90 
     91 
     92 
     93 
     94 
     95