mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-15 13:53:19 +00:00
- moved functionality of GST_FORMAT_UNITS to GST_FORMAT_DEFAULT, the old _DEFAULT functionality was ambigous; now the...
Original commit message from CVS: - moved functionality of GST_FORMAT_UNITS to GST_FORMAT_DEFAULT, the old _DEFAULT functionality was ambigous; now the _DEFAULT format is media specific (frames for video, samples for audio, ...)
This commit is contained in:
parent
6ab1630c40
commit
a4f13fb2be
2 changed files with 2 additions and 5 deletions
|
@ -32,12 +32,11 @@ static GHashTable *_format_to_nick = NULL;
|
||||||
static gint _n_values = 1; /* we start from 1 because 0 reserved for UNDEFINED */
|
static gint _n_values = 1; /* we start from 1 because 0 reserved for UNDEFINED */
|
||||||
|
|
||||||
static GstFormatDefinition standard_definitions[] = {
|
static GstFormatDefinition standard_definitions[] = {
|
||||||
{ GST_FORMAT_DEFAULT, "default", "Default" },
|
{ GST_FORMAT_DEFAULT, "default", "Default format for the media type" },
|
||||||
{ GST_FORMAT_BYTES, "bytes", "Bytes" },
|
{ GST_FORMAT_BYTES, "bytes", "Bytes" },
|
||||||
{ GST_FORMAT_TIME, "time", "Time" },
|
{ GST_FORMAT_TIME, "time", "Time" },
|
||||||
{ GST_FORMAT_BUFFERS, "buffers", "Buffers" },
|
{ GST_FORMAT_BUFFERS, "buffers", "Buffers" },
|
||||||
{ GST_FORMAT_PERCENT, "percent", "Percent" },
|
{ GST_FORMAT_PERCENT, "percent", "Percent" },
|
||||||
{ GST_FORMAT_UNITS, "units", "Units as defined by the media type" },
|
|
||||||
{ 0, NULL, NULL }
|
{ 0, NULL, NULL }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -31,13 +31,11 @@ G_BEGIN_DECLS
|
||||||
|
|
||||||
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, /* samples for audio, frames/fields for video */
|
||||||
GST_FORMAT_BYTES = 2,
|
GST_FORMAT_BYTES = 2,
|
||||||
GST_FORMAT_TIME = 3,
|
GST_FORMAT_TIME = 3,
|
||||||
GST_FORMAT_BUFFERS = 4,
|
GST_FORMAT_BUFFERS = 4,
|
||||||
GST_FORMAT_PERCENT = 5,
|
GST_FORMAT_PERCENT = 5,
|
||||||
/* samples for audio, frames/fields for video */
|
|
||||||
GST_FORMAT_UNITS = 6
|
|
||||||
} GstFormat;
|
} GstFormat;
|
||||||
|
|
||||||
/* a percentage is always relative to 1000000 */
|
/* a percentage is always relative to 1000000 */
|
||||||
|
|
Loading…
Reference in a new issue