mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 18:51:11 +00:00
5736de1957
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.
52 lines
1.6 KiB
C
52 lines
1.6 KiB
C
/* 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
|
|
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
* Boston, MA 02111-1307, USA.
|
|
*/
|
|
|
|
#ifndef __GST_QUARK_H__
|
|
#define __GST_QUARK_H__
|
|
|
|
/* 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,
|
|
|
|
GST_QUARK_MAX = 15
|
|
} GstQuarkId;
|
|
|
|
extern GQuark _priv_gst_quark_table[GST_QUARK_MAX];
|
|
|
|
#define GST_QUARK(q) _priv_gst_quark_table[GST_QUARK_##q]
|
|
|
|
#endif
|