Exemplo n.º 1
0
    $v4l1DeviceFormats = array("PAL" => 0, "NTSC" => 1, "SECAM" => 2, "AUTO" => 3, "FMT4" => 4, "FMT5" => 5, "FMT6" => 6, "FMT7" => 7);
    $v4l1MaxChannels = 15;
    $v4l1DeviceChannels = array();
    for ($i = 0; $i <= $v4l1MaxChannels; $i++) {
        $v4l1DeviceChannels["{$i}"] = $i;
    }
    $v4l1LocalPalettes = array(translate('Grey') => 1, "BGR32" => 5, "BGR24" => 4, "*YUYV" => 8, "*RGB565" => 3, "*RGB555" => 6, "*YUV422" => 7, "*YUV422P" => 13, "*YUV420P" => 15);
}
if (ZM_HAS_V4L2) {
    $v4l2DeviceFormats = array("PAL" => 0xff, "NTSC" => 0xb000, "PAL B" => 0x1, "PAL B1" => 0x2, "PAL G" => 0x4, "PAL H" => 0x8, "PAL I" => 0x10, "PAL D" => 0x20, "PAL D1" => 0x40, "PAL K" => 0x80, "PAL M" => 0x100, "PAL N" => 0x200, "PAL Nc" => 0x400, "PAL 60" => 0x800, "NTSC M" => 0x1000, "NTSC M JP" => 0x2000, "NTSC 443" => 0x4000, "NTSC M KR" => 0x8000, "SECAM B" => 0x10000, "SECAM D" => 0x20000, "SECAM G" => 0x40000, "SECAM H" => 0x80000, "SECAM K" => 0x100000, "SECAM K1" => 0x200000, "SECAM L" => 0x400000, "SECAM LC" => 0x800000, "ATSC 8 VSB" => 0x1000000, "ATSC 16 VSB" => 0x2000000);
    $v4l2MaxChannels = 31;
    $v4l2DeviceChannels = array();
    for ($i = 0; $i <= $v4l2MaxChannels; $i++) {
        $v4l2DeviceChannels["{$i}"] = $i;
    }
    $v4l2LocalPalettes = array("Auto" => 0, translate('Grey') => fourcc('G', 'R', 'E', 'Y'), "BGR32" => fourcc('B', 'G', 'R', '4'), "RGB32" => fourcc('R', 'G', 'B', '4'), "BGR24" => fourcc('B', 'G', 'R', '3'), "RGB24" => fourcc('R', 'G', 'B', '3'), "*YUYV" => fourcc('Y', 'U', 'Y', 'V'), "*JPEG" => fourcc('J', 'P', 'E', 'G'), "*MJPEG" => fourcc('M', 'J', 'P', 'G'), "*RGB444" => fourcc('R', '4', '4', '4'), "*RGB555" => fourcc('R', 'G', 'B', 'O'), "*RGB565" => fourcc('R', 'G', 'B', 'P'), "*UYVY" => fourcc('U', 'Y', 'V', 'Y'), "*YUV422P" => fourcc('4', '2', '2', 'P'), "*YUV411P" => fourcc('4', '1', '1', 'P'), "*YUV444" => fourcc('Y', '4', '4', '4'), "*YUV410" => fourcc('Y', 'U', 'V', '9'), "*YUV420" => fourcc('Y', 'U', '1', '2'));
}
$Colours = array(translate('8BitGrey') => 1, translate('24BitColour') => 3, translate('32BitColour') => 4);
$orientations = array(translate('Normal') => '0', translate('RotateRight') => '90', translate('Inverted') => '180', translate('RotateLeft') => '270', translate('FlippedHori') => 'hori', translate('FlippedVert') => 'vert');
$deinterlaceopts = array("Disabled" => 0x0, "Four field motion adaptive - Soft" => 0x1e04, "Four field motion adaptive - Medium" => 0x1404, "Four field motion adaptive - Hard" => 0xa04, "Discard" => 0x1, "Linear" => 0x2, "Blend" => 0x3, "Blend (25%)" => 0x205);
$deinterlaceopts_v4l2 = array("Disabled" => 0x0, "Four field motion adaptive - Soft" => 0x1e04, "Four field motion adaptive - Medium" => 0x1404, "Four field motion adaptive - Hard" => 0xa04, "Discard" => 0x1, "Linear" => 0x2, "Blend" => 0x3, "Blend (25%)" => 0x205, "V4L2: Capture top field only" => 0x2000000, "V4L2: Capture bottom field only" => 0x3000000, "V4L2: Alternate fields (Bob)" => 0x7000000, "V4L2: Progressive" => 0x1000000, "V4L2: Interlaced" => 0x4000000);
$fastblendopts = array("No blending" => 0, "1.5625%" => 1, "3.125%" => 3, "6.25% (Indoor)" => 6, "12.5% (Outdoor)" => 12, "25%" => 25, "50%" => 50);
$fastblendopts_alarm = array("No blending (Alarm lasts forever)" => 0, "1.5625%" => 1, "3.125%" => 3, "6.25%" => 6, "12.5%" => 12, "25%" => 25, "50% (Alarm lasts a moment)" => 50);
xhtmlHeaders(__FILE__, translate('Monitor') . " - " . validHtmlStr($monitor['Name']));
?>
<body>
  <div id="page">
    <div id="header">
<?php 
if (canEdit('Monitors')) {
    ?>
Exemplo n.º 2
0
unset($httpMethods['jpegTags']);
$v4l1DeviceFormats = array($SLANG['Undefined'] => '', "PAL" => 0, "NTSC" => 1, "SECAM" => 2, "AUTO" => 3, "FMT4" => 4, "FMT5" => 5, "FMT6" => 6, "FMT7" => 7);
$v4l1MaxChannels = 15;
$v4l1DeviceChannels = array();
for ($i = 0; $i <= $v4l1MaxChannels; $i++) {
    $v4l1DeviceChannels["{$i}"] = $i;
}
$v4l1LocalPalettes = array($SLANG['Undefined'] => '', $SLANG['Grey'] => 1, "RGB24" => 4, "RGB565" => 3, "RGB555" => 6, "YUV422" => 7, "YUYV" => 8, "YUV422P" => 13, "YUV420P" => 15);
if (ZM_V4L2) {
    $v4l2DeviceFormats = array($SLANG['Undefined'] => '', "PAL" => 0xff, "NTSC" => 0xb000, "PAL B" => 0x1, "PAL B1" => 0x2, "PAL G" => 0x4, "PAL H" => 0x8, "PAL I" => 0x10, "PAL D" => 0x20, "PAL D1" => 0x40, "PAL K" => 0x80, "PAL M" => 0x100, "PAL N" => 0x200, "PAL Nc" => 0x400, "PAL 60" => 0x800, "NTSC M" => 0x1000, "NTSC M JP" => 0x2000, "NTSC 443" => 0x4000, "NTSC M KR" => 0x8000, "SECAM B" => 0x10000, "SECAM D" => 0x20000, "SECAM G" => 0x40000, "SECAM H" => 0x80000, "SECAM K" => 0x100000, "SECAM K1" => 0x200000, "SECAM L" => 0x400000, "SECAM LC" => 0x800000, "ATSC 8 VSB" => 0x1000000, "ATSC 16 VSB" => 0x2000000);
    $v4l2MaxChannels = 31;
    $v4l2DeviceChannels = array();
    for ($i = 0; $i <= $v4l2MaxChannels; $i++) {
        $v4l2DeviceChannels["{$i}"] = $i;
    }
    $v4l2LocalPalettes = array($SLANG['Undefined'] => '', "RGB444" => fourcc('R', '4', '4', '4'), "RGB555" => fourcc('R', 'G', 'B', 'O'), "RGB565" => fourcc('R', 'G', 'B', 'P'), "BGR24" => fourcc('B', 'G', 'R', '3'), "RGB24" => fourcc('R', 'G', 'B', '3'), "BGR32" => fourcc('B', 'G', 'R', '4'), "RGB32" => fourcc('R', 'G', 'B', '4'), "GREY" => fourcc('G', 'R', 'E', 'Y'), "YUYV" => fourcc('Y', 'U', 'Y', 'V'), "YUV422P" => fourcc('4', '2', '2', 'P'), "YUV411P" => fourcc('4', '1', '1', 'P'), "YUV444" => fourcc('Y', '4', '4', '4'), "YUV410" => fourcc('Y', 'U', 'V', '9'), "YUV420" => fourcc('Y', 'U', '1', '2'), "JPEG" => fourcc('J', 'P', 'E', 'G'));
}
$remoteColours = $fileColours = array($SLANG['8BitGrey'] => 1, $SLANG['24BitColour'] => 3);
$orientations = array($SLANG['Normal'] => '0', $SLANG['RotateRight'] => '90', $SLANG['Inverted'] => '180', $SLANG['RotateLeft'] => '270', $SLANG['FlippedHori'] => 'hori', $SLANG['FlippedVert'] => 'vert');
xhtmlHeaders(__FILE__, $SLANG['Monitor']);
?>
<body>
<div id="page">
    <div id="header">
<?php 
if (canEdit('Monitors')) {
    ?>
      <div id="headerButtons">
        <a href="#" onclick="createPopup( '?view=monitorprobe&mid=<?php 
    echo $monitor['Id'];
    ?>