Add internal helpers for pre-registering quarks from static strings and using the quark values directly instead of lo...
Original commit message from CVS:
* docs/gst/gstreamer-sections.txt:
* gst/Makefile.am:
* gst/gst.c: (init_post):
* gst/gst_private.h:
* gst/gstquark.c: (_priv_gst_quarks_initialize):
* gst/gstquark.h:
* gst/gstquery.c: (gst_query_new_position),
(gst_query_set_position), (gst_query_parse_position),
(gst_query_new_duration), (gst_query_set_duration),
(gst_query_parse_duration), (gst_query_new_convert),
(gst_query_set_convert), (gst_query_parse_convert),
(gst_query_new_segment), (gst_query_set_segment),
(gst_query_parse_segment), (gst_query_new_seeking),
(gst_query_set_seeking), (gst_query_parse_seeking):
Add internal helpers for pre-registering quarks from static strings
and using the quark values directly instead of looking them up when
creating and parsing queries. Can be used for event construction too.
Closes #350432.
2006-08-16 11:47:54 +00:00
|
|
|
/* GStreamer
|
|
|
|
* Copyright (C) 2006 Jan Schmidt <thaytan@noraisin.net>
|
|
|
|
*
|
|
|
|
* gstquark.h: Private header for storing quark info
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Library General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Library General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Library General Public
|
|
|
|
* License along with this library; if not, write to the
|
2012-11-03 20:44:48 +00:00
|
|
|
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
|
|
|
* Boston, MA 02110-1301, USA.
|
Add internal helpers for pre-registering quarks from static strings and using the quark values directly instead of lo...
Original commit message from CVS:
* docs/gst/gstreamer-sections.txt:
* gst/Makefile.am:
* gst/gst.c: (init_post):
* gst/gst_private.h:
* gst/gstquark.c: (_priv_gst_quarks_initialize):
* gst/gstquark.h:
* gst/gstquery.c: (gst_query_new_position),
(gst_query_set_position), (gst_query_parse_position),
(gst_query_new_duration), (gst_query_set_duration),
(gst_query_parse_duration), (gst_query_new_convert),
(gst_query_set_convert), (gst_query_parse_convert),
(gst_query_new_segment), (gst_query_set_segment),
(gst_query_parse_segment), (gst_query_new_seeking),
(gst_query_set_seeking), (gst_query_parse_seeking):
Add internal helpers for pre-registering quarks from static strings
and using the quark values directly instead of looking them up when
creating and parsing queries. Can be used for event construction too.
Closes #350432.
2006-08-16 11:47:54 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __GST_QUARK_H__
|
|
|
|
#define __GST_QUARK_H__
|
|
|
|
|
2015-08-10 22:35:21 +00:00
|
|
|
#include <glib.h>
|
|
|
|
|
Add internal helpers for pre-registering quarks from static strings and using the quark values directly instead of lo...
Original commit message from CVS:
* docs/gst/gstreamer-sections.txt:
* gst/Makefile.am:
* gst/gst.c: (init_post):
* gst/gst_private.h:
* gst/gstquark.c: (_priv_gst_quarks_initialize):
* gst/gstquark.h:
* gst/gstquery.c: (gst_query_new_position),
(gst_query_set_position), (gst_query_parse_position),
(gst_query_new_duration), (gst_query_set_duration),
(gst_query_parse_duration), (gst_query_new_convert),
(gst_query_set_convert), (gst_query_parse_convert),
(gst_query_new_segment), (gst_query_set_segment),
(gst_query_parse_segment), (gst_query_new_seeking),
(gst_query_set_seeking), (gst_query_parse_seeking):
Add internal helpers for pre-registering quarks from static strings
and using the quark values directly instead of looking them up when
creating and parsing queries. Can be used for event construction too.
Closes #350432.
2006-08-16 11:47:54 +00:00
|
|
|
/* These enums need to match the number and order
|
|
|
|
* of strings declared in _quark_table, in gstquark.c */
|
|
|
|
typedef enum _GstQuarkId
|
|
|
|
{
|
|
|
|
GST_QUARK_FORMAT = 0,
|
|
|
|
GST_QUARK_CURRENT = 1,
|
|
|
|
GST_QUARK_DURATION = 2,
|
|
|
|
GST_QUARK_RATE = 3,
|
|
|
|
GST_QUARK_SEEKABLE = 4,
|
|
|
|
GST_QUARK_SEGMENT_START = 5,
|
|
|
|
GST_QUARK_SEGMENT_END = 6,
|
|
|
|
GST_QUARK_SRC_FORMAT = 7,
|
|
|
|
GST_QUARK_SRC_VALUE = 8,
|
|
|
|
GST_QUARK_DEST_FORMAT = 9,
|
|
|
|
GST_QUARK_DEST_VALUE = 10,
|
|
|
|
GST_QUARK_START_FORMAT = 11,
|
|
|
|
GST_QUARK_START_VALUE = 12,
|
|
|
|
GST_QUARK_STOP_FORMAT = 13,
|
|
|
|
GST_QUARK_STOP_VALUE = 14,
|
2008-04-08 19:39:28 +00:00
|
|
|
GST_QUARK_GERROR = 15,
|
|
|
|
GST_QUARK_DEBUG = 16,
|
|
|
|
GST_QUARK_BUFFER_PERCENT = 17,
|
|
|
|
GST_QUARK_BUFFERING_MODE = 18,
|
|
|
|
GST_QUARK_AVG_IN_RATE = 19,
|
|
|
|
GST_QUARK_AVG_OUT_RATE = 20,
|
|
|
|
GST_QUARK_BUFFERING_LEFT = 21,
|
|
|
|
GST_QUARK_ESTIMATED_TOTAL = 22,
|
|
|
|
GST_QUARK_OLD_STATE = 23,
|
|
|
|
GST_QUARK_NEW_STATE = 24,
|
|
|
|
GST_QUARK_PENDING_STATE = 25,
|
|
|
|
GST_QUARK_CLOCK = 26,
|
|
|
|
GST_QUARK_READY = 27,
|
|
|
|
GST_QUARK_POSITION = 28,
|
2011-06-08 15:25:43 +00:00
|
|
|
GST_QUARK_RESET_TIME = 29,
|
2008-04-08 19:39:28 +00:00
|
|
|
GST_QUARK_LIVE = 30,
|
|
|
|
GST_QUARK_MIN_LATENCY = 31,
|
|
|
|
GST_QUARK_MAX_LATENCY = 32,
|
2008-04-08 20:17:49 +00:00
|
|
|
GST_QUARK_BUSY = 33,
|
2008-10-06 15:21:14 +00:00
|
|
|
GST_QUARK_TYPE = 34,
|
|
|
|
GST_QUARK_OWNER = 35,
|
2008-10-13 17:19:25 +00:00
|
|
|
GST_QUARK_UPDATE = 36,
|
|
|
|
GST_QUARK_APPLIED_RATE = 37,
|
|
|
|
GST_QUARK_START = 38,
|
|
|
|
GST_QUARK_STOP = 39,
|
|
|
|
GST_QUARK_MINSIZE = 40,
|
|
|
|
GST_QUARK_MAXSIZE = 41,
|
|
|
|
GST_QUARK_ASYNC = 42,
|
|
|
|
GST_QUARK_PROPORTION = 43,
|
|
|
|
GST_QUARK_DIFF = 44,
|
|
|
|
GST_QUARK_TIMESTAMP = 45,
|
|
|
|
GST_QUARK_FLAGS = 46,
|
|
|
|
GST_QUARK_CUR_TYPE = 47,
|
|
|
|
GST_QUARK_CUR = 48,
|
|
|
|
GST_QUARK_STOP_TYPE = 49,
|
|
|
|
GST_QUARK_LATENCY = 50,
|
2008-12-20 17:33:44 +00:00
|
|
|
GST_QUARK_URI = 51,
|
2009-04-21 11:05:17 +00:00
|
|
|
GST_QUARK_OBJECT = 52,
|
2009-05-29 17:00:06 +00:00
|
|
|
GST_QUARK_TAGLIST = 53,
|
2011-05-13 16:07:24 +00:00
|
|
|
GST_QUARK_EVENT_SEGMENT = 54,
|
2009-05-29 17:00:06 +00:00
|
|
|
GST_QUARK_EVENT_BUFFER_SIZE = 55,
|
|
|
|
GST_QUARK_EVENT_QOS = 56,
|
|
|
|
GST_QUARK_EVENT_SEEK = 57,
|
|
|
|
GST_QUARK_EVENT_LATENCY = 58,
|
|
|
|
GST_QUARK_MESSAGE_ERROR = 59,
|
|
|
|
GST_QUARK_MESSAGE_WARNING = 60,
|
|
|
|
GST_QUARK_MESSAGE_INFO = 61,
|
|
|
|
GST_QUARK_MESSAGE_BUFFERING = 62,
|
2012-06-12 21:45:09 +00:00
|
|
|
GST_QUARK_MESSAGE_STATE_CHANGED = 63,
|
2009-05-29 17:00:06 +00:00
|
|
|
GST_QUARK_MESSAGE_CLOCK_PROVIDE = 64,
|
|
|
|
GST_QUARK_MESSAGE_CLOCK_LOST = 65,
|
|
|
|
GST_QUARK_MESSAGE_NEW_CLOCK = 66,
|
|
|
|
GST_QUARK_MESSAGE_STRUCTURE_CHANGE = 67,
|
|
|
|
GST_QUARK_MESSAGE_SEGMENT_START = 68,
|
|
|
|
GST_QUARK_MESSAGE_SEGMENT_DONE = 69,
|
2012-09-02 00:17:44 +00:00
|
|
|
GST_QUARK_MESSAGE_DURATION_CHANGED = 70,
|
2011-06-08 11:40:32 +00:00
|
|
|
GST_QUARK_MESSAGE_ASYNC_DONE = 71,
|
2009-05-29 17:00:06 +00:00
|
|
|
GST_QUARK_MESSAGE_REQUEST_STATE = 72,
|
|
|
|
GST_QUARK_MESSAGE_STREAM_STATUS = 73,
|
|
|
|
GST_QUARK_QUERY_POSITION = 74,
|
|
|
|
GST_QUARK_QUERY_DURATION = 75,
|
|
|
|
GST_QUARK_QUERY_LATENCY = 76,
|
|
|
|
GST_QUARK_QUERY_CONVERT = 77,
|
|
|
|
GST_QUARK_QUERY_SEGMENT = 78,
|
|
|
|
GST_QUARK_QUERY_SEEKING = 79,
|
|
|
|
GST_QUARK_QUERY_FORMATS = 80,
|
|
|
|
GST_QUARK_QUERY_BUFFERING = 81,
|
|
|
|
GST_QUARK_QUERY_URI = 82,
|
2009-06-01 10:19:52 +00:00
|
|
|
GST_QUARK_EVENT_STEP = 83,
|
|
|
|
GST_QUARK_MESSAGE_STEP_DONE = 84,
|
|
|
|
GST_QUARK_AMOUNT = 85,
|
|
|
|
GST_QUARK_FLUSH = 86,
|
|
|
|
GST_QUARK_INTERMEDIATE = 87,
|
2009-06-10 13:48:35 +00:00
|
|
|
GST_QUARK_MESSAGE_STEP_START = 88,
|
|
|
|
GST_QUARK_ACTIVE = 89,
|
2009-06-12 11:18:21 +00:00
|
|
|
GST_QUARK_EOS = 90,
|
2009-11-18 06:52:24 +00:00
|
|
|
GST_QUARK_EVENT_SINK_MESSAGE = 91,
|
|
|
|
GST_QUARK_MESSAGE = 92,
|
2010-03-17 18:16:42 +00:00
|
|
|
GST_QUARK_MESSAGE_QOS = 93,
|
|
|
|
GST_QUARK_RUNNING_TIME = 94,
|
|
|
|
GST_QUARK_STREAM_TIME = 95,
|
|
|
|
GST_QUARK_JITTER = 96,
|
|
|
|
GST_QUARK_QUALITY = 97,
|
|
|
|
GST_QUARK_PROCESSED = 98,
|
|
|
|
GST_QUARK_DROPPED = 99,
|
2010-08-31 09:35:12 +00:00
|
|
|
GST_QUARK_BUFFERING_RANGES = 100,
|
2011-01-05 12:41:08 +00:00
|
|
|
GST_QUARK_MESSAGE_PROGRESS = 101,
|
2011-01-06 17:55:43 +00:00
|
|
|
GST_QUARK_CODE = 102,
|
2011-01-05 12:41:08 +00:00
|
|
|
GST_QUARK_TEXT = 103,
|
|
|
|
GST_QUARK_PERCENT = 104,
|
2011-02-15 17:26:00 +00:00
|
|
|
GST_QUARK_TIMEOUT = 105,
|
2011-02-17 16:29:27 +00:00
|
|
|
GST_QUARK_BUFFER_POOL_CONFIG = 106,
|
2011-03-03 15:31:49 +00:00
|
|
|
GST_QUARK_CAPS = 107,
|
|
|
|
GST_QUARK_SIZE = 108,
|
|
|
|
GST_QUARK_MIN_BUFFERS = 109,
|
|
|
|
GST_QUARK_MAX_BUFFERS = 110,
|
|
|
|
GST_QUARK_PREFIX = 111,
|
2012-03-14 18:37:22 +00:00
|
|
|
GST_QUARK_PADDING = 112,
|
2011-03-03 15:31:49 +00:00
|
|
|
GST_QUARK_ALIGN = 113,
|
2011-04-27 15:55:20 +00:00
|
|
|
GST_QUARK_TIME = 114,
|
2011-04-28 13:31:48 +00:00
|
|
|
GST_QUARK_QUERY_ALLOCATION = 115,
|
|
|
|
GST_QUARK_NEED_POOL = 116,
|
|
|
|
GST_QUARK_META = 117,
|
|
|
|
GST_QUARK_POOL = 118,
|
2011-05-04 09:03:05 +00:00
|
|
|
GST_QUARK_EVENT_CAPS = 119,
|
2011-05-03 11:05:06 +00:00
|
|
|
GST_QUARK_EVENT_RECONFIGURE = 120,
|
2011-05-13 16:07:24 +00:00
|
|
|
GST_QUARK_SEGMENT = 121,
|
2011-05-24 10:52:09 +00:00
|
|
|
GST_QUARK_QUERY_SCHEDULING = 122,
|
|
|
|
GST_QUARK_PULL_MODE = 123,
|
2011-11-18 16:27:16 +00:00
|
|
|
GST_QUARK_ALLOCATOR = 124,
|
|
|
|
GST_QUARK_EVENT_FLUSH_STOP = 125,
|
|
|
|
GST_QUARK_OPTIONS = 126,
|
|
|
|
GST_QUARK_QUERY_ACCEPT_CAPS = 127,
|
|
|
|
GST_QUARK_RESULT = 128,
|
|
|
|
GST_QUARK_QUERY_CAPS = 129,
|
|
|
|
GST_QUARK_FILTER = 130,
|
|
|
|
GST_QUARK_MODES = 131,
|
2012-01-27 17:39:12 +00:00
|
|
|
GST_QUARK_EVENT_STREAM_CONFIG = 132,
|
2012-02-12 20:51:39 +00:00
|
|
|
GST_QUARK_SETUP_DATA = 133,
|
2012-01-27 17:39:12 +00:00
|
|
|
GST_QUARK_STREAM_HEADERS = 134,
|
2012-01-27 18:56:01 +00:00
|
|
|
GST_QUARK_EVENT_GAP = 135,
|
2012-03-14 15:14:12 +00:00
|
|
|
GST_QUARK_QUERY_DRAIN = 136,
|
2012-03-15 21:09:02 +00:00
|
|
|
GST_QUARK_PARAMS = 137,
|
2012-04-02 19:15:09 +00:00
|
|
|
GST_QUARK_EVENT_TOC_SELECT = 138,
|
|
|
|
GST_QUARK_UID = 139,
|
|
|
|
GST_QUARK_QUERY_TOC = 140,
|
2012-04-09 12:40:35 +00:00
|
|
|
GST_QUARK_ELEMENT_METADATA_LONGNAME = 141,
|
|
|
|
GST_QUARK_ELEMENT_METADATA_KLASS = 142,
|
|
|
|
GST_QUARK_ELEMENT_METADATA_DESCRIPTION = 143,
|
|
|
|
GST_QUARK_ELEMENT_METADATA_AUTHOR = 144,
|
2012-05-20 16:48:55 +00:00
|
|
|
GST_QUARK_TOC = 145,
|
|
|
|
GST_QUARK_TOC_ENTRY = 146,
|
|
|
|
GST_QUARK_UPDATED = 147,
|
|
|
|
GST_QUARK_EXTEND_UID = 148,
|
|
|
|
GST_QUARK_TOC_UID = 149,
|
|
|
|
GST_QUARK_TAGS = 150,
|
|
|
|
GST_QUARK_SUB_ENTRIES = 151,
|
|
|
|
GST_QUARK_INFO = 152,
|
2012-07-03 16:49:18 +00:00
|
|
|
GST_QUARK_MESSAGE_TAG = 153,
|
|
|
|
GST_QUARK_EVENT_TAG = 154,
|
|
|
|
GST_QUARK_MESSAGE_RESET_TIME = 155,
|
|
|
|
GST_QUARK_MESSAGE_TOC = 156,
|
2012-07-28 08:41:30 +00:00
|
|
|
GST_QUARK_EVENT_TOC_GLOBAL = 157,
|
|
|
|
GST_QUARK_EVENT_TOC_CURRENT = 158,
|
|
|
|
GST_QUARK_EVENT_SEGMENT_DONE = 159,
|
2012-07-28 06:37:00 +00:00
|
|
|
GST_QUARK_EVENT_STREAM_START = 160,
|
|
|
|
GST_QUARK_STREAM_ID = 161,
|
2013-09-17 11:09:34 +00:00
|
|
|
GST_QUARK_QUERY_CONTEXT = 162,
|
|
|
|
GST_QUARK_MESSAGE_NEED_CONTEXT = 163,
|
|
|
|
GST_QUARK_MESSAGE_HAVE_CONTEXT = 164,
|
|
|
|
GST_QUARK_CONTEXT = 165,
|
2013-09-17 11:50:08 +00:00
|
|
|
GST_QUARK_CONTEXT_TYPE = 166,
|
2013-09-17 11:09:34 +00:00
|
|
|
GST_QUARK_MESSAGE_STREAM_START = 167,
|
|
|
|
GST_QUARK_GROUP_ID = 168,
|
|
|
|
GST_QUARK_URI_REDIRECTION = 169,
|
2014-03-16 14:08:00 +00:00
|
|
|
GST_QUARK_MESSAGE_DEVICE_ADDED = 170,
|
|
|
|
GST_QUARK_MESSAGE_DEVICE_REMOVED = 171,
|
|
|
|
GST_QUARK_DEVICE = 172,
|
2014-04-28 07:43:32 +00:00
|
|
|
GST_QUARK_URI_REDIRECTION_PERMANENT = 173,
|
2016-03-05 14:12:36 +00:00
|
|
|
GST_QUARK_MESSAGE_PROPERTY_NOTIFY = 174,
|
|
|
|
GST_QUARK_PROPERTY_NAME = 175,
|
|
|
|
GST_QUARK_PROPERTY_VALUE = 176,
|
2015-06-12 08:53:23 +00:00
|
|
|
GST_QUARK_STREAMS = 177,
|
|
|
|
GST_QUARK_EVENT_SELECT_STREAMS = 178,
|
|
|
|
GST_QUARK_MESSAGE_STREAM_COLLECTION = 179,
|
|
|
|
GST_QUARK_COLLECTION = 180,
|
|
|
|
GST_QUARK_STREAM = 181,
|
|
|
|
GST_QUARK_EVENT_STREAM_COLLECTION = 182,
|
|
|
|
GST_QUARK_MESSAGE_STREAMS_SELECTED = 183,
|
2016-07-25 09:22:36 +00:00
|
|
|
GST_QUARK_MESSAGE_REDIRECT = 184,
|
|
|
|
GST_QUARK_REDIRECT_ENTRY_LOCATIONS = 185,
|
|
|
|
GST_QUARK_REDIRECT_ENTRY_TAGLISTS = 186,
|
|
|
|
GST_QUARK_REDIRECT_ENTRY_STRUCTURES = 187,
|
2016-03-14 03:20:42 +00:00
|
|
|
GST_QUARK_EVENT_STREAM_GROUP_DONE = 188,
|
2018-05-17 11:42:43 +00:00
|
|
|
GST_QUARK_QUERY_BITRATE = 189,
|
|
|
|
GST_QUARK_NOMINAL_BITRATE = 190,
|
2019-01-30 13:41:58 +00:00
|
|
|
GST_QUARK_MESSAGE_DEVICE_CHANGED = 191,
|
|
|
|
GST_QUARK_DEVICE_CHANGED = 192,
|
|
|
|
GST_QUARK_MAX = 193
|
Add internal helpers for pre-registering quarks from static strings and using the quark values directly instead of lo...
Original commit message from CVS:
* docs/gst/gstreamer-sections.txt:
* gst/Makefile.am:
* gst/gst.c: (init_post):
* gst/gst_private.h:
* gst/gstquark.c: (_priv_gst_quarks_initialize):
* gst/gstquark.h:
* gst/gstquery.c: (gst_query_new_position),
(gst_query_set_position), (gst_query_parse_position),
(gst_query_new_duration), (gst_query_set_duration),
(gst_query_parse_duration), (gst_query_new_convert),
(gst_query_set_convert), (gst_query_parse_convert),
(gst_query_new_segment), (gst_query_set_segment),
(gst_query_parse_segment), (gst_query_new_seeking),
(gst_query_set_seeking), (gst_query_parse_seeking):
Add internal helpers for pre-registering quarks from static strings
and using the quark values directly instead of looking them up when
creating and parsing queries. Can be used for event construction too.
Closes #350432.
2006-08-16 11:47:54 +00:00
|
|
|
} GstQuarkId;
|
|
|
|
|
|
|
|
extern GQuark _priv_gst_quark_table[GST_QUARK_MAX];
|
|
|
|
|
|
|
|
#define GST_QUARK(q) _priv_gst_quark_table[GST_QUARK_##q]
|
|
|
|
|
|
|
|
#endif
|