00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033 #ifndef __OPAL_H281_H
00034 #define __OPAL_H281_H
00035
00036 #ifdef P_USE_PRAGMA
00037 #pragma interface
00038 #endif
00039
00040 #ifndef _PTLIB_H
00041 #include <ptlib.h>
00042 #endif
00043
00044 #include <h224/h224.h>
00045
00046 class H281_Frame : public H224_Frame
00047 {
00048 PCLASSINFO(H281_Frame, H224_Frame);
00049
00050 public:
00051
00052 enum RequestType {
00053 IllegalRequest = 0x00,
00054 StartAction = 0x01,
00055 ContinueAction = 0x02,
00056 StopAction = 0x03,
00057 SelectVideoSource = 0x04,
00058 VideoSourceSwitched = 0x05,
00059 StoreAsPreset = 0x07,
00060 ActivatePreset = 0x08
00061 };
00062
00063 enum PanDirection {
00064 NoPan = 0x00,
00065 IllegalPan = 0x40,
00066 PanLeft = 0x80,
00067 PanRight = 0xc0,
00068 };
00069
00070 enum TiltDirection {
00071 NoTilt = 0x00,
00072 IllegalTilt = 0x10,
00073 TiltDown = 0x20,
00074 TiltUp = 0x30,
00075 };
00076
00077 enum ZoomDirection {
00078 NoZoom = 0x00,
00079 IllegalZoom = 0x04,
00080 ZoomOut = 0x08,
00081 ZoomIn = 0x0c
00082 };
00083
00084 enum FocusDirection {
00085 NoFocus = 0x00,
00086 IllegalFocus = 0x01,
00087 FocusOut = 0x02,
00088 FocusIn = 0x03
00089 };
00090
00091 enum VideoMode {
00092 MotionVideo = 0x00,
00093 IllegalVideoMode = 0x01,
00094 NormalResolutionStillImage = 0x02,
00095 DoubleResolutionStillImage = 0x03
00096 };
00097
00098 H281_Frame();
00099 ~H281_Frame();
00100
00101 RequestType GetRequestType() const { return (RequestType)(GetClientDataPtr())[0]; }
00102 void SetRequestType(RequestType requestType);
00103
00104
00105
00106 PanDirection GetPanDirection() const;
00107 void SetPanDirection(PanDirection direction);
00108
00109 TiltDirection GetTiltDirection() const;
00110 void SetTiltDirection(TiltDirection direction);
00111
00112 ZoomDirection GetZoomDirection() const;
00113 void SetZoomDirection(ZoomDirection direction);
00114
00115 FocusDirection GetFocusDirection() const;
00116 void SetFocusDirection(FocusDirection direction);
00117
00118
00119 BYTE GetTimeout() const;
00120 void SetTimeout(BYTE timeout);
00121
00122
00123 BYTE GetVideoSourceNumber() const;
00124 void SetVideoSourceNumber(BYTE videoSourceNumber);
00125
00126 VideoMode GetVideoMode() const;
00127 void SetVideoMode(VideoMode videoMode);
00128
00129
00130 BYTE GetPresetNumber() const;
00131 void SetPresetNumber(BYTE presetNumber);
00132 };
00133
00134 #endif // __OPAL_H281_H
00135