"Fossies" - the Fresh Open Source Software Archive

Member "gstreamer-1.16.1/gst/gstquark.c" (19 Apr 2019, 4797 Bytes) of package /linux/misc/gstreamer-1.16.1.tar.xz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "gstquark.c" see the Fossies "Dox" file reference documentation and the last Fossies "Diffs" side-by-side code changes report: 1.14.4_vs_1.16.0.

    1 /* GStreamer
    2  * Copyright (C) 2006 Jan Schmidt <thaytan@noraisin.net>
    3  *
    4  * gstquark.c: Registered quarks for the _priv_gst_quark_table, private to 
    5  *   GStreamer
    6  *
    7  * This library is free software; you can redistribute it and/or
    8  * modify it under the terms of the GNU Library General Public
    9  * License as published by the Free Software Foundation; either
   10  * version 2 of the License, or (at your option) any later version.
   11  *
   12  * This library is distributed in the hope that it will be useful,
   13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
   14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   15  * Library General Public License for more details.
   16  *
   17  * You should have received a copy of the GNU Library General Public
   18  * License along with this library; if not, write to the
   19  * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
   20  * Boston, MA 02110-1301, USA.
   21  */
   22 
   23 #include "gst_private.h"
   24 #include "gstquark.h"
   25 #include "gstelementmetadata.h"
   26 
   27 /* These strings must match order and number declared in the GstQuarkId
   28  * enum in gstquark.h! */
   29 static const gchar *_quark_strings[] = {
   30   "format", "current", "duration", "rate",
   31   "seekable", "segment-start", "segment-end",
   32   "src_format", "src_value", "dest_format", "dest_value",
   33   "start_format", "start_value", "stop_format", "stop_value",
   34   "gerror", "debug", "buffer-percent", "buffering-mode",
   35   "avg-in-rate", "avg-out-rate", "buffering-left",
   36   "estimated-total", "old-state", "new-state", "pending-state",
   37   "clock", "ready", "position", "reset-time", "live", "min-latency",
   38   "max-latency", "busy", "type", "owner", "update", "applied-rate",
   39   "start", "stop", "minsize", "maxsize", "async", "proportion",
   40   "diff", "timestamp", "flags", "cur-type", "cur", "stop-type",
   41   "latency", "uri", "object", "taglist", "GstEventSegment",
   42   "GstEventBufferSize", "GstEventQOS", "GstEventSeek", "GstEventLatency",
   43   "GstMessageError", "GstMessageWarning", "GstMessageInfo",
   44   "GstMessageBuffering", "GstMessageStateChanged", "GstMessageClockProvide",
   45   "GstMessageClockLost", "GstMessageNewClock", "GstMessageStructureChange",
   46   "GstMessageSegmentStart", "GstMessageSegmentDone",
   47   "GstMessageDurationChanged",
   48   "GstMessageAsyncDone", "GstMessageRequestState", "GstMessageStreamStatus",
   49   "GstQueryPosition", "GstQueryDuration", "GstQueryLatency", "GstQueryConvert",
   50   "GstQuerySegment", "GstQuerySeeking", "GstQueryFormats", "GstQueryBuffering",
   51   "GstQueryURI", "GstEventStep", "GstMessageStepDone", "amount", "flush",
   52   "intermediate", "GstMessageStepStart", "active", "eos", "sink-message",
   53   "message", "GstMessageQOS", "running-time", "stream-time", "jitter",
   54   "quality", "processed", "dropped", "buffering-ranges", "GstMessageProgress",
   55   "code", "text", "percent", "timeout", "GstBufferPoolConfig", "caps", "size",
   56   "min-buffers", "max-buffers", "prefix", "padding", "align", "time",
   57   "GstQueryAllocation", "need-pool", "meta", "pool", "GstEventCaps",
   58   "GstEventReconfigure", "segment", "GstQueryScheduling", "pull-mode",
   59   "allocator", "GstEventFlushStop", "options", "GstQueryAcceptCaps",
   60   "result", "GstQueryCaps", "filter", "modes", "GstEventStreamConfig",
   61   "setup-data", "stream-headers", "GstEventGap", "GstQueryDrain", "params",
   62   "GstEventTocSelect", "uid", "GstQueryToc", GST_ELEMENT_METADATA_LONGNAME,
   63   GST_ELEMENT_METADATA_KLASS, GST_ELEMENT_METADATA_DESCRIPTION,
   64   GST_ELEMENT_METADATA_AUTHOR, "toc", "toc-entry", "updated", "extend-uid",
   65   "uid", "tags", "sub-entries", "info", "GstMessageTag", "GstEventTag",
   66   "GstMessageResetTime",
   67   "GstMessageToc", "GstEventTocGlobal", "GstEventTocCurrent",
   68   "GstEventSegmentDone",
   69   "GstEventStreamStart", "stream-id", "GstQueryContext",
   70   "GstMessageNeedContext", "GstMessageHaveContext", "context", "context-type",
   71   "GstMessageStreamStart", "group-id", "uri-redirection",
   72   "GstMessageDeviceAdded", "GstMessageDeviceRemoved", "device",
   73   "uri-redirection-permanent", "GstMessagePropertyNotify", "property-name",
   74   "property-value", "streams", "GstEventSelectStreams",
   75   "GstMessageStreamCollection", "collection", "stream", "stream-collection",
   76   "GstMessageStreamsSelected", "GstMessageRedirect", "redirect-entry-locations",
   77   "redirect-entry-taglists", "redirect-entry-structures",
   78   "GstEventStreamGroupDone", "GstQueryBitrate", "nominal-bitrate",
   79   "GstMessageDeviceChanged", "device-changed", "trickmode-interval",
   80 };
   81 
   82 GQuark _priv_gst_quark_table[GST_QUARK_MAX];
   83 
   84 void
   85 _priv_gst_quarks_initialize (void)
   86 {
   87   gint i;
   88 
   89   if (G_N_ELEMENTS (_quark_strings) != GST_QUARK_MAX)
   90     g_warning ("the quark table is not consistent! %d != %d",
   91         (int) G_N_ELEMENTS (_quark_strings), GST_QUARK_MAX);
   92 
   93   for (i = 0; i < GST_QUARK_MAX; i++) {
   94     _priv_gst_quark_table[i] = g_quark_from_static_string (_quark_strings[i]);
   95   }
   96 }