Skip to content

Commit

Permalink
[android color modes] Add additional color modes used in android camera
Browse files Browse the repository at this point in the history
  • Loading branch information
piggz committed Oct 4, 2018
1 parent c85eb53 commit cfc760e
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
36 changes: 36 additions & 0 deletions rpm/0006-Add-android-color-tone-modes.patch
@@ -0,0 +1,36 @@
diff --git a/gst-libs/gst/interfaces/photography.h b/gst-libs/gst/interfaces/photography.h
index 0475d71aa..5352ba868 100644
--- a/gst-libs/gst/interfaces/photography.h
+++ b/gst-libs/gst/interfaces/photography.h
@@ -25,7 +25,7 @@

#ifndef GST_USE_UNSTABLE_API
#warning "The GstPhotography interface is unstable API and may change in future."
-#warning "You can define GST_USE_UNSTABLE_API to avoid this warning."
+#warning "You can define GST_USE_UNSTABLE_API to avoid this warning."
#endif

#include <gst/gst.h>
@@ -215,6 +215,10 @@ typedef enum
* @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: Aqua (Since 1.?)
+ * @GST_PHOTOGRAPHY_COLOR_TONE_MODE_SKETCH: Aqua (Since 1.?)
+ * @GST_PHOTOGRAPHY_COLOR_TONE_MODE_NEON: Aqua (Since 1.?)
+ *
*
* Modes for special color effects.
*/
@@ -235,7 +239,10 @@ typedef enum
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;

/**
3 changes: 2 additions & 1 deletion rpm/gst-plugins-bad.spec
Expand Up @@ -14,6 +14,7 @@ Patch2: 0002-Keep-video-branch-in-NULL-state.patch
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-Add-android-color-tone-modes.patch

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

Expand Down Expand Up @@ -102,7 +103,7 @@ NOCONFIGURE=1 ./autogen.sh
--disable-decklink --disable-accurip --disable-audiofxbad --disable-ivtc \
--disable-midi --disable-yadif --disable-mpegtsmux \
--disable-accurip --disable-autoconvert --disable-gdp \
--disable-qt --disable-curl --disable-bz2 --disable-dash --disable-smoothstreaming
--disable-qt --disable-curl --disable-bz2 --disable-dash --disable-smoothstreaming

make %{?jobs:-j%jobs}

Expand Down

0 comments on commit cfc760e

Please sign in to comment.