mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
tag: More photography related tags
API: GST_TAG_CAPTURING_EXPOSURE_PROGRAM API: GST_TAG_CAPTURING_EXPOSURE_MODE API: GST_TAG_CAPTURING_SCENE_CAPTURE_TYPE API: GST_TAG_CAPTURING_GAIN_ADJUSTMENT API: GST_TAG_CAPTURING_WHITE_BALANCE API: GST_TAG_CAPTURING_CONTRAST API: GST_TAG_CAPTURING_SATURATION Fixes #626651
This commit is contained in:
parent
19cef39023
commit
5596c965fd
3 changed files with 149 additions and 0 deletions
|
@ -1639,6 +1639,13 @@ GST_TAG_CAPTURING_FOCAL_RATIO
|
|||
GST_TAG_CAPTURING_FOCAL_LENGTH
|
||||
GST_TAG_CAPTURING_DIGITAL_ZOOM_RATIO
|
||||
GST_TAG_CAPTURING_ISO_SPEED
|
||||
GST_TAG_CAPTURING_EXPOSURE_PROGRAM
|
||||
GST_TAG_CAPTURING_EXPOSURE_MODE
|
||||
GST_TAG_CAPTURING_SCENE_CAPTURE_TYPE
|
||||
GST_TAG_CAPTURING_GAIN_ADJUSTMENT
|
||||
GST_TAG_CAPTURING_WHITE_BALANCE
|
||||
GST_TAG_CAPTURING_CONTRAST
|
||||
GST_TAG_CAPTURING_SATURATION
|
||||
gst_tag_register_musicbrainz_tags
|
||||
gst_tag_freeform_string_to_utf8
|
||||
gst_tag_parse_extended_comment
|
||||
|
|
|
@ -168,6 +168,118 @@ G_BEGIN_DECLS
|
|||
*/
|
||||
#define GST_TAG_CAPTURING_ISO_SPEED "capturing-iso-speed"
|
||||
|
||||
/**
|
||||
* GST_TAG_CAPTURING_EXPOSURE_PROGRAM:
|
||||
*
|
||||
* Type of exposure control used when capturing an image. (string)
|
||||
*
|
||||
* The allowed values are:
|
||||
* "undefined"
|
||||
* "manual"
|
||||
* "normal" - automatically controlled
|
||||
* "aperture-priority" - user selects aperture value
|
||||
* "shutter-priority" - user selects shutter speed
|
||||
* "creative" - biased towards depth of field
|
||||
* "action" - biased towards fast shutter speed
|
||||
* "portrait" - closeup, leaving background out of focus
|
||||
* "landscape" - landscape photos, background in focus
|
||||
*
|
||||
* Since: 0.10.31
|
||||
*/
|
||||
#define GST_TAG_CAPTURING_EXPOSURE_PROGRAM "capturing-exposure-program"
|
||||
|
||||
/**
|
||||
* GST_TAG_CAPTURING_EXPOSURE_MODE:
|
||||
*
|
||||
* Exposure mode used when capturing an image. (string)
|
||||
*
|
||||
* The allowed values are:
|
||||
* "auto-exposure"
|
||||
* "manual-exposure"
|
||||
* "auto-bracket"
|
||||
*
|
||||
* Since: 0.10.31
|
||||
*/
|
||||
#define GST_TAG_CAPTURING_EXPOSURE_MODE "capturing-exposure-mode"
|
||||
|
||||
/**
|
||||
* GST_TAG_CAPTURING_SCENE_CAPTURE_TYPE:
|
||||
*
|
||||
* Scene mode used when capturing an image. (string)
|
||||
*
|
||||
* The allowed values are:
|
||||
* "standard"
|
||||
* "landscape"
|
||||
* "portrait"
|
||||
* "night-scene"
|
||||
*
|
||||
* Since: 0.10.31
|
||||
*/
|
||||
#define GST_TAG_CAPTURING_SCENE_CAPTURE_TYPE "capturing-scene-capture-type"
|
||||
|
||||
/**
|
||||
* GST_TAG_CAPTURING_GAIN_ADJUSTMENT:
|
||||
*
|
||||
* Gain adjustment applied to an image. (string)
|
||||
*
|
||||
* The allowed values are:
|
||||
* "none"
|
||||
* "low-gain-up"
|
||||
* "high-gain-up"
|
||||
* "low-gain-down"
|
||||
* "high-gain-down"
|
||||
*
|
||||
* Since: 0.10.31
|
||||
*/
|
||||
#define GST_TAG_CAPTURING_GAIN_ADJUSTMENT "capturing-gain-adjustment"
|
||||
|
||||
/**
|
||||
* GST_TAG_CAPTURING_WHITE_BALANCE:
|
||||
*
|
||||
* White balance mode used when capturing an image. (string)
|
||||
*
|
||||
* The allowed values are:
|
||||
* "auto"
|
||||
* "manual"
|
||||
* "daylight"
|
||||
* "cloudy"
|
||||
* "tungsten"
|
||||
* "fluorescent"
|
||||
* "fluorescent h" (newer daylight-calibrated fluorescents)
|
||||
* "flash"
|
||||
*
|
||||
* Since: 0.10.31
|
||||
*/
|
||||
#define GST_TAG_CAPTURING_WHITE_BALANCE "capturing-white-balance"
|
||||
|
||||
/**
|
||||
* GST_TAG_CAPTURING_CONTRAST:
|
||||
*
|
||||
* Direction of contrast processing applied when capturing an image. (string)
|
||||
*
|
||||
* The allowed values are:
|
||||
* "normal"
|
||||
* "soft"
|
||||
* "hard"
|
||||
*
|
||||
* Since: 0.10.31
|
||||
*/
|
||||
#define GST_TAG_CAPTURING_CONTRAST "capturing-contrast"
|
||||
|
||||
/**
|
||||
* GST_TAG_CAPTURING_SATURATION:
|
||||
*
|
||||
* Direction of saturation processing applied when capturing an image. (string)
|
||||
*
|
||||
* The allowed values are:
|
||||
* "normal"
|
||||
* "low-saturation"
|
||||
* "high-saturation"
|
||||
*
|
||||
* Since: 0.10.31
|
||||
*/
|
||||
#define GST_TAG_CAPTURING_SATURATION "capturing-saturation"
|
||||
|
||||
|
||||
/* additional information for image tags */
|
||||
|
||||
|
|
|
@ -106,6 +106,36 @@ gst_tag_register_tags_internal (gpointer unused)
|
|||
G_TYPE_INT, _("capturing iso speed"),
|
||||
_("The ISO speed used when capturing an image"), NULL);
|
||||
|
||||
gst_tag_register (GST_TAG_CAPTURING_EXPOSURE_PROGRAM, GST_TAG_FLAG_META,
|
||||
G_TYPE_STRING, _("capturing exposure program"),
|
||||
_("The exposure program used when capturing an image"), NULL);
|
||||
|
||||
gst_tag_register (GST_TAG_CAPTURING_EXPOSURE_MODE, GST_TAG_FLAG_META,
|
||||
G_TYPE_STRING, _("capturing exposure mode"),
|
||||
_("The exposure mode used when capturing an image"), NULL);
|
||||
|
||||
gst_tag_register (GST_TAG_CAPTURING_SCENE_CAPTURE_TYPE, GST_TAG_FLAG_META,
|
||||
G_TYPE_STRING, _("capturing scene capture type"),
|
||||
_("The scene capture mode used when capturing an image"), NULL);
|
||||
|
||||
gst_tag_register (GST_TAG_CAPTURING_GAIN_ADJUSTMENT, GST_TAG_FLAG_META,
|
||||
G_TYPE_STRING, _("capturing gain adjustment"),
|
||||
_("The overall gain adjustment applied on an image"), NULL);
|
||||
|
||||
gst_tag_register (GST_TAG_CAPTURING_WHITE_BALANCE, GST_TAG_FLAG_META,
|
||||
G_TYPE_STRING, _("capturing white balance"),
|
||||
_("The white balance mode set when capturing an image"), NULL);
|
||||
|
||||
gst_tag_register (GST_TAG_CAPTURING_CONTRAST, GST_TAG_FLAG_META,
|
||||
G_TYPE_STRING, _("capturing contrast"),
|
||||
_("The direction of contrast processing applied "
|
||||
"when capturing an image"), NULL);
|
||||
|
||||
gst_tag_register (GST_TAG_CAPTURING_SATURATION, GST_TAG_FLAG_META,
|
||||
G_TYPE_STRING, _("capturing saturation"),
|
||||
_("The direction of saturation processing applied when "
|
||||
"capturing an image"), NULL);
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue