FACT++  1.0
void MVideo::Print ( ) const

Definition at line 1039 of file MVideo.cc.

References video_capability::audios, video_picture::brightness, video_channel::channel, video_capability::channels, video_picture::colour, video_picture::contrast, video_picture::depth, fAbil, fCaps, fChannel, fControls, fFileDesc, video_channel::flags, video_tuner::flags, fPath, fProp, GetChannelFlags(), GetChannelType(), GetDevType(), GetPalette(), GetTunerFlags(), GetTunerMode(), gLog, video_picture::hue, video_capability::maxheight, video_capability::maxwidth, video_capability::minheight, video_capability::minwidth, video_tuner::mode, video_capability::name, video_channel::name, video_tuner::name, video_channel::norm, video_picture::palette, video_tuner::signal, video_tuner::tuner, video_capability::type, video_channel::type, and video_picture::whiteness.

1040 {
1041  gLog << all << dec;
1042 
1043  gLog << "Device " << fPath << " " << (fFileDesc>0?"open":"closed") << "." << endl;
1044 
1045  if (fFileDesc<=0)
1046  return;
1047 
1048  gLog << " - Name: " << fCaps.name << endl;
1049  gLog << " - DevType: " << GetDevType(fCaps.type) << endl;
1050  gLog << " - Channels: " << fCaps.channels << endl;
1051  gLog << " - Audios: " << fCaps.audios << endl;
1052  gLog << " - Size: ";
1053  gLog << fCaps.minwidth << "x" << fCaps.minheight << " to ";
1054  gLog << fCaps.maxwidth << "x" << fCaps.maxheight << endl;
1055  gLog << endl;
1056  if (fChannel.channel>=0)
1057  {
1058  gLog << " - Channel: " << fChannel.channel << " (" << fChannel.name << ")" << endl;
1059  gLog << " - IsA: " << GetChannelType(fChannel.type) << " with " << GetChannelFlags(fChannel.flags) << " (" << fChannel.flags << ")" << endl;
1060  //if (fChannel.flags&VIDEO_VC_NORM)
1061  gLog << " - Norm: " << fChannel.norm << endl;
1062  gLog << endl;
1063  }
1064 
1065  if (fAbil.tuner>=0)
1066  {
1067  gLog << " - Tuner: " << fAbil.tuner << endl;
1068  gLog << " - Name: " << fAbil.name << endl;
1069  // gLog << " - Tuner Range: " << fAbil.rangelow << " - " << fAbil.rangehigh << endl;
1070  gLog << " - Tuner flags: " << GetTunerFlags(fAbil.flags) << " (" << fAbil.flags << ")" << endl;
1071  gLog << " - Tuner mode: " << GetTunerMode(fAbil.mode) << " (" << fAbil.mode << ")" <<endl;
1072  gLog << " - Signal Strength: " << fAbil.signal << endl;
1073  }
1074 
1075  gLog << " - Brightness: " << fProp.brightness << endl;
1076  gLog << " - Hue: " << fProp.hue << endl;
1077  gLog << " - Color: " << fProp.colour << endl;
1078  gLog << " - Contrast: " << fProp.contrast << endl;
1079  gLog << " - Whiteness: " << fProp.whiteness << endl;
1080  gLog << " - Depth: " << fProp.depth << endl;
1081  gLog << " - Palette: " << GetPalette(fProp.palette) << " (" << fProp.palette << ")" << endl;
1082  gLog << endl;
1083 
1084 // gLog << " - BufferSize: 0x" << hex << fBuffer.size << " (" << dec << fBuffer.frames << " frames)" << endl;
1085 // gLog << " - Offsets: " << hex;
1086 // for (int i=0; i<fBuffer.frames; i++)
1087 // gLog << " 0x" << fBuffer.offsets[i];
1088 // gLog << dec << endl;
1089 
1090  gLog << inf2 << "Controls:" << endl;
1091  fControls.Print();
1092 }
char name[32]
Definition: videodev.h:60
struct video_picture fProp
Definition: MVideo.h:62
__u32 flags
Definition: videodev.h:76
__u32 flags
Definition: videodev.h:90
int fFileDesc
Definition: MVideo.h:54
TString fPath
Definition: MVideo.h:52
__u16 depth
Definition: videodev.h:112
__u16 norm
Definition: videodev.h:82
__u16 palette
Definition: videodev.h:113
struct video_capability fCaps
Definition: MVideo.h:59
#define gLog
Definition: fits.h:36
TString GetDevType(int type) const
Definition: MVideo.cc:905
__u16 contrast
Definition: videodev.h:110
TString GetPalette(Int_t pal) const
Definition: MVideo.cc:998
__u16 mode
Definition: videodev.h:97
__u16 brightness
Definition: videodev.h:107
TList fControls
Definition: MVideo.h:71
TString GetTunerMode(Int_t type) const
Definition: MVideo.cc:949
char name[32]
Definition: videodev.h:74
TString GetChannelFlags(Int_t flags) const
Definition: MVideo.cc:969
__u16 signal
Definition: videodev.h:102
TString GetTunerFlags(Int_t type) const
Definition: MVideo.cc:931
struct video_channel fChannel
Definition: MVideo.h:60
struct video_tuner fAbil
Definition: MVideo.h:63
int tuner
Definition: videodev.h:87
char name[32]
Definition: videodev.h:88
__u16 colour
Definition: videodev.h:109
TString GetChannelType(Int_t type) const
Definition: MVideo.cc:985
__u16 type
Definition: videodev.h:79
__u16 whiteness
Definition: videodev.h:111

+ Here is the call graph for this function: