GNOME Bugzilla – Bug 749104
video-converter: Change some implicit string enums to real enums
Last modified: 2015-05-08 13:14:34 UTC
Created attachment 303071 [details] [review] Patch file. GST_VIDEO_CONVERTER_OPT_ALPHA_MODE, GST_VIDEO_CONVERTER_OPT_CHROMA_MODE, GST_VIDEO_CONVERTER_OPT_MATRIX_MODE, GST_VIDEO_CONVERTER_OPT_GAMMA_MODE and GST_VIDEO_CONVERTER_OPT_PRIMARIES_MODE were G_TYPE_STRING with only a few valid options. Changed those to real enums.
Review of attachment 303071 [details] [review]: Looks generally good, just some doc cleanup needed ::: gst-libs/gst/video/video-converter.h @@ +157,3 @@ * GST_VIDEO_CONVERTER_OPT_ALPHA_MODE: * + * #G_TYPE_ENUM, the alpha mode to use. GST_TYPE_VIDEO_ALPHA_MODE @@ +168,3 @@ * #GST_VIDEO_CONVERTER_OPT_ALPHA_VALUE * + * Default to "copy". Shouldn't explain all the values as strings but just refer to the docs of the enum
Created attachment 303073 [details] [review] Patch file, taking comments into account
commit c9cfd0196f2c104091f637e9ebf7a1735bd7c6ab Author: Vivia Nikolaidou <vivia@ahiru.eu> Date: Fri May 8 14:57:03 2015 +0300 video-converter: Change some implicit string enums to real enums GST_VIDEO_CONVERTER_OPT_ALPHA_MODE, GST_VIDEO_CONVERTER_OPT_CHROMA_MODE, GST_VIDEO_CONVERTER_OPT_MATRIX_MODE, GST_VIDEO_CONVERTER_OPT_GAMMA_MODE and GST_VIDEO_CONVERTER_OPT_PRIMARIES_MODE were G_TYPE_STRING with only a few valid options. Changed those to real enums. https://bugzilla.gnome.org/show_bug.cgi?id=749104