FACT++  1.0
void MVideo::PrintInputs ( ) const
private

Definition at line 366 of file MVideo.cc.

References fInputs, and gLog.

367 {
368  gLog << all;
369  for (vector<v4l2_input>::const_iterator it=fInputs.begin(); it!=fInputs.end(); it++)
370  {
371  gLog << "Input #" << it->index << endl;
372  gLog << " - " << it->name << endl;
373  gLog << " - " << (it->type==V4L2_INPUT_TYPE_CAMERA?"Camera":"Tuner") << endl;
374  gLog << " - TV Standard: " << hex << it->std << dec << endl;
375 
376  gLog << " - Status: 0x" << hex << it->status;
377  if (it->status&V4L2_IN_ST_NO_POWER)
378  gLog << " NoPower";
379  if (it->status&V4L2_IN_ST_NO_SIGNAL)
380  gLog << " NoSignal";
381  if (it->status&V4L2_IN_ST_NO_COLOR)
382  gLog << " NoColor";
383  if (it->status&V4L2_IN_ST_NO_H_LOCK)
384  gLog << " NoHLock";
385  if (it->status&V4L2_IN_ST_COLOR_KILL)
386  gLog << " ColorKill";
387  gLog << endl;
388 
389  /*
390  TV Standard
391  ===========
392  #define V4L2_STD_PAL_B ((v4l2_std_id)0x00000001)
393  #define V4L2_STD_PAL_B1 ((v4l2_std_id)0x00000002)
394  #define V4L2_STD_PAL_G ((v4l2_std_id)0x00000004)
395  #define V4L2_STD_PAL_H ((v4l2_std_id)0x00000008)
396  #define V4L2_STD_PAL_I ((v4l2_std_id)0x00000010)
397  #define V4L2_STD_PAL_D ((v4l2_std_id)0x00000020)
398  #define V4L2_STD_PAL_D1 ((v4l2_std_id)0x00000040)
399  #define V4L2_STD_PAL_K ((v4l2_std_id)0x00000080)
400 
401  #define V4L2_STD_PAL_M ((v4l2_std_id)0x00000100)
402  #define V4L2_STD_PAL_N ((v4l2_std_id)0x00000200)
403  #define V4L2_STD_PAL_Nc ((v4l2_std_id)0x00000400)
404  #define V4L2_STD_PAL_60 ((v4l2_std_id)0x00000800)
405  V4L2_STD_PAL_60 is a hybrid standard with 525 lines, 60 Hz refresh rate, and PAL color modulation with a 4.43 MHz color subcarrier. Some PAL video recorders can play back NTSC tapes in this mode for display on a 50/60 Hz agnostic PAL TV.
406 
407  #define V4L2_STD_NTSC_M ((v4l2_std_id)0x00001000)
408  #define V4L2_STD_NTSC_M_JP ((v4l2_std_id)0x00002000)
409  #define V4L2_STD_NTSC_443 ((v4l2_std_id)0x00004000)
410  V4L2_STD_NTSC_443 is a hybrid standard with 525 lines, 60 Hz refresh rate, and NTSC color modulation with a 4.43 MHz color subcarrier.
411 
412  #define V4L2_STD_NTSC_M_KR ((v4l2_std_id)0x00008000)
413 
414  #define V4L2_STD_SECAM_B ((v4l2_std_id)0x00010000)
415  #define V4L2_STD_SECAM_D ((v4l2_std_id)0x00020000)
416  #define V4L2_STD_SECAM_G ((v4l2_std_id)0x00040000)
417  #define V4L2_STD_SECAM_H ((v4l2_std_id)0x00080000)
418  #define V4L2_STD_SECAM_K ((v4l2_std_id)0x00100000)
419  #define V4L2_STD_SECAM_K1 ((v4l2_std_id)0x00200000)
420  #define V4L2_STD_SECAM_L ((v4l2_std_id)0x00400000)
421  #define V4L2_STD_SECAM_LC ((v4l2_std_id)0x00800000)
422 
423 
424  // ATSC/HDTV
425  #define V4L2_STD_ATSC_8_VSB ((v4l2_std_id)0x01000000)
426  #define V4L2_STD_ATSC_16_VSB ((v4l2_std_id)0x02000000)
427  V4L2_STD_ATSC_8_VSB and V4L2_STD_ATSC_16_VSB are U.S. terrestrial digital TV standards. Presently the V4L2 API does not support digital TV. See also the Linux DVB API at http://linuxtv.org.
428 
429  #define V4L2_STD_PAL_BG (V4L2_STD_PAL_B | V4L2_STD_PAL_B1 | V4L2_STD_PAL_G)
430  #define V4L2_STD_B (V4L2_STD_PAL_B | V4L2_STD_PAL_B1 | V4L2_STD_SECAM_B)
431  #define V4L2_STD_GH (V4L2_STD_PAL_G | V4L2_STD_PAL_H | V4L2_STD_SECAM_G | V4L2_STD_SECAM_H)
432  #define V4L2_STD_PAL_DK (V4L2_STD_PAL_D | V4L2_STD_PAL_D1 | V4L2_STD_PAL_K)
433  #define V4L2_STD_PAL (V4L2_STD_PAL_BG | V4L2_STD_PAL_DK | V4L2_STD_PAL_H | V4L2_STD_PAL_I)
434  #define V4L2_STD_NTSC (V4L2_STD_NTSC_M | V4L2_STD_NTSC_M_JP | V4L2_STD_NTSC_M_KR)
435  #define V4L2_STD_MN (V4L2_STD_PAL_M | V4L2_STD_PAL_N | V4L2_STD_PAL_Nc | V4L2_STD_NTSC)
436  #define V4L2_STD_SECAM_DK (V4L2_STD_SECAM_D | V4L2_STD_SECAM_K | V4L2_STD_SECAM_K1)
437  #define V4L2_STD_DK (V4L2_STD_PAL_DK | V4L2_STD_SECAM_DK)
438  #define V4L2_STD_SECAM (V4L2_STD_SECAM_B | V4L2_STD_SECAM_G | V4L2_STD_SECAM_H | V4L2_STD_SECAM_DK | V4L2_STD_SECAM_L | V4L2_STD_SECAM_LC)
439  #define V4L2_STD_525_60 (V4L2_STD_PAL_M | V4L2_STD_PAL_60 | V4L2_STD_NTSC | V4L2_STD_NTSC_443)
440  #define V4L2_STD_625_50 (V4L2_STD_PAL | V4L2_STD_PAL_N | V4L2_STD_PAL_Nc | V4L2_STD_SECAM)
441  #define V4L2_STD_UNKNOWN 0
442  #define V4L2_STD_ALL (V4L2_STD_525_60 | V4L2_STD_625_50)
443  */
444 
445  /*
446  Status:
447  =======
448  General
449  V4L2_IN_ST_NO_POWER 0x00000001 Attached device is off.
450  V4L2_IN_ST_NO_SIGNAL 0x00000002
451  V4L2_IN_ST_NO_COLOR 0x00000004 The hardware supports color decoding, but does not detect color modulation in the signal.
452 
453  Analog Video
454  V4L2_IN_ST_NO_H_LOCK 0x00000100 No horizontal sync lock.
455  V4L2_IN_ST_COLOR_KILL 0x00000200 A color killer circuit automatically disables color decoding when it detects no color modulation. When this flag is set the color killer is enabled and has shut off color decoding.
456 
457  Digital Video
458  V4L2_IN_ST_NO_SYNC 0x00010000 No synchronization lock.
459  V4L2_IN_ST_NO_EQU 0x00020000 No equalizer lock.
460  V4L2_IN_ST_NO_CARRIER 0x00040000 Carrier recovery failed.
461 
462  VCR and Set-Top Box
463  V4L2_IN_ST_MACROVISION 0x01000000 Macrovision is an analog copy prevention system mangling the video signal to confuse video recorders. When this flag is set Macrovision has been detected.
464  V4L2_IN_ST_NO_ACCESS 0x02000000 Conditional access denied.
465  V4L2_IN_ST_VTR 0x04000000 VTR time constant. [?]
466  */
467  }
468 }
#define gLog
Definition: fits.h:36
std::vector< v4l2_input > fInputs
Definition: MVideo.h:67