diff options
author | Edgard Lima <edgard.lima@indt.org.br> | 2008-01-31 21:55:44 +0000 |
---|---|---|
committer | Edgard Lima <edgard.lima@indt.org.br> | 2008-01-31 21:55:44 +0000 |
commit | 7a44301116944d95af91dca94eae3802dd776121 (patch) | |
tree | 663f8eb5460faf26c85afd4db79dc68d58229d1c /ext | |
parent | 4f2db55e29380a3b4279c09a978b16d86e96d392 (diff) | |
download | gst-plugins-bad-7a44301116944d95af91dca94eae3802dd776121.tar.gz gst-plugins-bad-7a44301116944d95af91dca94eae3802dd776121.tar.bz2 gst-plugins-bad-7a44301116944d95af91dca94eae3802dd776121.zip |
Add documentation.
Original commit message from CVS:
Add documentation.
Diffstat (limited to 'ext')
-rw-r--r-- | ext/metadata/metadata_mapping.htm | 664 | ||||
-rw-r--r-- | ext/metadata/metadataexif.c | 1 | ||||
-rw-r--r-- | ext/metadata/metadataiptc.c | 1 | ||||
-rw-r--r-- | ext/metadata/metadatatags.c | 136 | ||||
-rw-r--r-- | ext/metadata/metadatatags.h | 34 | ||||
-rw-r--r-- | ext/metadata/metadataxmp.c | 2 |
6 files changed, 762 insertions, 76 deletions
diff --git a/ext/metadata/metadata_mapping.htm b/ext/metadata/metadata_mapping.htm new file mode 100644 index 00000000..af9b6c7d --- /dev/null +++ b/ext/metadata/metadata_mapping.htm @@ -0,0 +1,664 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> +<HTML> +<HEAD> + <META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=utf-8"> + <TITLE></TITLE> + <META NAME="GENERATOR" CONTENT="OpenOffice.org 2.3 (Linux)"> + <META NAME="AUTHOR" CONTENT="Edgard Lima"> + <META NAME="CREATED" CONTENT="20080131;12581600"> + <META NAME="CHANGEDBY" CONTENT="Edgard Lima"> + <META NAME="CHANGED" CONTENT="20080131;23155400"> + <META NAME="CHANGEDBY" CONTENT="Edgard Lima"> + <STYLE TYPE="text/css"> + <!-- + @page { size: landscape; margin: 2cm } + TD P { margin-bottom: 0cm } + TD P.western { so-language: en-US } + P { margin-bottom: 0.21cm } + P.western { so-language: en-US } + --> + </STYLE> +</HEAD> +<BODY LANG="en-US" DIR="LTR"> +<P CLASS="western" STYLE="margin-bottom: 0cm"><BR> +</P> +<TABLE WIDTH=100% BORDER=1 BORDERCOLOR="#000000" CELLPADDING=4 CELLSPACING=0> + <COL WIDTH=32*> + <COL WIDTH=39*> + <COL WIDTH=25*> + <COL WIDTH=32*> + <COL WIDTH=32*> + <COL WIDTH=32*> + <COL WIDTH=32*> + <COL WIDTH=32*> + <TR VALIGN=TOP> + <TD WIDTH=12% BGCOLOR="#cccccc"> + <P CLASS="western" ALIGN=CENTER><FONT SIZE=1 STYLE="font-size: 8pt"><B>gsttaglist.h</B></FONT></P> + </TD> + <TD WIDTH=15% BGCOLOR="#cccccc"> + <P CLASS="western" ALIGN=CENTER><FONT SIZE=1 STYLE="font-size: 8pt"><B>metadatatags.h</B></FONT></P> + </TD> + <TD WIDTH=10% BGCOLOR="#cccccc"> + <P CLASS="western" ALIGN=CENTER><FONT SIZE=1 STYLE="font-size: 8pt"><B>value</B></FONT></P> + </TD> + <TD WIDTH=12% BGCOLOR="#cccccc"> + <P CLASS="western" ALIGN=CENTER><FONT SIZE=1 STYLE="font-size: 8pt"><B>type</B></FONT></P> + </TD> + <TD WIDTH=12% BGCOLOR="#cccccc"> + <P CLASS="western" ALIGN=CENTER><FONT SIZE=1 STYLE="font-size: 8pt"><B>description</B></FONT></P> + </TD> + <TD WIDTH=12% BGCOLOR="#cccccc"> + <P CLASS="western" ALIGN=CENTER><FONT SIZE=1 STYLE="font-size: 8pt"><B>EXIF</B></FONT></P> + </TD> + <TD WIDTH=12% BGCOLOR="#cccccc"> + <P CLASS="western" ALIGN=CENTER><FONT SIZE=1 STYLE="font-size: 8pt"><B>IPTC</B></FONT></P> + </TD> + <TD WIDTH=13% BGCOLOR="#cccccc"> + <P CLASS="western" ALIGN=CENTER><FONT SIZE=1 STYLE="font-size: 8pt"><B>XMP</B></FONT></P> + </TD> + </TR> + <TR VALIGN=TOP> + <TD WIDTH=12%> + <P CLASS="western" ALIGN=CENTER><FONT SIZE=1 STYLE="font-size: 8pt">-</FONT></P> + </TD> + <TD WIDTH=15%> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">GST_TAG_EXIF</FONT></P> + </TD> + <TD WIDTH=10%> + <P CLASS="western" ALIGN=LEFT>“<FONT SIZE=1 STYLE="font-size: 8pt">exif”</FONT></P> + </TD> + <TD WIDTH=12%> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">GST_TYPE_BUFFER</FONT></P> + </TD> + <TD WIDTH=12%> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">exif + chunk that could be used directly by the application</FONT></P> + </TD> + <TD WIDTH=12%> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">exif_data_new_from_data()</FONT></P> + </TD> + <TD WIDTH=12%> + <P CLASS="western" ALIGN=CENTER><FONT SIZE=1 STYLE="font-size: 8pt">-</FONT></P> + </TD> + <TD WIDTH=13%> + <P CLASS="western" ALIGN=CENTER><FONT SIZE=1 STYLE="font-size: 8pt">-</FONT></P> + </TD> + </TR> + <TR VALIGN=TOP> + <TD WIDTH=12% BGCOLOR="#e6e6ff"> + <P CLASS="western" ALIGN=CENTER><FONT SIZE=1 STYLE="font-size: 8pt">-</FONT></P> + </TD> + <TD WIDTH=15% BGCOLOR="#e6e6ff"> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">GST_TAG_IPTC</FONT></P> + </TD> + <TD WIDTH=10% BGCOLOR="#e6e6ff"> + <P CLASS="western" ALIGN=LEFT>“<FONT SIZE=1 STYLE="font-size: 8pt">iptc”</FONT></P> + </TD> + <TD WIDTH=12% BGCOLOR="#e6e6ff"> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">GST_TYPE_BUFFER</FONT></P> + </TD> + <TD WIDTH=12% BGCOLOR="#e6e6ff"> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">iptc + chunk that could be used directly by the application</FONT></P> + </TD> + <TD WIDTH=12% BGCOLOR="#e6e6ff"> + <P CLASS="western" ALIGN=CENTER><FONT SIZE=1 STYLE="font-size: 8pt">-</FONT></P> + </TD> + <TD WIDTH=12% BGCOLOR="#e6e6ff"> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">iptc_data_new_from_data()</FONT></P> + </TD> + <TD WIDTH=13% BGCOLOR="#e6e6ff"> + <P CLASS="western" ALIGN=CENTER><FONT SIZE=1 STYLE="font-size: 8pt">-</FONT></P> + </TD> + </TR> + <TR VALIGN=TOP> + <TD WIDTH=12%> + <P CLASS="western" ALIGN=CENTER><FONT SIZE=1 STYLE="font-size: 8pt">-</FONT></P> + </TD> + <TD WIDTH=15%> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">GST_TAG_XMP</FONT></P> + </TD> + <TD WIDTH=10%> + <P CLASS="western" ALIGN=LEFT>“<FONT SIZE=1 STYLE="font-size: 8pt">xmp”</FONT></P> + </TD> + <TD WIDTH=12%> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">GST_TYPE_BUFFER</FONT></P> + </TD> + <TD WIDTH=12%> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">xmp + chunk that could be used directly by the application</FONT></P> + </TD> + <TD WIDTH=12%> + <P CLASS="western" ALIGN=CENTER><FONT SIZE=1 STYLE="font-size: 8pt">-</FONT></P> + </TD> + <TD WIDTH=12%> + <P CLASS="western" ALIGN=CENTER><FONT SIZE=1 STYLE="font-size: 8pt">-</FONT></P> + </TD> + <TD WIDTH=13%> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">xmp_new()</FONT></P> + </TD> + </TR> + <TR VALIGN=TOP> + <TD WIDTH=12% BGCOLOR="#e6e6ff"> + <P CLASS="western" ALIGN=CENTER><FONT SIZE=1 STYLE="font-size: 8pt">-</FONT></P> + </TD> + <TD WIDTH=15% BGCOLOR="#e6e6ff"> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">GST_TAG_CAPTURE_BRIGHTNESS</FONT></P> + </TD> + <TD WIDTH=10% BGCOLOR="#e6e6ff"> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">"capture-brightness"</FONT></P> + </TD> + <TD WIDTH=12% BGCOLOR="#e6e6ff"> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">GST_TYPE_FRACTION</FONT></P> + </TD> + <TD WIDTH=12% BGCOLOR="#e6e6ff"> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">"Brightness + (APEX from -99.99 to 99.99)"</FONT></P> + </TD> + <TD WIDTH=12% BGCOLOR="#e6e6ff"> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">EXIF_TAG_BRIGHTNESS_VALUE</FONT></P> + </TD> + <TD WIDTH=12% BGCOLOR="#e6e6ff"> + <P CLASS="western" ALIGN=CENTER><FONT SIZE=1 STYLE="font-size: 8pt">-</FONT></P> + </TD> + <TD WIDTH=13% BGCOLOR="#e6e6ff"> + <P CLASS="western" ALIGN=CENTER><FONT SIZE=1 STYLE="font-size: 8pt">-</FONT></P> + </TD> + </TR> + <TR VALIGN=TOP> + <TD WIDTH=12%> + <P CLASS="western" ALIGN=CENTER><FONT SIZE=1 STYLE="font-size: 8pt">-</FONT></P> + </TD> + <TD WIDTH=15%> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">GST_TAG_CAPTURE_CONTRAST</FONT></P> + </TD> + <TD WIDTH=10%> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">"capture-contrast"</FONT></P> + </TD> + <TD WIDTH=12%> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">G_TYPE_INT</FONT></P> + </TD> + <TD WIDTH=12%> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">from + -100 to 100:<BR>[-100, -34] – soft ;<BR>[-33, 33] – normal + ;<BR>[34, 100] – hard </FONT> + </P> + </TD> + <TD WIDTH=12%> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">EXIF_TAG_CONTRAST<BR>0- + normal;<BR>1- soft;<BR>2- hard</FONT></P> + </TD> + <TD WIDTH=12%> + <P CLASS="western" ALIGN=CENTER><FONT SIZE=1 STYLE="font-size: 8pt">-</FONT></P> + </TD> + <TD WIDTH=13%> + <P CLASS="western" ALIGN=CENTER><FONT SIZE=1 STYLE="font-size: 8pt">-</FONT></P> + </TD> + </TR> + <TR VALIGN=TOP> + <TD WIDTH=12% BGCOLOR="#e6e6ff"> + <P CLASS="western" ALIGN=CENTER><FONT SIZE=1 STYLE="font-size: 8pt">-</FONT></P> + </TD> + <TD WIDTH=15% BGCOLOR="#e6e6ff"> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">GST_TAG_CAPTURE_DIGITAL_ZOOM</FONT></P> + </TD> + <TD WIDTH=10% BGCOLOR="#e6e6ff"> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">"capture-digital-zoom"</FONT></P> + </TD> + <TD WIDTH=12% BGCOLOR="#e6e6ff"> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">GST_TYPE_FRACTION</FONT></P> + </TD> + <TD WIDTH=12% BGCOLOR="#e6e6ff"> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">"Digital + zoom ratio"<BR>(zero, means digital zoom not used)</FONT></P> + </TD> + <TD WIDTH=12% BGCOLOR="#e6e6ff"> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">EXIF_TAG_DIGITAL_ZOOM_RATIO</FONT></P> + </TD> + <TD WIDTH=12% BGCOLOR="#e6e6ff"> + <P CLASS="western" ALIGN=CENTER><FONT SIZE=1 STYLE="font-size: 8pt">-</FONT></P> + </TD> + <TD WIDTH=13% BGCOLOR="#e6e6ff"> + <P CLASS="western" ALIGN=CENTER><FONT SIZE=1 STYLE="font-size: 8pt">-</FONT></P> + </TD> + </TR> + <TR VALIGN=TOP> + <TD WIDTH=12%> + <P CLASS="western" ALIGN=CENTER><FONT SIZE=1 STYLE="font-size: 8pt">-</FONT></P> + </TD> + <TD WIDTH=15%> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">GST_TAG_CAPTURE_EXPOSURE_PROGRAM</FONT></P> + </TD> + <TD WIDTH=10%> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">"capture-exposure-program"</FONT></P> + </TD> + <TD WIDTH=12%> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">G_TYPE_UINT</FONT></P> + </TD> + <TD WIDTH=12%> + <P CLASS="western" ALIGN=LEFT STYLE="margin-bottom: 0.5cm"><FONT SIZE=1 STYLE="font-size: 8pt">0 + - not defined ; 1- Manual; 2- Normal program ; 3- Aperture + priority ; 4- Shutter priority ; 5- Creative program (biased + toward death of field); 6- Action program (biased toward fast + shutter speed); 7- Portrait mode (for closeup photos with the + background out of focus) ; 8- Landscape mode (for landscape photos + with the background in focus) </FONT> + </P> + <P CLASS="western" ALIGN=LEFT STYLE="margin-bottom: 0.5cm"><FONT SIZE=1 STYLE="font-size: 8pt">*** + exif is until here *** </FONT> + </P> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">9- + Night ; 10- Back-light ; 11- Spotlight ; 12- Snow ; 13- Beach </FONT> + </P> + </TD> + <TD WIDTH=12%> + <P CLASS="western" ALIGN=LEFT STYLE="margin-bottom: 0.5cm"><FONT SIZE=1 STYLE="font-size: 8pt">EXIF_TAG_EXPOSURE_PROGRAM</FONT></P> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">(only + from 0 to 8)</FONT></P> + </TD> + <TD WIDTH=12%> + <P CLASS="western" ALIGN=CENTER><FONT SIZE=1 STYLE="font-size: 8pt">-</FONT></P> + </TD> + <TD WIDTH=13%> + <P CLASS="western" ALIGN=CENTER><FONT SIZE=1 STYLE="font-size: 8pt">-</FONT></P> + </TD> + </TR> + <TR VALIGN=TOP> + <TD WIDTH=12% BGCOLOR="#e6e6ff"> + <P CLASS="western" ALIGN=CENTER><FONT SIZE=1 STYLE="font-size: 8pt">-</FONT></P> + </TD> + <TD WIDTH=15% BGCOLOR="#e6e6ff"> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">GST_TAG_CAPTURE_EXPOSURE_TIME</FONT></P> + </TD> + <TD WIDTH=10% BGCOLOR="#e6e6ff"> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">"capture-exposure-time"</FONT></P> + </TD> + <TD WIDTH=12% BGCOLOR="#e6e6ff"> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">GST_TYPE_FRACTION</FONT></P> + </TD> + <TD WIDTH=12% BGCOLOR="#e6e6ff"> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">"Exposure + time in seconds"</FONT></P> + </TD> + <TD WIDTH=12% BGCOLOR="#e6e6ff"> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">EXIF_TAG_EXPOSURE_TIME</FONT></P> + </TD> + <TD WIDTH=12% BGCOLOR="#e6e6ff"> + <P CLASS="western" ALIGN=CENTER><FONT SIZE=1 STYLE="font-size: 8pt">-</FONT></P> + </TD> + <TD WIDTH=13% BGCOLOR="#e6e6ff"> + <P CLASS="western" ALIGN=CENTER><FONT SIZE=1 STYLE="font-size: 8pt">-</FONT></P> + </TD> + </TR> + <TR VALIGN=TOP> + <TD WIDTH=12%> + <P CLASS="western" ALIGN=CENTER><FONT SIZE=1 STYLE="font-size: 8pt">-</FONT></P> + </TD> + <TD WIDTH=15%> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">GST_TAG_CAPTURE_FNUMBER</FONT></P> + </TD> + <TD WIDTH=10%> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">"captute-fnumber"</FONT></P> + </TD> + <TD WIDTH=12%> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">GST_TYPE_FRACTION</FONT></P> + </TD> + <TD WIDTH=12%> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">"F + number (focal ratio)"</FONT></P> + </TD> + <TD WIDTH=12%> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">EXIF_TAG_FNUMBER</FONT></P> + </TD> + <TD WIDTH=12%> + <P CLASS="western" ALIGN=CENTER><FONT SIZE=1 STYLE="font-size: 8pt">-</FONT></P> + </TD> + <TD WIDTH=13%> + <P CLASS="western" ALIGN=CENTER><FONT SIZE=1 STYLE="font-size: 8pt">-</FONT></P> + </TD> + </TR> + <TR VALIGN=TOP> + <TD WIDTH=12% BGCOLOR="#e6e6ff"> + <P CLASS="western" ALIGN=CENTER><FONT SIZE=1 STYLE="font-size: 8pt">-</FONT></P> + </TD> + <TD WIDTH=15% BGCOLOR="#e6e6ff"> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">GST_TAG_CAPTURE_GAIN</FONT></P> + </TD> + <TD WIDTH=10% BGCOLOR="#e6e6ff"> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">"capture-gain"</FONT></P> + </TD> + <TD WIDTH=12% BGCOLOR="#e6e6ff"> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">G_TYPE_UINT</FONT></P> + </TD> + <TD WIDTH=12% BGCOLOR="#e6e6ff"> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">0- + None ; 1- Low gain up ; 2- High gain up ; 3- Low gain down ; 4- + High gain down</FONT></P> + </TD> + <TD WIDTH=12% BGCOLOR="#e6e6ff"> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">EXIF_TAG_GAIN_CONTROL</FONT></P> + </TD> + <TD WIDTH=12% BGCOLOR="#e6e6ff"> + <P CLASS="western" ALIGN=CENTER><FONT SIZE=1 STYLE="font-size: 8pt">-</FONT></P> + </TD> + <TD WIDTH=13% BGCOLOR="#e6e6ff"> + <P CLASS="western" ALIGN=CENTER><FONT SIZE=1 STYLE="font-size: 8pt">-</FONT></P> + </TD> + </TR> + <TR VALIGN=TOP> + <TD WIDTH=12%> + <P CLASS="western" ALIGN=CENTER><FONT SIZE=1 STYLE="font-size: 8pt">-</FONT></P> + </TD> + <TD WIDTH=15%> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">GST_TAG_CAPTURE_SATURATION</FONT></P> + </TD> + <TD WIDTH=10%> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">"capture-saturation"</FONT></P> + </TD> + <TD WIDTH=12%> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">G_TYPE_INT</FONT></P> + </TD> + <TD WIDTH=12%> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">from + -100 to 100:<BR>[-100, -34] – low ;<BR>[-33, 33] – normal + ;<BR>[34, 100] - high</FONT></P> + </TD> + <TD WIDTH=12%> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">EXIF_TAG_SATURATION<BR>0- + normal;<BR>1- low;<BR>2- high</FONT></P> + </TD> + <TD WIDTH=12%> + <P CLASS="western" ALIGN=CENTER><FONT SIZE=1 STYLE="font-size: 8pt">-</FONT></P> + </TD> + <TD WIDTH=13%> + <P CLASS="western" ALIGN=CENTER><FONT SIZE=1 STYLE="font-size: 8pt">-</FONT></P> + </TD> + </TR> + <TR VALIGN=TOP> + <TD WIDTH=12% BGCOLOR="#e6e6ff"> + <P CLASS="western" ALIGN=CENTER><FONT SIZE=1 STYLE="font-size: 8pt">-</FONT></P> + </TD> + <TD WIDTH=15% BGCOLOR="#e6e6ff"> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">GST_TAG_CAPTURE_WHITE_BALANCE</FONT></P> + </TD> + <TD WIDTH=10% BGCOLOR="#e6e6ff"> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">"capture-white-balance"</FONT></P> + </TD> + <TD WIDTH=12% BGCOLOR="#e6e6ff"> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">G_TYPE_UINT</FONT></P> + </TD> + <TD WIDTH=12% BGCOLOR="#e6e6ff"> + <P CLASS="western" ALIGN=LEFT STYLE="margin-bottom: 0.5cm"><FONT SIZE=1 STYLE="font-size: 8pt">0- + Auto; 1- Off </FONT> + </P> + <P CLASS="western" ALIGN=LEFT STYLE="margin-bottom: 0.5cm"><FONT SIZE=1 STYLE="font-size: 8pt">*** + exif is until here *** </FONT> + </P> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">2- + Sunlight ; 3- Cloudy ; 4- Shade ; 5- Tungsten ; 6- Fluorescent ; + 7- Incandescent; 8- Flash ; 9- Horizon (sun on the horizon)</FONT></P> + </TD> + <TD WIDTH=12% BGCOLOR="#e6e6ff"> + <P CLASS="western" ALIGN=LEFT STYLE="margin-bottom: 0.5cm"><FONT SIZE=1 STYLE="font-size: 8pt">EXIF_TAG_WHITE_BALANCE</FONT></P> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">(only + 0 and 1)</FONT></P> + </TD> + <TD WIDTH=12% BGCOLOR="#e6e6ff"> + <P CLASS="western" ALIGN=CENTER><FONT SIZE=1 STYLE="font-size: 8pt">-</FONT></P> + </TD> + <TD WIDTH=13% BGCOLOR="#e6e6ff"> + <P CLASS="western" ALIGN=CENTER><FONT SIZE=1 STYLE="font-size: 8pt">-</FONT></P> + </TD> + </TR> + <TR VALIGN=TOP> + <TD WIDTH=12%> + <P CLASS="western" ALIGN=CENTER><FONT SIZE=1 STYLE="font-size: 8pt">-</FONT></P> + </TD> + <TD WIDTH=15%> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">GST_TAG_CREATOR_TOOL</FONT></P> + </TD> + <TD WIDTH=10%> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">"creator-tool"</FONT></P> + </TD> + <TD WIDTH=12%> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">G_TYPE_STRING</FONT></P> + </TD> + <TD WIDTH=12%> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">"The + name of the first known tool used to create the resource. Or + firmware or driver version of device"</FONT></P> + </TD> + <TD WIDTH=12%> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">EXIF_TAG_SOFTWARE</FONT></P> + </TD> + <TD WIDTH=12%> + <P CLASS="western" ALIGN=CENTER><FONT SIZE=1 STYLE="font-size: 8pt">-</FONT></P> + </TD> + <TD WIDTH=13%> + <P CLASS="western" ALIGN=CENTER><FONT SIZE=1 STYLE="font-size: 8pt">-</FONT></P> + </TD> + </TR> + <TR VALIGN=TOP> + <TD WIDTH=12% BGCOLOR="#e6e6ff"> + <P CLASS="western" ALIGN=CENTER><FONT SIZE=1 STYLE="font-size: 8pt">-</FONT></P> + </TD> + <TD WIDTH=15% BGCOLOR="#e6e6ff"> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">GST_TAG_DEVICE_MAKE</FONT></P> + </TD> + <TD WIDTH=10% BGCOLOR="#e6e6ff"> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">"device-make"</FONT></P> + </TD> + <TD WIDTH=12% BGCOLOR="#e6e6ff"> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">G_TYPE_STRING</FONT></P> + </TD> + <TD WIDTH=12% BGCOLOR="#e6e6ff"> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">"The + manufacturer of the recording equipment"</FONT></P> + </TD> + <TD WIDTH=12% BGCOLOR="#e6e6ff"> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">EXIF_TAG_MAKE</FONT></P> + </TD> + <TD WIDTH=12% BGCOLOR="#e6e6ff"> + <P CLASS="western" ALIGN=CENTER><FONT SIZE=1 STYLE="font-size: 8pt">-</FONT></P> + </TD> + <TD WIDTH=13% BGCOLOR="#e6e6ff"> + <P CLASS="western" ALIGN=CENTER><FONT SIZE=1 STYLE="font-size: 8pt">-</FONT></P> + </TD> + </TR> + <TR VALIGN=TOP> + <TD WIDTH=12%> + <P CLASS="western" ALIGN=CENTER><FONT SIZE=1 STYLE="font-size: 8pt">-</FONT></P> + </TD> + <TD WIDTH=15%> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">GST_TAG_DEVICE_MODEL</FONT></P> + </TD> + <TD WIDTH=10%> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">"device-model"</FONT></P> + </TD> + <TD WIDTH=12%> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">G_TYPE_STRING</FONT></P> + </TD> + <TD WIDTH=12%> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">"The + model name or model number of the equipment"</FONT></P> + </TD> + <TD WIDTH=12%> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">EXIF_TAG_MODEL</FONT></P> + </TD> + <TD WIDTH=12%> + <P CLASS="western" ALIGN=CENTER><FONT SIZE=1 STYLE="font-size: 8pt">-</FONT></P> + </TD> + <TD WIDTH=13%> + <P CLASS="western" ALIGN=CENTER><FONT SIZE=1 STYLE="font-size: 8pt">-</FONT></P> + </TD> + </TR> + <TR VALIGN=TOP> + <TD WIDTH=12% BGCOLOR="#e6e6ff"> + <P CLASS="western" ALIGN=CENTER><FONT SIZE=1 STYLE="font-size: 8pt">-</FONT></P> + </TD> + <TD WIDTH=15% BGCOLOR="#e6e6ff"> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">GST_TAG_IMAGE_XRESOLUTION</FONT></P> + </TD> + <TD WIDTH=10% BGCOLOR="#e6e6ff"> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">"image-xresolution"</FONT></P> + </TD> + <TD WIDTH=12% BGCOLOR="#e6e6ff"> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">GST_TYPE_FRACTION</FONT></P> + </TD> + <TD WIDTH=12% BGCOLOR="#e6e6ff"> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">"Horizontal + resolution in pixels per inch".<BR>Here it is always in + inches.<BR>In EXIF it depends on EXIF_TAG_RESOLUTION_UNIT</FONT></P> + </TD> + <TD WIDTH=12% BGCOLOR="#e6e6ff"> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">EXIF_TAG_X_RESOLUTION</FONT></P> + </TD> + <TD WIDTH=12% BGCOLOR="#e6e6ff"> + <P CLASS="western" ALIGN=CENTER><FONT SIZE=1 STYLE="font-size: 8pt">-</FONT></P> + </TD> + <TD WIDTH=13% BGCOLOR="#e6e6ff"> + <P CLASS="western" ALIGN=CENTER><FONT SIZE=1 STYLE="font-size: 8pt">-</FONT></P> + </TD> + </TR> + <TR VALIGN=TOP> + <TD WIDTH=12%> + <P CLASS="western" ALIGN=CENTER><FONT SIZE=1 STYLE="font-size: 8pt">-</FONT></P> + </TD> + <TD WIDTH=15%> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">GST_TAG_IMAGE_YRESOLUTION</FONT></P> + </TD> + <TD WIDTH=10%> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">"image-yresolution"</FONT></P> + </TD> + <TD WIDTH=12%> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">GST_TYPE_FRACTION</FONT></P> + </TD> + <TD WIDTH=12%> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">"Vertical + resolution in pixels per inch".<BR>Here it is always in + inches.<BR>In EXIF it depends on EXIF_TAG_RESOLUTION_UNIT</FONT></P> + </TD> + <TD WIDTH=12%> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">EXIF_TAG_Y_RESOLUTION</FONT></P> + </TD> + <TD WIDTH=12%> + <P CLASS="western" ALIGN=CENTER><FONT SIZE=1 STYLE="font-size: 8pt">-</FONT></P> + </TD> + <TD WIDTH=13%> + <P CLASS="western" ALIGN=CENTER><FONT SIZE=1 STYLE="font-size: 8pt">-</FONT></P> + </TD> + </TR> + <TR VALIGN=TOP> + <TD WIDTH=12% BGCOLOR="#e6e6ff"> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">GST_TAG_COMPOSER</FONT></P> + </TD> + <TD WIDTH=15% BGCOLOR="#e6e6ff"> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">-</FONT></P> + </TD> + <TD WIDTH=10% BGCOLOR="#e6e6ff"> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">"composer"</FONT></P> + </TD> + <TD WIDTH=12% BGCOLOR="#e6e6ff"> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">G_TYPE_STRING</FONT></P> + </TD> + <TD WIDTH=12% BGCOLOR="#e6e6ff"> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">"Name + of the creator of the object, e.g. writer, photographer or graphic + artist."</FONT></P> + </TD> + <TD WIDTH=12% BGCOLOR="#e6e6ff"> + <P CLASS="western" ALIGN=CENTER><FONT SIZE=1 STYLE="font-size: 8pt">-</FONT></P> + </TD> + <TD WIDTH=12% BGCOLOR="#e6e6ff"> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">IPTC_TAG_BYLINE</FONT></P> + </TD> + <TD WIDTH=13% BGCOLOR="#e6e6ff"> + <P CLASS="western" ALIGN=CENTER><FONT SIZE=1 STYLE="font-size: 8pt">-</FONT></P> + </TD> + </TR> + <TR VALIGN=TOP> + <TD WIDTH=12%> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">GST_TAG_COPYRIGHT</FONT></P> + </TD> + <TD WIDTH=15%> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">-</FONT></P> + </TD> + <TD WIDTH=10%> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">"copyright"</FONT></P> + </TD> + <TD WIDTH=12%> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">G_TYPE_STRING</FONT></P> + </TD> + <TD WIDTH=12%> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">"Any + necessary copyright notice."</FONT></P> + </TD> + <TD WIDTH=12%> + <P CLASS="western" ALIGN=CENTER><FONT SIZE=1 STYLE="font-size: 8pt">-</FONT></P> + </TD> + <TD WIDTH=12%> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">IPTC_TAG_COPYRIGHT_NOTICE</FONT></P> + </TD> + <TD WIDTH=13%> + <P CLASS="western" ALIGN=LEFT>“<FONT SIZE=1 STYLE="font-size: 8pt">dc:rights”</FONT></P> + </TD> + </TR> + <TR VALIGN=TOP> + <TD WIDTH=12% BGCOLOR="#e6e6ff"> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">GST_TAG_DESCRIPTION</FONT></P> + </TD> + <TD WIDTH=15% BGCOLOR="#e6e6ff"> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">-</FONT></P> + </TD> + <TD WIDTH=10% BGCOLOR="#e6e6ff"> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">"description"</FONT></P> + </TD> + <TD WIDTH=12% BGCOLOR="#e6e6ff"> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">G_TYPE_STRING</FONT></P> + </TD> + <TD WIDTH=12% BGCOLOR="#e6e6ff"> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">"A + textual description of the data"</FONT></P> + </TD> + <TD WIDTH=12% BGCOLOR="#e6e6ff"> + <P CLASS="western" ALIGN=CENTER><FONT SIZE=1 STYLE="font-size: 8pt">-</FONT></P> + </TD> + <TD WIDTH=12% BGCOLOR="#e6e6ff"> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">IPTC_TAG_CAPTION</FONT></P> + </TD> + <TD WIDTH=13% BGCOLOR="#e6e6ff"> + <P CLASS="western" ALIGN=LEFT>“<FONT SIZE=1 STYLE="font-size: 8pt">dc:description”</FONT></P> + </TD> + </TR> + <TR VALIGN=TOP> + <TD WIDTH=12%> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">GST_TAG_TITLE</FONT></P> + </TD> + <TD WIDTH=15%> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">-</FONT></P> + </TD> + <TD WIDTH=10%> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">"title"</FONT></P> + </TD> + <TD WIDTH=12%> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">G_TYPE_STRING</FONT></P> + </TD> + <TD WIDTH=12%> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">"A + shorthand reference for the object."</FONT></P> + </TD> + <TD WIDTH=12%> + <P CLASS="western" ALIGN=CENTER><FONT SIZE=1 STYLE="font-size: 8pt">-</FONT></P> + </TD> + <TD WIDTH=12%> + <P CLASS="western" ALIGN=LEFT><FONT SIZE=1 STYLE="font-size: 8pt">IPTC_TAG_OBJECT_NAME</FONT></P> + </TD> + <TD WIDTH=13%> + <P CLASS="western" ALIGN=LEFT>“<FONT SIZE=1 STYLE="font-size: 8pt">dc:title”</FONT></P> + </TD> + </TR> +</TABLE> +<P CLASS="western" STYLE="margin-bottom: 0cm"><BR> +</P> +</BODY> +</HTML>
\ No newline at end of file diff --git a/ext/metadata/metadataexif.c b/ext/metadata/metadataexif.c index c9bb80b8..cd275d11 100644 --- a/ext/metadata/metadataexif.c +++ b/ext/metadata/metadataexif.c @@ -138,6 +138,7 @@ typedef struct _tag_MapIntStr */ /* *INDENT-OFF* */ +/* When changing this table, update 'metadata_mapping.htm' file too. */ static MapIntStr mappedTags[] = { {EXIF_TAG_MAKE, /*ASCII,*/ EXIF_IFD_0, GST_TAG_DEVICE_MAKE, /*STRING*/}, diff --git a/ext/metadata/metadataiptc.c b/ext/metadata/metadataiptc.c index 0ba8018a..167ce1d6 100644 --- a/ext/metadata/metadataiptc.c +++ b/ext/metadata/metadataiptc.c @@ -137,6 +137,7 @@ typedef struct _tag_MapIntStr */ /* *INDENT-OFF* */ +/* When changing this table, update 'metadata_mapping.htm' file too. */ static MapIntStr mappedTags[] = { {IPTC_RECORD_APP_2, IPTC_TAG_OBJECT_NAME, /*ASCII*/ GST_TAG_TITLE /*STRING*/}, diff --git a/ext/metadata/metadatatags.c b/ext/metadata/metadatatags.c index b7807033..63acf2f3 100644 --- a/ext/metadata/metadatatags.c +++ b/ext/metadata/metadatatags.c @@ -50,6 +50,8 @@ * in GStreamer base. So, the EXIF, IPTC and XMP tags can be mapped to tags * not registered in this file (tags already in GST base) * + * When changing this file, update 'metadata_mapping.htm' file too. + * * Last reviewed on 2008-01-24 (0.10.15) */ @@ -109,39 +111,33 @@ metadata_tags_register (void) static void metadata_tags_exif_register (void) { - /* devices tags */ - - gst_tag_register (GST_TAG_DEVICE_MAKE, GST_TAG_FLAG_META, - G_TYPE_STRING, GST_TAG_DEVICE_MAKE, - "The manufacturer of the recording equipment", NULL); - gst_tag_register (GST_TAG_DEVICE_MODEL, GST_TAG_FLAG_META, G_TYPE_STRING, - GST_TAG_DEVICE_MODEL, "The model name or model number of the equipment", - NULL); - /* generic tags */ - - gst_tag_register (GST_TAG_CREATOR_TOOL, GST_TAG_FLAG_META, G_TYPE_STRING, - GST_TAG_CREATOR_TOOL, - "The name of the first known tool used to create the resource." - " Or firmware or driver version of device", NULL); - - /* image tags */ + /* capture tags */ - gst_tag_register (GST_TAG_IMAGE_XRESOLUTION, GST_TAG_FLAG_META, - GST_TYPE_FRACTION, GST_TAG_IMAGE_XRESOLUTION, - "Horizontal resolution in pixels per inch", NULL); - gst_tag_register (GST_TAG_IMAGE_YRESOLUTION, GST_TAG_FLAG_META, - GST_TYPE_FRACTION, GST_TAG_IMAGE_YRESOLUTION, - "Vertical resolution in pixels per inch", NULL); + /* The unit is the APEX value. + Ordinarily it is given in the range of -99.99 to 99.99. + if numerator is 0xFFFFFFFF means unknown + */ + gst_tag_register (GST_TAG_CAPTURE_BRIGHTNESS, GST_TAG_FLAG_META, + GST_TYPE_FRACTION, GST_TAG_CAPTURE_BRIGHTNESS, + "Brightness (APEX from -99.99 to 99.99)", NULL); - /* capture tags */ + /* + from -100 to 100 + [-100, -34] - soft + [-33, 33] - normal + [34, 100] - hard + *** exif is just 0, 1, 2 (normal, soft and hard) + */ + gst_tag_register (GST_TAG_CAPTURE_CONTRAST, GST_TAG_FLAG_META, G_TYPE_INT, + GST_TAG_CAPTURE_CONTRAST, "", NULL); - gst_tag_register (GST_TAG_CAPTURE_EXPOSURE_TIME, GST_TAG_FLAG_META, - GST_TYPE_FRACTION, GST_TAG_CAPTURE_EXPOSURE_TIME, - "Exposure time in seconds", NULL); - gst_tag_register (GST_TAG_CAPTURE_FNUMBER, GST_TAG_FLAG_META, - GST_TYPE_FRACTION, GST_TAG_CAPTURE_FNUMBER, "F number (focal ratio)", + /* if Zero ZOOM not used + */ + gst_tag_register (GST_TAG_CAPTURE_DIGITAL_ZOOM, GST_TAG_FLAG_META, + GST_TYPE_FRACTION, GST_TAG_CAPTURE_DIGITAL_ZOOM, "Digital zoom ratio", NULL); + /* 0 - not defined 1- Manual @@ -162,33 +158,14 @@ metadata_tags_exif_register (void) gst_tag_register (GST_TAG_CAPTURE_EXPOSURE_PROGRAM, GST_TAG_FLAG_META, G_TYPE_UINT, GST_TAG_CAPTURE_EXPOSURE_PROGRAM, "Class of program used for exposure", NULL); - /* The unit is the APEX value. - Ordinarily it is given in the range of -99.99 to 99.99. - if numerator is 0xFFFFFFFF means unknown - */ - gst_tag_register (GST_TAG_CAPTURE_BRIGHTNESS, GST_TAG_FLAG_META, - GST_TYPE_FRACTION, GST_TAG_CAPTURE_BRIGHTNESS, - "Brightness (APEX from -99.99 to 99.99)", NULL); - /* - 0- Auto - 1- Off - *** exif is until here *** - 2- Sunlight - 3- Cloudy - 4- Shade - 5- Tungsten - 6- Fluorescent - 7- Incandescent - 8- Flash - 9- Horizon (sun on the horizon) - */ - gst_tag_register (GST_TAG_CAPTURE_WHITE_BALANCE, GST_TAG_FLAG_META, - G_TYPE_UINT, GST_TAG_CAPTURE_WHITE_BALANCE, "White balance mode", NULL); - /* if Zero ZOOM not used - */ - gst_tag_register (GST_TAG_CAPTURE_DIGITAL_ZOOM, GST_TAG_FLAG_META, - GST_TYPE_FRACTION, GST_TAG_CAPTURE_DIGITAL_ZOOM, "Digital zoom ratio", + + gst_tag_register (GST_TAG_CAPTURE_EXPOSURE_TIME, GST_TAG_FLAG_META, + GST_TYPE_FRACTION, GST_TAG_CAPTURE_EXPOSURE_TIME, + "Exposure time in seconds", NULL); + gst_tag_register (GST_TAG_CAPTURE_FNUMBER, GST_TAG_FLAG_META, + GST_TYPE_FRACTION, GST_TAG_CAPTURE_FNUMBER, "F number (focal ratio)", NULL); + /* 0- None 1- Low gain up @@ -198,15 +175,7 @@ metadata_tags_exif_register (void) */ gst_tag_register (GST_TAG_CAPTURE_GAIN, GST_TAG_FLAG_META, G_TYPE_UINT, GST_TAG_CAPTURE_GAIN, "", NULL); - /* - from -100 to 100 - [-100, -34] - soft - [-33, 33] - normal - [34, 100] - hard - *** exif is just 0, 1, 2 (normal, soft and hard) - */ - gst_tag_register (GST_TAG_CAPTURE_CONTRAST, GST_TAG_FLAG_META, G_TYPE_INT, - GST_TAG_CAPTURE_CONTRAST, "", NULL); + /* from -100 to 100 [-100, -34] - low @@ -217,6 +186,47 @@ metadata_tags_exif_register (void) gst_tag_register (GST_TAG_CAPTURE_SATURATION, GST_TAG_FLAG_META, G_TYPE_INT, GST_TAG_CAPTURE_SATURATION, "", NULL); + /* + 0- Auto + 1- Off + *** exif is until here *** + 2- Sunlight + 3- Cloudy + 4- Shade + 5- Tungsten + 6- Fluorescent + 7- Incandescent + 8- Flash + 9- Horizon (sun on the horizon) + */ + gst_tag_register (GST_TAG_CAPTURE_WHITE_BALANCE, GST_TAG_FLAG_META, + G_TYPE_UINT, GST_TAG_CAPTURE_WHITE_BALANCE, "White balance mode", NULL); + + /* generic tags */ + + gst_tag_register (GST_TAG_CREATOR_TOOL, GST_TAG_FLAG_META, G_TYPE_STRING, + GST_TAG_CREATOR_TOOL, + "The name of the first known tool used to create the resource." + " Or firmware or driver version of device", NULL); + + /* devices tags */ + + gst_tag_register (GST_TAG_DEVICE_MAKE, GST_TAG_FLAG_META, + G_TYPE_STRING, GST_TAG_DEVICE_MAKE, + "The manufacturer of the recording equipment", NULL); + gst_tag_register (GST_TAG_DEVICE_MODEL, GST_TAG_FLAG_META, G_TYPE_STRING, + GST_TAG_DEVICE_MODEL, "The model name or model number of the equipment", + NULL); + + /* image tags */ + + gst_tag_register (GST_TAG_IMAGE_XRESOLUTION, GST_TAG_FLAG_META, + GST_TYPE_FRACTION, GST_TAG_IMAGE_XRESOLUTION, + "Horizontal resolution in pixels per inch", NULL); + gst_tag_register (GST_TAG_IMAGE_YRESOLUTION, GST_TAG_FLAG_META, + GST_TYPE_FRACTION, GST_TAG_IMAGE_YRESOLUTION, + "Vertical resolution in pixels per inch", NULL); + } /* diff --git a/ext/metadata/metadatatags.h b/ext/metadata/metadatatags.h index c458324f..8189f61f 100644 --- a/ext/metadata/metadatatags.h +++ b/ext/metadata/metadatatags.h @@ -67,29 +67,37 @@ typedef enum { * defines */ -#define GST_TAG_EXIF "exif" +/* *INDENT-OFF* */ -#define GST_TAG_IPTC "iptc" +/* whole chunk tags */ -#define GST_TAG_XMP "xmp" +#define GST_TAG_EXIF "exif" -#define GST_TAG_DEVICE_MAKE "device-make" -#define GST_TAG_DEVICE_MODEL "device-model" +#define GST_TAG_IPTC "iptc" -#define GST_TAG_CREATOR_TOOL "creator-tool" +#define GST_TAG_XMP "xmp" -#define GST_TAG_IMAGE_XRESOLUTION "image-xresolution" -#define GST_TAG_IMAGE_YRESOLUTION "image-yresolution" +/* individual tags */ -#define GST_TAG_CAPTURE_EXPOSURE_TIME "capture-exposure-time" -#define GST_TAG_CAPTURE_FNUMBER "captute-fnumber" -#define GST_TAG_CAPTURE_EXPOSURE_PROGRAM "capture-exposure-program" #define GST_TAG_CAPTURE_BRIGHTNESS "capture-brightness" -#define GST_TAG_CAPTURE_WHITE_BALANCE "capture-white-balance" +#define GST_TAG_CAPTURE_CONTRAST "capture-contrast" #define GST_TAG_CAPTURE_DIGITAL_ZOOM "capture-digital-zoom" +#define GST_TAG_CAPTURE_EXPOSURE_PROGRAM "capture-exposure-program" +#define GST_TAG_CAPTURE_EXPOSURE_TIME "capture-exposure-time" +#define GST_TAG_CAPTURE_FNUMBER "captute-fnumber" #define GST_TAG_CAPTURE_GAIN "capture-gain" -#define GST_TAG_CAPTURE_CONTRAST "capture-contrast" #define GST_TAG_CAPTURE_SATURATION "capture-saturation" +#define GST_TAG_CAPTURE_WHITE_BALANCE "capture-white-balance" + +#define GST_TAG_CREATOR_TOOL "creator-tool" + +#define GST_TAG_DEVICE_MAKE "device-make" +#define GST_TAG_DEVICE_MODEL "device-model" + +#define GST_TAG_IMAGE_XRESOLUTION "image-xresolution" +#define GST_TAG_IMAGE_YRESOLUTION "image-yresolution" + +/* *INDENT-ON* */ /* * external function prototypes diff --git a/ext/metadata/metadataxmp.c b/ext/metadata/metadataxmp.c index d4a58fb4..7291c84d 100644 --- a/ext/metadata/metadataxmp.c +++ b/ext/metadata/metadataxmp.c @@ -155,6 +155,7 @@ typedef struct _tag_SchemaMap #define XMP_SCHEMA_NODE 0x80000000UL /* *INDENT-OFF* */ +/* When changing this table, update 'metadata_mapping.htm' file too. */ static const SchemaTagMap schema_map_dublin_tags_map[] = { {"description", GST_TAG_DESCRIPTION }, {"title", GST_TAG_TITLE }, @@ -170,6 +171,7 @@ static const SchemaMap schema_map_dublin = { schema_map_dublin_tags_map }; +/* When changing this table, update 'metadata_mapping.htm' file too. */ static const SchemaMap *schemas_map[] = { &schema_map_dublin, NULL |