📄 konica_minolta.php
字号:
if ( array_key_exists( $value, $GLOBALS[ "Minolta_Camera_Setting_Definitions" ][ $i ] ) )
{
// Value is in the lookup table - Add it to the text
$output_str .= $tagname . ": " . $GLOBALS[ "Minolta_Camera_Setting_Definitions" ][ $i ][ $value ] . "\n";
}
else
{
// Value is Not in the lookup table
// Add a message if the user has requested to see unknown tags
if ( $GLOBALS['HIDE_UNKNOWN_TAGS'] == FALSE )
{
$output_str .= $tagname . ": Unknown Reserved Value $value\n";
}
}
}
else if ( $GLOBALS[ "Minolta_Camera_Setting_Definitions" ][ $i ]['Type'] == "Numeric" )
{
// This is a numeric type add it as is to the output, with units
$output_str .= $tagname . ": $value $units\n";
}
else if ( $GLOBALS[ "Minolta_Camera_Setting_Definitions" ][ $i ]['Type'] == "Special" )
{
// This is a special setting, Process it according to the setting number
switch ( $i )
{
case 9: // Apex Film Speed Value
$output_str .= $tagname . ": " . ($value/8-1) . " ( ISO " . ((pow(2,($value/8-1)))*3.125) . " )\n";
break;
case 10: // Apex Shutter Speed Time Value
$output_str .= $tagname . ": " . ($value/8-6);
if ( $value == 8 )
{
$output_str .= " ( 30 seconds )\n";
}
else
{
$output_str .= " ( " . ( pow(2, (48-$value)/8 ) ) . " seconds )\n";
}
break;
case 11: // Apex Aperture Value
$output_str .= $tagname . ": " . ($value/8-1) . " ( F Stop: " . (pow(2,( $value/16-0.5 ))) . " )\n";
break;
case 14: // Exposure Compensation
$output_str .= $tagname . ": " . ($value/3-2) . " $units\n";
break;
case 17: // Interval Length
$output_str .= $tagname . ": " . ($value+1) . " $units\n";
break;
case 19: // Focal Length
$output_str .= $tagname . ": " . ($value/256) . " $units\n";
break;
case 22: // Date
$output_str .= $tagname . ": " . sprintf( "%d/%d/%d", ($value%256), floor(($value - floor($value/65536)*65536)/256 ), floor($value/65536) ) . " $units\n";
break;
case 23: // Time
$output_str .= $tagname . ": " . sprintf( "%2d:%02d:%02d", floor($value/65536), floor(($value - floor($value/65536)*65536)/256 ), ($value%256) ) . " $units\n";
break;
case 24: // Max Aperture at this focal length
$output_str .= $tagname . ": F" . (pow(2,($value/16-0.5))) ." $units\n";
break;
case 29: // White Balance Red
case 30: // White Balance Green
case 31: // White Balance Blue
$output_str .= $tagname . ": " . ($value/256) ." $units\n";
break;
case 32: // Saturation
case 33: // Contrast
$output_str .= $tagname . ": " . ($value-3) ." $units\n";
break;
case 36: // Flash Compensation
$output_str .= $tagname . ": " . (($value-6)/3) ." $units\n";
break;
case 42: // Color Filter
$output_str .= $tagname . ": " . ($value-3) ." $units\n";
break;
case 45: // Apex Brightness Value
$output_str .= $tagname . ": " . ($value/8-6) ." $units\n";
break;
default: // Unknown Special Setting
// If user has requested to see the unknown tags, then add the setting to the output
if ( $GLOBALS['HIDE_UNKNOWN_TAGS'] == FALSE )
{
$output_str .= "Unknown Special Tag: $tagname, Value: $value $units\n";
}
break;
}
}
else
{
// Unknown Setting Type
// If user has requested to see the unknown tags, then add the setting to the output
if ( $GLOBALS['HIDE_UNKNOWN_TAGS'] == FALSE )
{
$output_str .= "Unknown Tag Type Tag $i, Value: " . $value . "\n";
}
}
}
else
{
// Unknown Setting
// If user has requested to see the unknown tags, then add the setting to the output
if ( $GLOBALS['HIDE_UNKNOWN_TAGS'] == FALSE )
{
$output_str .= "Unknown Minolta Camera Setting Tag $i, Value: " . $value . "\n";
}
}
}
}
// Return the text string
return $output_str;
}
else if ( ( $Exif_Tag['Tag Number'] == 0x0088 ) ||
( $Exif_Tag['Tag Number'] == 0x0081 ) )
{
// Konica/Minolta Thumbnail
return "Thumbnail";
}
else
{
return FALSE;
}
}
/******************************************************************************
* End of Function: get_Minolta_Text_Value
******************************************************************************/
/******************************************************************************
* Global Variable: Minolta_Camera_Setting_Definitions
*
* Contents: This global variable provides definitions for the fields
* contained in the Konica/Minolta Camera Settings Makernote tag,
* indexed by their setting number.
*
******************************************************************************/
$GLOBALS[ "Minolta_Camera_Setting_Definitions" ] = array(
2 => array ( 'Name' => "Exposure Mode",
'Type' => "Lookup",
0 => "P",
1 => "A",
2 => "S",
3 => "M" ),
3 => array ( 'Name' => "Flash Mode",
'Type' => "Lookup",
0 => "Normal",
1 => "Red-eye reduction",
2 => "Rear flash sync",
3 => "Wireless" ),
4 => array ( 'Name' => "White Balance",
'Type' => "Lookup",
0 => "Auto",
1 => "Daylight",
2 => "Cloudy",
3 => "Tungsten",
5 => "Custom",
7 => "Fluorescent",
8 => "Fluorescent 2",
11 => "Custom 2",
12 => "Custom 3" ),
5 => array ( 'Name' => "Image Size",
'Type' => "Lookup",
0 => "2560 x 1920 (2048x1536 - DiMAGE 5 only)",
1 => "1600 x 1200",
2 => "1280 x 960",
3 => "640 x 480" ),
6 => array ( 'Name' => "Image Quality",
'Type' => "Lookup",
0 => "Raw",
1 => "Super Fine",
2 => "Fine",
3 => "Standard",
4 => "Economy",
5 => "Extra Fine" ),
7 => array ( 'Name' => "Shooting Mode",
'Type' => "Lookup",
0 => "Single",
1 => "Continuous",
2 => "Self-timer",
4 => "Bracketing",
5 => "Interval",
6 => "UHS Continuous",
7 => "HS Continuous" ),
8 => array ( 'Name' => "Metering Mode",
'Type' => "Lookup",
0 => "Multi-Segment",
1 => "Centre Weighted",
2 => "Spot" ),
9 => array ( 'Name' => "Apex Film Speed Value",
'Type' => "Special" ),
// 09 FilmSpeed , APEX Film Speed Value , Speed value = x/8-1 , ISO= (2^(x/8-1))*3.125
10 => array ( 'Name' => "Apex Shutter Speed Time Value",
'Type' => "Special",
'Units' => "Seconds?" ),
// APEX Time Value , Time value = x/8-6 , ShutterSpeed = 2^( (48-x)/8 ), ! Due to rounding error x=8 should be displayed as 30 sec.
11 => array ( 'Name' => "Apex Aperture Value",
'Type' => "Special" ),
// APEX Aperture Value ApertureValue = x/8-1 , Aperture = 2^( x/16-0.5 )
12 => array ( 'Name' => "Macro Mode",
'Type' => "Lookup",
0 => "Off",
1 => "On" ),
13 => array ( 'Name' => "Digital Zoom",
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -