gstformat.h | gstformat.h | |||
---|---|---|---|---|
skipping to change at line 37 | skipping to change at line 37 | |||
#include <glib.h> | #include <glib.h> | |||
#include <gst/gstiterator.h> | #include <gst/gstiterator.h> | |||
G_BEGIN_DECLS | G_BEGIN_DECLS | |||
/** | /** | |||
* GstFormat: | * GstFormat: | |||
* @GST_FORMAT_UNDEFINED: undefined format | * @GST_FORMAT_UNDEFINED: undefined format | |||
* @GST_FORMAT_DEFAULT: the default format of the pad/element. This can be | * @GST_FORMAT_DEFAULT: the default format of the pad/element. This can be | |||
* samples for raw audio, frames/fields for raw video. | * samples for raw audio, frames/fields for raw video (some, but not all | |||
, | ||||
* elements support this; use @GST_FORMAT_TIME if you don't have a good | ||||
* reason to query for samples/frames) | ||||
* @GST_FORMAT_BYTES: bytes | * @GST_FORMAT_BYTES: bytes | |||
* @GST_FORMAT_TIME: time in nanoseconds | * @GST_FORMAT_TIME: time in nanoseconds | |||
* @GST_FORMAT_BUFFERS: buffers | * @GST_FORMAT_BUFFERS: buffers (few, if any, elements implement this as of | |||
* @GST_FORMAT_PERCENT: percentage of stream | * May 2009) | |||
* @GST_FORMAT_PERCENT: percentage of stream (few, if any, elements impleme | ||||
nt | ||||
* this as of May 2009) | ||||
* | * | |||
* Standard predefined formats | * Standard predefined formats | |||
*/ | */ | |||
/* NOTE: don't forget to update the table in gstformat.c when changing | /* NOTE: don't forget to update the table in gstformat.c when changing | |||
* this enum */ | * this enum */ | |||
typedef enum { | typedef enum { | |||
GST_FORMAT_UNDEFINED = 0, /* must be first in list */ | GST_FORMAT_UNDEFINED = 0, /* must be first in list */ | |||
GST_FORMAT_DEFAULT = 1, | GST_FORMAT_DEFAULT = 1, | |||
GST_FORMAT_BYTES = 2, | GST_FORMAT_BYTES = 2, | |||
GST_FORMAT_TIME = 3, | GST_FORMAT_TIME = 3, | |||
skipping to change at line 84 | skipping to change at line 88 | |||
* GstFormatDefinition: | * GstFormatDefinition: | |||
* @value: The unique id of this format | * @value: The unique id of this format | |||
* @nick: A short nick of the format | * @nick: A short nick of the format | |||
* @description: A longer description of the format | * @description: A longer description of the format | |||
* @quark: A quark for the nick | * @quark: A quark for the nick | |||
* | * | |||
* A format definition | * A format definition | |||
*/ | */ | |||
struct _GstFormatDefinition | struct _GstFormatDefinition | |||
{ | { | |||
GstFormat value; | GstFormat value; | |||
gchar *nick; | const gchar *nick; | |||
gchar *description; | const gchar *description; | |||
GQuark quark; | GQuark quark; | |||
}; | }; | |||
const gchar* gst_format_get_name (GstFormat format); | const gchar* gst_format_get_name (GstFormat format); | |||
GQuark gst_format_to_quark (GstFormat format); | GQuark gst_format_to_quark (GstFormat format); | |||
/* register a new format */ | /* register a new format */ | |||
GstFormat gst_format_register (const gchar *nick, | GstFormat gst_format_register (const gchar *nick, | |||
const gchar *description); | const gchar *description); | |||
GstFormat gst_format_get_by_nick (const gchar *nick); | GstFormat gst_format_get_by_nick (const gchar *nick); | |||
End of changes. 3 change blocks. | ||||
7 lines changed or deleted | 13 lines changed or added | |||
This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/ |