mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-09 07:52:36 +00:00
gst/matroska/matroska-mux.c: Add Dirac fourcc.
Original commit message from CVS: * gst/matroska/matroska-mux.c: Add Dirac fourcc.
This commit is contained in:
parent
91ab2895d0
commit
4207d2fe74
2 changed files with 10 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2006-11-14 David Schleef <ds@schleef.org>
|
||||||
|
|
||||||
|
* gst/matroska/matroska-mux.c: Add Dirac fourcc.
|
||||||
|
|
||||||
2006-11-14 Tim-Philipp Müller <tim at centricular dot net>
|
2006-11-14 Tim-Philipp Müller <tim at centricular dot net>
|
||||||
|
|
||||||
Patch by: Sergey Scobich <sergey.scobich at gmail com>
|
Patch by: Sergey Scobich <sergey.scobich at gmail com>
|
||||||
|
|
|
@ -76,6 +76,8 @@ static GstStaticPadTemplate videosink_templ =
|
||||||
"image/jpeg, "
|
"image/jpeg, "
|
||||||
COMMON_VIDEO_CAPS "; "
|
COMMON_VIDEO_CAPS "; "
|
||||||
"video/x-theora; "
|
"video/x-theora; "
|
||||||
|
"video/x-dirac, "
|
||||||
|
COMMON_VIDEO_CAPS "; "
|
||||||
"video/x-raw-yuv, "
|
"video/x-raw-yuv, "
|
||||||
"format = (fourcc) { YUY2, I420 }, " COMMON_VIDEO_CAPS)
|
"format = (fourcc) { YUY2, I420 }, " COMMON_VIDEO_CAPS)
|
||||||
);
|
);
|
||||||
|
@ -497,7 +499,8 @@ skip_details:
|
||||||
||!strcmp (mimetype, "video/x-huffyuv")
|
||!strcmp (mimetype, "video/x-huffyuv")
|
||||||
|| !strcmp (mimetype, "video/x-divx")
|
|| !strcmp (mimetype, "video/x-divx")
|
||||||
|| !strcmp (mimetype, "video/x-dv")
|
|| !strcmp (mimetype, "video/x-dv")
|
||||||
|| !strcmp (mimetype, "video/x-h263")) {
|
|| !strcmp (mimetype, "video/x-h263")
|
||||||
|
|| !strcmp (mimetype, "video/x-dirac")) {
|
||||||
BITMAPINFOHEADER *bih;
|
BITMAPINFOHEADER *bih;
|
||||||
const GValue *codec_data;
|
const GValue *codec_data;
|
||||||
gint size = sizeof (BITMAPINFOHEADER);
|
gint size = sizeof (BITMAPINFOHEADER);
|
||||||
|
@ -534,6 +537,8 @@ skip_details:
|
||||||
GST_WRITE_UINT32_LE (&bih->bi_compression, GST_STR_FOURCC ("DX50"));
|
GST_WRITE_UINT32_LE (&bih->bi_compression, GST_STR_FOURCC ("DX50"));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
} else if (!strcmp (mimetype, "video/x-dirac")) {
|
||||||
|
GST_WRITE_UINT32_LE (&bih->bi_compression, GST_STR_FOURCC ("drac"));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* process codec private/initialization data, if any */
|
/* process codec private/initialization data, if any */
|
||||||
|
|
Loading…
Reference in a new issue