2007-10-30 12:49:04 +00:00
|
|
|
/*
|
|
|
|
* GStreamer
|
|
|
|
* Copyright 2007 Edgard Lima <edgard.lima@indt.org.br>
|
|
|
|
*
|
|
|
|
* Permission is hereby granted, free of charge, to any person obtaining a
|
|
|
|
* copy of this software and associated documentation files (the "Software"),
|
|
|
|
* to deal in the Software without restriction, including without limitation
|
|
|
|
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
|
|
* and/or sell copies of the Software, and to permit persons to whom the
|
|
|
|
* Software is furnished to do so, subject to the following conditions:
|
|
|
|
*
|
|
|
|
* The above copyright notice and this permission notice shall be included in
|
|
|
|
* all copies or substantial portions of the Software.
|
|
|
|
*
|
|
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
|
|
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
|
|
* DEALINGS IN THE SOFTWARE.
|
|
|
|
*
|
|
|
|
* Alternatively, the contents of this file may be used under the
|
|
|
|
* GNU Lesser General Public License Version 2.1 (the "LGPL"), in
|
|
|
|
* which case the following provisions apply instead of the ones
|
|
|
|
* mentioned above:
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Library General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Library General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Library General Public
|
|
|
|
* License along with this library; if not, write to the
|
|
|
|
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
|
|
* Boston, MA 02111-1307, USA.
|
|
|
|
*/
|
|
|
|
|
2007-11-28 08:13:52 +00:00
|
|
|
#ifndef __GST_METADATA_TAGS_H__
|
|
|
|
#define __GST_METADATA_TAGS_H__
|
2007-10-30 12:49:04 +00:00
|
|
|
|
2008-01-25 17:45:28 +00:00
|
|
|
/*
|
|
|
|
* includes
|
|
|
|
*/
|
|
|
|
|
2007-10-30 12:49:04 +00:00
|
|
|
#include <gst/gst.h>
|
|
|
|
#include <gst/base/gstadapter.h>
|
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
2008-01-25 17:45:28 +00:00
|
|
|
/*
|
|
|
|
* enum and types
|
|
|
|
*/
|
|
|
|
|
2007-11-28 14:03:35 +00:00
|
|
|
/* set bit to desired mapping */
|
|
|
|
typedef enum {
|
|
|
|
METADATA_TAG_MAP_INDIVIDUALS = 1 << 0,
|
|
|
|
METADATA_TAG_MAP_WHOLECHUNK = 1 << 1
|
|
|
|
} MetadataTagMapping;
|
|
|
|
|
2008-01-25 17:45:28 +00:00
|
|
|
/*
|
|
|
|
* defines
|
|
|
|
*/
|
|
|
|
|
2008-01-31 21:55:44 +00:00
|
|
|
/* *INDENT-OFF* */
|
2007-11-28 08:13:52 +00:00
|
|
|
|
2008-01-31 21:55:44 +00:00
|
|
|
/* whole chunk tags */
|
2007-10-31 16:21:02 +00:00
|
|
|
|
2008-01-31 21:55:44 +00:00
|
|
|
#define GST_TAG_EXIF "exif"
|
2007-11-28 08:13:52 +00:00
|
|
|
|
2008-01-31 21:55:44 +00:00
|
|
|
#define GST_TAG_IPTC "iptc"
|
2007-12-05 17:00:59 +00:00
|
|
|
|
2008-01-31 21:55:44 +00:00
|
|
|
#define GST_TAG_XMP "xmp"
|
2007-12-05 17:00:59 +00:00
|
|
|
|
2008-01-31 21:55:44 +00:00
|
|
|
/* individual tags */
|
2007-12-05 17:00:59 +00:00
|
|
|
|
2008-02-05 17:10:11 +00:00
|
|
|
#define GST_TAG_CAPTURE_APERTURE "capture-aperture"
|
2007-12-05 17:00:59 +00:00
|
|
|
#define GST_TAG_CAPTURE_BRIGHTNESS "capture-brightness"
|
2008-02-07 13:59:41 +00:00
|
|
|
#define GST_TAG_CAPTURE_COLOR_SPACE "capture-color-space"
|
2008-01-31 21:55:44 +00:00
|
|
|
#define GST_TAG_CAPTURE_CONTRAST "capture-contrast"
|
2008-02-05 17:10:11 +00:00
|
|
|
#define GST_TAG_CAPTURE_CUSTOM_RENDERED "capture-custom-rendered"
|
2007-12-05 17:00:59 +00:00
|
|
|
#define GST_TAG_CAPTURE_DIGITAL_ZOOM "capture-digital-zoom"
|
2008-02-07 13:59:41 +00:00
|
|
|
#define GST_TAG_CAPTURE_EXPOSURE_MODE "capture-exposure-mode"
|
2008-01-31 21:55:44 +00:00
|
|
|
#define GST_TAG_CAPTURE_EXPOSURE_PROGRAM "capture-exposure-program"
|
|
|
|
#define GST_TAG_CAPTURE_EXPOSURE_TIME "capture-exposure-time"
|
2008-02-02 20:22:19 +00:00
|
|
|
#define GST_TAG_CAPTURE_FLASH "capture-flash"
|
|
|
|
#define GST_TAG_CAPTURE_FNUMBER "capture-fnumber"
|
|
|
|
#define GST_TAG_CAPTURE_FOCAL_LEN "capture-focal-len"
|
2007-12-05 17:00:59 +00:00
|
|
|
#define GST_TAG_CAPTURE_GAIN "capture-gain"
|
2008-02-02 20:22:19 +00:00
|
|
|
#define GST_TAG_CAPTURE_ISO_SPEED_RATINGS "capture-iso-speed-ratings"
|
2008-02-05 17:10:11 +00:00
|
|
|
#define GST_TAG_CAPTURE_LIGHT_SOURCE "capture-light-source"
|
2008-02-02 20:22:19 +00:00
|
|
|
#define GST_TAG_CAPTURE_ORIENTATION "capture-orientation"
|
2007-12-05 17:00:59 +00:00
|
|
|
#define GST_TAG_CAPTURE_SATURATION "capture-saturation"
|
2008-02-07 13:59:41 +00:00
|
|
|
#define GST_TAG_CAPTURE_SCENE_CAPTURE_TYPE "capture-scene-capture-type"
|
2008-02-05 17:10:11 +00:00
|
|
|
#define GST_TAG_CAPTURE_SHUTTER_SPEED "capture-shutter-speed"
|
2008-01-31 21:55:44 +00:00
|
|
|
#define GST_TAG_CAPTURE_WHITE_BALANCE "capture-white-balance"
|
|
|
|
|
|
|
|
#define GST_TAG_CREATOR_TOOL "creator-tool"
|
|
|
|
|
2008-02-28 10:41:56 +00:00
|
|
|
#define GST_TAG_DATE_TIME_DIGITIZED "date-time-digitized"
|
|
|
|
#define GST_TAG_DATE_TIME_MODIFIED "date-time-modified"
|
|
|
|
#define GST_TAG_DATE_TIME_ORIGINAL "date-time-original"
|
|
|
|
|
2008-01-31 21:55:44 +00:00
|
|
|
#define GST_TAG_DEVICE_MAKE "device-make"
|
|
|
|
#define GST_TAG_DEVICE_MODEL "device-model"
|
|
|
|
|
2008-02-28 10:41:56 +00:00
|
|
|
#define GST_TAG_EXIF_MAKER_NOTE "exif-maker-note"
|
|
|
|
|
2008-02-05 17:10:11 +00:00
|
|
|
#define GST_TAG_IMAGE_HEIGHT "image-height"
|
|
|
|
#define GST_TAG_IMAGE_WIDTH "image-width"
|
2008-01-31 21:55:44 +00:00
|
|
|
#define GST_TAG_IMAGE_XRESOLUTION "image-xresolution"
|
|
|
|
#define GST_TAG_IMAGE_YRESOLUTION "image-yresolution"
|
|
|
|
|
2008-02-28 10:41:56 +00:00
|
|
|
#define GST_TAG_GPS_AREA_INFORMATION ""
|
|
|
|
#define GST_TAG_GPS_DIFFERENTIAL ""
|
|
|
|
#define GST_TAG_GPS_DOP ""
|
|
|
|
#define GST_TAG_GPS_IMAGE_DIRECTION ""
|
|
|
|
#define GST_TAG_GPS_MEASURE_MODE ""
|
|
|
|
#define GST_TAG_GPS_PROCESSING_METHOD ""
|
|
|
|
#define GST_TAG_GPS_SATELLITES ""
|
|
|
|
#define GST_TAG_GPS_SPEED ""
|
|
|
|
#define GST_TAG_GPS_TRACK ""
|
|
|
|
|
2008-01-31 21:55:44 +00:00
|
|
|
/* *INDENT-ON* */
|
2007-11-28 14:03:35 +00:00
|
|
|
|
2008-01-25 17:45:28 +00:00
|
|
|
/*
|
|
|
|
* external function prototypes
|
|
|
|
*/
|
|
|
|
|
2007-11-28 08:13:52 +00:00
|
|
|
extern void
|
|
|
|
metadata_tags_register (void);
|
2007-10-30 12:49:04 +00:00
|
|
|
|
|
|
|
G_END_DECLS
|
2007-11-28 08:13:52 +00:00
|
|
|
#endif /* __GST_METADATA_TAGS_H__ */
|