Skip to content

Commit

Permalink
[modes] Cleanup additional color and scene modes from Android Camera …
Browse files Browse the repository at this point in the history
…HAL. MER#1976
  • Loading branch information
Andrew Branson committed Oct 15, 2018
1 parent e80deb4 commit 8bba100
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 42 deletions.
36 changes: 0 additions & 36 deletions rpm/0007-Add-android-color-tone-modes.patch

This file was deleted.

@@ -1,8 +1,36 @@
From fc18938d43d774decdb06c61b5aa11c412ca5a17 Mon, 15 Oct 2018 17:39:31 +0200
From: Adam Pigg <adam@piggz.co.uk>
Date: Mon, 15 Oct 2018 17:38:55 +0200
Subject: [PATCH] Add colour tone and scene modes available in the Android HAL

diff --git a/gst-libs/gst/interfaces/photography.h b/gst-libs/gst/interfaces/photography.h
index 0475d71aa..56537cb0b 100644
index 0475d71..0720d6d 100644
--- a/gst-libs/gst/interfaces/photography.h
+++ b/gst-libs/gst/interfaces/photography.h
@@ -264,6 +264,12 @@ typedef enum
@@ -215,6 +215,10 @@
* @GST_PHOTOGRAPHY_COLOR_TONE_MODE_WHITEBOARD: Whiteboard (Since 1.2)
* @GST_PHOTOGRAPHY_COLOR_TONE_MODE_BLACKBOARD: Blackboard (Since 1.2)
* @GST_PHOTOGRAPHY_COLOR_TONE_MODE_AQUA: Aqua (Since 1.2)
+ * @GST_PHOTOGRAPHY_COLOR_TONE_MODE_EMBOSS: Emboss (Since 1.?)
+ * @GST_PHOTOGRAPHY_COLOR_TONE_MODE_SKETCH: Sketch (Since 1.?)
+ * @GST_PHOTOGRAPHY_COLOR_TONE_MODE_NEON: Neon (Since 1.?)
+ *
*
* Modes for special color effects.
*/
@@ -235,7 +239,10 @@
GST_PHOTOGRAPHY_COLOR_TONE_MODE_POSTERIZE,
GST_PHOTOGRAPHY_COLOR_TONE_MODE_WHITEBOARD,
GST_PHOTOGRAPHY_COLOR_TONE_MODE_BLACKBOARD,
- GST_PHOTOGRAPHY_COLOR_TONE_MODE_AQUA
+ GST_PHOTOGRAPHY_COLOR_TONE_MODE_AQUA,
+ GST_PHOTOGRAPHY_COLOR_TONE_MODE_EMBOSS,
+ GST_PHOTOGRAPHY_COLOR_TONE_MODE_SKETCH,
+ GST_PHOTOGRAPHY_COLOR_TONE_MODE_NEON
} GstPhotographyColorToneMode;

/**
@@ -264,6 +271,12 @@
* of scenes lit by candles (Since 1.2)
* @GST_PHOTOGRAPHY_SCENE_MODE_BARCODE: Applications are looking for
* a barcode (Since 1.2)
Expand All @@ -15,7 +43,7 @@ index 0475d71aa..56537cb0b 100644
*
* Each mode contains preset #GstPhotography options in order to produce
* good capturing result in certain scene.
@@ -287,7 +293,12 @@ typedef enum
@@ -287,7 +300,12 @@
GST_PHOTOGRAPHY_SCENE_MODE_FIREWORKS,
GST_PHOTOGRAPHY_SCENE_MODE_PARTY,
GST_PHOTOGRAPHY_SCENE_MODE_CANDLELIGHT,
Expand All @@ -27,5 +55,5 @@ index 0475d71aa..56537cb0b 100644
+ GST_PHOTOGRAPHY_SCENE_MODE_AR,
+ GST_PHOTOGRAPHY_SCENE_MODE_HDR
} GstPhotographySceneMode;

/**
3 changes: 1 addition & 2 deletions rpm/gst-plugins-bad.spec
Expand Up @@ -15,8 +15,7 @@ Patch3: 0003-photography-add-missing-vmethods.patch
Patch4: 0004-camerabin-install-GST_PHOTOGRAPHY_PROP_EXPOSURE_MODE.patch
Patch5: 0005-Downgrade-mpeg4videoparse-to-prevent-it-from-being-p.patch
Patch6: 0006-jifmux-cope-with-missing-EOI-marker.patch
Patch7: 0007-Add-android-color-tone-modes.patch
Patch8: 0008-Add-android-scene-modes.patch
Patch7: 0007-Add-colour-tone-and-scene-modes.patch

%define sonamever %(echo %{version} | cut -d '+' -f 1)

Expand Down

0 comments on commit 8bba100

Please sign in to comment.