/* defaults.c generated by valac 0.56.17, the Vala compiler
 * generated from defaults.vala, do not modify */

/*
Peek Copyright (c) 2017-2018 by Philipp Wolfer <ph.wolfer@gmail.com>

This file is part of Peek.

This software is licensed under the GNU General Public License
(version 3 or later). See the LICENSE file in this distribution.
*/

#include <stdlib.h>
#include <string.h>
#include <glib.h>
#include "../../application.h"

#define PEEK_APP_ID "com.uploadedlobster.peek"
#define PEEK_DEFAULT_FRAMERATE 15
#define PEEK_DEFAULT_DOWNSAMPLE 1
#define PEEK_DEFAULT_GIFSKI_QUALITY 60
#define PEEK_ISSUE_TRACKER_URL "https://github.com/phw/peek/issues/new"
#if !defined(VALA_STRICT_C)
#if !defined(__clang__) && defined(__GNUC__) && (__GNUC__ >= 14)
#pragma GCC diagnostic warning "-Wincompatible-pointer-types"
#elif defined(__clang__) && (__clang_major__ >= 16)
#pragma clang diagnostic ignored "-Wincompatible-function-pointer-types"
#pragma clang diagnostic ignored "-Wincompatible-pointer-types"
#endif
#endif

gchar*
peek_output_format_to_string (PeekOutputFormat self)
{
	gchar* result;
	switch (self) {
		case PEEK_OUTPUT_FORMAT_APNG:
		{
			gchar* _tmp0_;
			_tmp0_ = g_strdup ("apng");
			result = _tmp0_;
			return result;
		}
		case PEEK_OUTPUT_FORMAT_GIF:
		{
			gchar* _tmp1_;
			_tmp1_ = g_strdup ("gif");
			result = _tmp1_;
			return result;
		}
		case PEEK_OUTPUT_FORMAT_WEBM:
		{
			gchar* _tmp2_;
			_tmp2_ = g_strdup ("webm");
			result = _tmp2_;
			return result;
		}
		case PEEK_OUTPUT_FORMAT_MP4:
		{
			gchar* _tmp3_;
			_tmp3_ = g_strdup ("mp4");
			result = _tmp3_;
			return result;
		}
		default:
		{
			g_assert_not_reached ();
		}
	}
}

static GType
peek_output_format_get_type_once (void)
{
	static const GEnumValue values[] = {{PEEK_OUTPUT_FORMAT_APNG, "PEEK_OUTPUT_FORMAT_APNG", "apng"}, {PEEK_OUTPUT_FORMAT_GIF, "PEEK_OUTPUT_FORMAT_GIF", "gif"}, {PEEK_OUTPUT_FORMAT_MP4, "PEEK_OUTPUT_FORMAT_MP4", "mp4"}, {PEEK_OUTPUT_FORMAT_WEBM, "PEEK_OUTPUT_FORMAT_WEBM", "webm"}, {0, NULL, NULL}};
	GType peek_output_format_type_id;
	peek_output_format_type_id = g_enum_register_static ("PeekOutputFormat", values);
	return peek_output_format_type_id;
}

GType
peek_output_format_get_type (void)
{
	static volatile gsize peek_output_format_type_id__once = 0;
	if (g_once_init_enter (&peek_output_format_type_id__once)) {
		GType peek_output_format_type_id;
		peek_output_format_type_id = peek_output_format_get_type_once ();
		g_once_init_leave (&peek_output_format_type_id__once, peek_output_format_type_id);
	}
	return peek_output_format_type_id__once;
}

