qtdemux: remove duplicate FourCC

Use the available FourCCs in fourcc.h instead of duplicating them.
This commit is contained in:
Luis de Bethencourt 2015-11-19 19:28:20 +00:00
parent ca46897bf7
commit ca6d71ef2a
2 changed files with 54 additions and 54 deletions

View file

@ -165,7 +165,7 @@ G_BEGIN_DECLS
#define FOURCC_minf GST_MAKE_FOURCC('m','i','n','f') #define FOURCC_minf GST_MAKE_FOURCC('m','i','n','f')
#define FOURCC_moov GST_MAKE_FOURCC('m','o','o','v') #define FOURCC_moov GST_MAKE_FOURCC('m','o','o','v')
#define FOURCC_mp4a GST_MAKE_FOURCC('m','p','4','a') #define FOURCC_mp4a GST_MAKE_FOURCC('m','p','4','a')
#define FOURCC_mp4s GST_MAKE_FOURCC('m','p','4','s') #define FOURCC_mp4s GST_MAKE_FOURCC('m','p','4','s')
#define FOURCC_mp4s GST_MAKE_FOURCC('m','p','4','s') #define FOURCC_mp4s GST_MAKE_FOURCC('m','p','4','s')
#define FOURCC_mp4v GST_MAKE_FOURCC('m','p','4','v') #define FOURCC_mp4v GST_MAKE_FOURCC('m','p','4','v')
#define FOURCC_name GST_MAKE_FOURCC('n','a','m','e') #define FOURCC_name GST_MAKE_FOURCC('n','a','m','e')

View file

@ -6315,7 +6315,7 @@ qtdemux_parse_moov (GstQTDemux * qtdemux, const guint8 * buffer, guint length)
method = QT_FOURCC ((guint8 *) dcom->data + 8); method = QT_FOURCC ((guint8 *) dcom->data + 8);
switch (method) { switch (method) {
#ifdef HAVE_ZLIB #ifdef HAVE_ZLIB
case GST_MAKE_FOURCC ('z', 'l', 'i', 'b'):{ case FOURCC_zlib:{
guint uncompressed_length; guint uncompressed_length;
guint compressed_length; guint compressed_length;
guint8 *buf; guint8 *buf;
@ -8293,7 +8293,7 @@ qtdemux_parse_amr_bitrate (GstBuffer * buf, gboolean wb)
goto bad_data; goto bad_data;
} }
if (QT_FOURCC (map.data + 4) != GST_MAKE_FOURCC ('d', 'a', 'm', 'r')) { if (QT_FOURCC (map.data + 4) != FOURCC_damr) {
GST_DEBUG ("Unknown atom in %" GST_FOURCC_FORMAT, GST_DEBUG ("Unknown atom in %" GST_FOURCC_FORMAT,
GST_FOURCC_ARGS (QT_UINT32 (map.data + 4))); GST_FOURCC_ARGS (QT_UINT32 (map.data + 4)));
goto bad_data; goto bad_data;
@ -12097,7 +12097,7 @@ qtdemux_video_caps (GstQTDemux * qtdemux, QtDemuxStream * stream,
_codec ("PNG still images"); _codec ("PNG still images");
caps = gst_caps_new_empty_simple ("image/png"); caps = gst_caps_new_empty_simple ("image/png");
break; break;
case GST_MAKE_FOURCC ('j', 'p', 'e', 'g'): case FOURCC_jpeg:
_codec ("JPEG still images"); _codec ("JPEG still images");
caps = caps =
gst_caps_new_simple ("image/jpeg", "parsed", G_TYPE_BOOLEAN, TRUE, gst_caps_new_simple ("image/jpeg", "parsed", G_TYPE_BOOLEAN, TRUE,
@ -12116,13 +12116,13 @@ qtdemux_video_caps (GstQTDemux * qtdemux, QtDemuxStream * stream,
_codec ("Motion-JPEG format B"); _codec ("Motion-JPEG format B");
caps = gst_caps_new_empty_simple ("video/x-mjpeg-b"); caps = gst_caps_new_empty_simple ("video/x-mjpeg-b");
break; break;
case GST_MAKE_FOURCC ('m', 'j', 'p', '2'): case FOURCC_mjp2:
_codec ("JPEG-2000"); _codec ("JPEG-2000");
/* override to what it should be according to spec, avoid palette_data */ /* override to what it should be according to spec, avoid palette_data */
stream->bits_per_sample = 24; stream->bits_per_sample = 24;
caps = gst_caps_new_simple ("image/x-j2c", "fields", G_TYPE_INT, 1, NULL); caps = gst_caps_new_simple ("image/x-j2c", "fields", G_TYPE_INT, 1, NULL);
break; break;
case GST_MAKE_FOURCC ('S', 'V', 'Q', '3'): case FOURCC_SVQ3:
_codec ("Sorensen video v.3"); _codec ("Sorensen video v.3");
caps = gst_caps_new_simple ("video/x-svq", caps = gst_caps_new_simple ("video/x-svq",
"svqversion", G_TYPE_INT, 3, NULL); "svqversion", G_TYPE_INT, 3, NULL);
@ -12138,7 +12138,7 @@ qtdemux_video_caps (GstQTDemux * qtdemux, QtDemuxStream * stream,
gst_caps_set_simple (caps, "format", G_TYPE_STRING, "RGB8P", NULL); gst_caps_set_simple (caps, "format", G_TYPE_STRING, "RGB8P", NULL);
_codec ("Windows Raw RGB"); _codec ("Windows Raw RGB");
break; break;
case GST_MAKE_FOURCC ('r', 'a', 'w', ' '): case FOURCC_raw_:
{ {
guint16 bps; guint16 bps;
@ -12169,7 +12169,7 @@ qtdemux_video_caps (GstQTDemux * qtdemux, QtDemuxStream * stream,
case GST_MAKE_FOURCC ('Y', 'u', 'v', '2'): case GST_MAKE_FOURCC ('Y', 'u', 'v', '2'):
format = GST_VIDEO_FORMAT_I420; format = GST_VIDEO_FORMAT_I420;
break; break;
case GST_MAKE_FOURCC ('2', 'v', 'u', 'y'): case FOURCC_2vuy:
case GST_MAKE_FOURCC ('2', 'V', 'u', 'y'): case GST_MAKE_FOURCC ('2', 'V', 'u', 'y'):
format = GST_VIDEO_FORMAT_UYVY; format = GST_VIDEO_FORMAT_UYVY;
break; break;
@ -12179,7 +12179,7 @@ qtdemux_video_caps (GstQTDemux * qtdemux, QtDemuxStream * stream,
case GST_MAKE_FOURCC ('v', '2', '1', '6'): case GST_MAKE_FOURCC ('v', '2', '1', '6'):
format = GST_VIDEO_FORMAT_v216; format = GST_VIDEO_FORMAT_v216;
break; break;
case GST_MAKE_FOURCC ('v', '2', '1', '0'): case FOURCC_v210:
format = GST_VIDEO_FORMAT_v210; format = GST_VIDEO_FORMAT_v210;
break; break;
case GST_MAKE_FOURCC ('r', '2', '1', '0'): case GST_MAKE_FOURCC ('r', '2', '1', '0'):
@ -12256,17 +12256,17 @@ qtdemux_video_caps (GstQTDemux * qtdemux, QtDemuxStream * stream,
_codec ("GIF still images"); _codec ("GIF still images");
caps = gst_caps_new_empty_simple ("image/gif"); caps = gst_caps_new_empty_simple ("image/gif");
break; break;
case GST_MAKE_FOURCC ('h', '2', '6', '3'): case FOURCC_h263:
case GST_MAKE_FOURCC ('H', '2', '6', '3'): case GST_MAKE_FOURCC ('H', '2', '6', '3'):
case GST_MAKE_FOURCC ('s', '2', '6', '3'): case FOURCC_s263:
case GST_MAKE_FOURCC ('U', '2', '6', '3'): case GST_MAKE_FOURCC ('U', '2', '6', '3'):
_codec ("H.263"); _codec ("H.263");
/* ffmpeg uses the height/width props, don't know why */ /* ffmpeg uses the height/width props, don't know why */
caps = gst_caps_new_simple ("video/x-h263", caps = gst_caps_new_simple ("video/x-h263",
"variant", G_TYPE_STRING, "itu", NULL); "variant", G_TYPE_STRING, "itu", NULL);
break; break;
case GST_MAKE_FOURCC ('m', 'p', '4', 'v'): case FOURCC_mp4v:
case GST_MAKE_FOURCC ('M', 'P', '4', 'V'): case FOURCC_MP4V:
_codec ("MPEG-4 video"); _codec ("MPEG-4 video");
caps = gst_caps_new_simple ("video/mpeg", "mpegversion", G_TYPE_INT, 4, caps = gst_caps_new_simple ("video/mpeg", "mpegversion", G_TYPE_INT, 4,
"systemstream", G_TYPE_BOOLEAN, FALSE, NULL); "systemstream", G_TYPE_BOOLEAN, FALSE, NULL);
@ -12304,7 +12304,7 @@ qtdemux_video_caps (GstQTDemux * qtdemux, QtDemuxStream * stream,
case GST_MAKE_FOURCC ('3', 'I', 'V', '2'): case GST_MAKE_FOURCC ('3', 'I', 'V', '2'):
case GST_MAKE_FOURCC ('X', 'V', 'I', 'D'): case GST_MAKE_FOURCC ('X', 'V', 'I', 'D'):
case GST_MAKE_FOURCC ('x', 'v', 'i', 'd'): case GST_MAKE_FOURCC ('x', 'v', 'i', 'd'):
case GST_MAKE_FOURCC ('F', 'M', 'P', '4'): case FOURCC_FMP4:
case GST_MAKE_FOURCC ('U', 'M', 'P', '4'): case GST_MAKE_FOURCC ('U', 'M', 'P', '4'):
caps = gst_caps_new_simple ("video/mpeg", caps = gst_caps_new_simple ("video/mpeg",
"mpegversion", G_TYPE_INT, 4, NULL); "mpegversion", G_TYPE_INT, 4, NULL);
@ -12324,38 +12324,38 @@ qtdemux_video_caps (GstQTDemux * qtdemux, QtDemuxStream * stream,
_codec ("Apple video"); _codec ("Apple video");
caps = gst_caps_new_empty_simple ("video/x-apple-video"); caps = gst_caps_new_empty_simple ("video/x-apple-video");
break; break;
case GST_MAKE_FOURCC ('H', '2', '6', '4'): case FOURCC_H264:
case GST_MAKE_FOURCC ('a', 'v', 'c', '1'): case FOURCC_avc1:
_codec ("H.264 / AVC"); _codec ("H.264 / AVC");
caps = gst_caps_new_simple ("video/x-h264", caps = gst_caps_new_simple ("video/x-h264",
"stream-format", G_TYPE_STRING, "avc", "stream-format", G_TYPE_STRING, "avc",
"alignment", G_TYPE_STRING, "au", NULL); "alignment", G_TYPE_STRING, "au", NULL);
break; break;
case GST_MAKE_FOURCC ('a', 'v', 'c', '3'): case FOURCC_avc3:
_codec ("H.264 / AVC"); _codec ("H.264 / AVC");
caps = gst_caps_new_simple ("video/x-h264", caps = gst_caps_new_simple ("video/x-h264",
"stream-format", G_TYPE_STRING, "avc3", "stream-format", G_TYPE_STRING, "avc3",
"alignment", G_TYPE_STRING, "au", NULL); "alignment", G_TYPE_STRING, "au", NULL);
break; break;
case GST_MAKE_FOURCC ('H', '2', '6', '5'): case FOURCC_H265:
case GST_MAKE_FOURCC ('h', 'v', 'c', '1'): case FOURCC_hvc1:
_codec ("H.265 / HEVC"); _codec ("H.265 / HEVC");
caps = gst_caps_new_simple ("video/x-h265", caps = gst_caps_new_simple ("video/x-h265",
"stream-format", G_TYPE_STRING, "hvc1", "stream-format", G_TYPE_STRING, "hvc1",
"alignment", G_TYPE_STRING, "au", NULL); "alignment", G_TYPE_STRING, "au", NULL);
break; break;
case GST_MAKE_FOURCC ('h', 'e', 'v', '1'): case FOURCC_hev1:
_codec ("H.265 / HEVC"); _codec ("H.265 / HEVC");
caps = gst_caps_new_simple ("video/x-h265", caps = gst_caps_new_simple ("video/x-h265",
"stream-format", G_TYPE_STRING, "hev1", "stream-format", G_TYPE_STRING, "hev1",
"alignment", G_TYPE_STRING, "au", NULL); "alignment", G_TYPE_STRING, "au", NULL);
break; break;
case GST_MAKE_FOURCC ('r', 'l', 'e', ' '): case FOURCC_rle_:
_codec ("Run-length encoding"); _codec ("Run-length encoding");
caps = gst_caps_new_simple ("video/x-rle", caps = gst_caps_new_simple ("video/x-rle",
"layout", G_TYPE_STRING, "quicktime", NULL); "layout", G_TYPE_STRING, "quicktime", NULL);
break; break;
case GST_MAKE_FOURCC ('W', 'R', 'L', 'E'): case FOURCC_WRLE:
_codec ("Run-length encoding"); _codec ("Run-length encoding");
caps = gst_caps_new_simple ("video/x-rle", caps = gst_caps_new_simple ("video/x-rle",
"layout", G_TYPE_STRING, "microsoft", NULL); "layout", G_TYPE_STRING, "microsoft", NULL);
@ -12372,8 +12372,8 @@ qtdemux_video_caps (GstQTDemux * qtdemux, QtDemuxStream * stream,
caps = gst_caps_new_simple ("video/x-indeo", caps = gst_caps_new_simple ("video/x-indeo",
"indeoversion", G_TYPE_INT, 4, NULL); "indeoversion", G_TYPE_INT, 4, NULL);
break; break;
case GST_MAKE_FOURCC ('d', 'v', 'c', 'p'): case FOURCC_dvcp:
case GST_MAKE_FOURCC ('d', 'v', 'c', ' '): case FOURCC_dvc_:
case GST_MAKE_FOURCC ('d', 'v', 's', 'd'): case GST_MAKE_FOURCC ('d', 'v', 's', 'd'):
case GST_MAKE_FOURCC ('D', 'V', 'S', 'D'): case GST_MAKE_FOURCC ('D', 'V', 'S', 'D'):
case GST_MAKE_FOURCC ('d', 'v', 'c', 's'): case GST_MAKE_FOURCC ('d', 'v', 'c', 's'):
@ -12384,8 +12384,8 @@ qtdemux_video_caps (GstQTDemux * qtdemux, QtDemuxStream * stream,
caps = gst_caps_new_simple ("video/x-dv", "dvversion", G_TYPE_INT, 25, caps = gst_caps_new_simple ("video/x-dv", "dvversion", G_TYPE_INT, 25,
"systemstream", G_TYPE_BOOLEAN, FALSE, NULL); "systemstream", G_TYPE_BOOLEAN, FALSE, NULL);
break; break;
case GST_MAKE_FOURCC ('d', 'v', '5', 'n'): /* DVCPRO50 NTSC */ case FOURCC_dv5n: /* DVCPRO50 NTSC */
case GST_MAKE_FOURCC ('d', 'v', '5', 'p'): /* DVCPRO50 PAL */ case FOURCC_dv5p: /* DVCPRO50 PAL */
_codec ("DVCPro50 Video"); _codec ("DVCPro50 Video");
caps = gst_caps_new_simple ("video/x-dv", "dvversion", G_TYPE_INT, 50, caps = gst_caps_new_simple ("video/x-dv", "dvversion", G_TYPE_INT, 50,
"systemstream", G_TYPE_BOOLEAN, FALSE, NULL); "systemstream", G_TYPE_BOOLEAN, FALSE, NULL);
@ -12408,14 +12408,14 @@ qtdemux_video_caps (GstQTDemux * qtdemux, QtDemuxStream * stream,
_codec ("VP6 Flash"); _codec ("VP6 Flash");
caps = gst_caps_new_empty_simple ("video/x-vp6-flash"); caps = gst_caps_new_empty_simple ("video/x-vp6-flash");
break; break;
case GST_MAKE_FOURCC ('X', 'i', 'T', 'h'): case FOURCC_XiTh:
_codec ("Theora"); _codec ("Theora");
caps = gst_caps_new_empty_simple ("video/x-theora"); caps = gst_caps_new_empty_simple ("video/x-theora");
/* theora uses one byte of padding in the data stream because it does not /* theora uses one byte of padding in the data stream because it does not
* allow 0 sized packets while theora does */ * allow 0 sized packets while theora does */
stream->padding = 1; stream->padding = 1;
break; break;
case GST_MAKE_FOURCC ('d', 'r', 'a', 'c'): case FOURCC_drac:
_codec ("Dirac"); _codec ("Dirac");
caps = gst_caps_new_empty_simple ("video/x-dirac"); caps = gst_caps_new_empty_simple ("video/x-dirac");
break; break;
@ -12431,35 +12431,35 @@ qtdemux_video_caps (GstQTDemux * qtdemux, QtDemuxStream * stream,
_codec ("AVID DNxHD"); _codec ("AVID DNxHD");
caps = gst_caps_from_string ("video/x-dnxhd"); caps = gst_caps_from_string ("video/x-dnxhd");
break; break;
case GST_MAKE_FOURCC ('V', 'P', '8', '0'): case FOURCC_VP80:
_codec ("On2 VP8"); _codec ("On2 VP8");
caps = gst_caps_from_string ("video/x-vp8"); caps = gst_caps_from_string ("video/x-vp8");
break; break;
case GST_MAKE_FOURCC ('a', 'p', 'c', 's'): case FOURCC_apcs:
_codec ("Apple ProRes LT"); _codec ("Apple ProRes LT");
caps = caps =
gst_caps_new_simple ("video/x-prores", "variant", G_TYPE_STRING, "lt", gst_caps_new_simple ("video/x-prores", "variant", G_TYPE_STRING, "lt",
NULL); NULL);
break; break;
case GST_MAKE_FOURCC ('a', 'p', 'c', 'h'): case FOURCC_apch:
_codec ("Apple ProRes HQ"); _codec ("Apple ProRes HQ");
caps = caps =
gst_caps_new_simple ("video/x-prores", "variant", G_TYPE_STRING, "hq", gst_caps_new_simple ("video/x-prores", "variant", G_TYPE_STRING, "hq",
NULL); NULL);
break; break;
case GST_MAKE_FOURCC ('a', 'p', 'c', 'n'): case FOURCC_apcn:
_codec ("Apple ProRes"); _codec ("Apple ProRes");
caps = caps =
gst_caps_new_simple ("video/x-prores", "variant", G_TYPE_STRING, gst_caps_new_simple ("video/x-prores", "variant", G_TYPE_STRING,
"standard", NULL); "standard", NULL);
break; break;
case GST_MAKE_FOURCC ('a', 'p', 'c', 'o'): case FOURCC_apco:
_codec ("Apple ProRes Proxy"); _codec ("Apple ProRes Proxy");
caps = caps =
gst_caps_new_simple ("video/x-prores", "variant", G_TYPE_STRING, gst_caps_new_simple ("video/x-prores", "variant", G_TYPE_STRING,
"proxy", NULL); "proxy", NULL);
break; break;
case GST_MAKE_FOURCC ('a', 'p', '4', 'h'): case FOURCC_ap4h:
_codec ("Apple ProRes 4444"); _codec ("Apple ProRes 4444");
caps = caps =
gst_caps_new_simple ("video/x-prores", "variant", G_TYPE_STRING, gst_caps_new_simple ("video/x-prores", "variant", G_TYPE_STRING,
@ -12517,15 +12517,15 @@ qtdemux_audio_caps (GstQTDemux * qtdemux, QtDemuxStream * stream,
switch (fourcc) { switch (fourcc) {
case GST_MAKE_FOURCC ('N', 'O', 'N', 'E'): case GST_MAKE_FOURCC ('N', 'O', 'N', 'E'):
case GST_MAKE_FOURCC ('r', 'a', 'w', ' '): case FOURCC_raw_:
/* 8-bit audio is unsigned */ /* 8-bit audio is unsigned */
if (depth == 8) if (depth == 8)
format = GST_AUDIO_FORMAT_U8; format = GST_AUDIO_FORMAT_U8;
/* otherwise it's signed and big-endian just like 'twos' */ /* otherwise it's signed and big-endian just like 'twos' */
case GST_MAKE_FOURCC ('t', 'w', 'o', 's'): case FOURCC_twos:
endian = G_BIG_ENDIAN; endian = G_BIG_ENDIAN;
/* fall-through */ /* fall-through */
case GST_MAKE_FOURCC ('s', 'o', 'w', 't'): case FOURCC_sowt:
{ {
gchar *str; gchar *str;
@ -12570,11 +12570,11 @@ qtdemux_audio_caps (GstQTDemux * qtdemux, QtDemuxStream * stream,
"format", G_TYPE_STRING, "S32BE", "format", G_TYPE_STRING, "S32BE",
"layout", G_TYPE_STRING, "interleaved", NULL); "layout", G_TYPE_STRING, "interleaved", NULL);
break; break;
case GST_MAKE_FOURCC ('u', 'l', 'a', 'w'): case FOURCC_ulaw:
_codec ("Mu-law audio"); _codec ("Mu-law audio");
caps = gst_caps_new_empty_simple ("audio/x-mulaw"); caps = gst_caps_new_empty_simple ("audio/x-mulaw");
break; break;
case GST_MAKE_FOURCC ('a', 'l', 'a', 'w'): case FOURCC_alaw:
_codec ("A-law audio"); _codec ("A-law audio");
caps = gst_caps_new_empty_simple ("audio/x-alaw"); caps = gst_caps_new_empty_simple ("audio/x-alaw");
break; break;
@ -12601,7 +12601,7 @@ qtdemux_audio_caps (GstQTDemux * qtdemux, QtDemuxStream * stream,
case 0x5500736d: case 0x5500736d:
case 0x6d730055: case 0x6d730055:
/* MPEG layer 3, CBR only (pre QT4.1) */ /* MPEG layer 3, CBR only (pre QT4.1) */
case GST_MAKE_FOURCC ('.', 'm', 'p', '3'): case FOURCC__mp3:
_codec ("MPEG-1 layer 3"); _codec ("MPEG-1 layer 3");
/* MPEG layer 3, CBR & VBR (QT4.1 and later) */ /* MPEG layer 3, CBR & VBR (QT4.1 and later) */
caps = gst_caps_new_simple ("audio/mpeg", "layer", G_TYPE_INT, 3, caps = gst_caps_new_simple ("audio/mpeg", "layer", G_TYPE_INT, 3,
@ -12615,7 +12615,7 @@ qtdemux_audio_caps (GstQTDemux * qtdemux, QtDemuxStream * stream,
stream->sampled = TRUE; stream->sampled = TRUE;
break; break;
case GST_MAKE_FOURCC ('s', 'a', 'c', '3'): // Nero Recode case GST_MAKE_FOURCC ('s', 'a', 'c', '3'): // Nero Recode
case GST_MAKE_FOURCC ('a', 'c', '-', '3'): case FOURCC_ac_3:
_codec ("AC-3 audio"); _codec ("AC-3 audio");
caps = gst_caps_new_simple ("audio/x-ac3", caps = gst_caps_new_simple ("audio/x-ac3",
"framed", G_TYPE_BOOLEAN, TRUE, NULL); "framed", G_TYPE_BOOLEAN, TRUE, NULL);
@ -12635,12 +12635,12 @@ qtdemux_audio_caps (GstQTDemux * qtdemux, QtDemuxStream * stream,
"framed", G_TYPE_BOOLEAN, TRUE, NULL); "framed", G_TYPE_BOOLEAN, TRUE, NULL);
stream->sampled = TRUE; stream->sampled = TRUE;
break; break;
case GST_MAKE_FOURCC ('M', 'A', 'C', '3'): case FOURCC_MAC3:
_codec ("MACE-3"); _codec ("MACE-3");
caps = gst_caps_new_simple ("audio/x-mace", caps = gst_caps_new_simple ("audio/x-mace",
"maceversion", G_TYPE_INT, 3, NULL); "maceversion", G_TYPE_INT, 3, NULL);
break; break;
case GST_MAKE_FOURCC ('M', 'A', 'C', '6'): case FOURCC_MAC6:
_codec ("MACE-6"); _codec ("MACE-6");
caps = gst_caps_new_simple ("audio/x-mace", caps = gst_caps_new_simple ("audio/x-mace",
"maceversion", G_TYPE_INT, 6, NULL); "maceversion", G_TYPE_INT, 6, NULL);
@ -12653,7 +12653,7 @@ qtdemux_audio_caps (GstQTDemux * qtdemux, QtDemuxStream * stream,
_codec ("DV audio"); _codec ("DV audio");
caps = gst_caps_new_empty_simple ("audio/x-dv"); caps = gst_caps_new_empty_simple ("audio/x-dv");
break; break;
case GST_MAKE_FOURCC ('m', 'p', '4', 'a'): case FOURCC_mp4a:
_codec ("MPEG-4 AAC audio"); _codec ("MPEG-4 AAC audio");
caps = gst_caps_new_simple ("audio/mpeg", caps = gst_caps_new_simple ("audio/mpeg",
"mpegversion", G_TYPE_INT, 4, "framed", G_TYPE_BOOLEAN, TRUE, "mpegversion", G_TYPE_INT, 4, "framed", G_TYPE_BOOLEAN, TRUE,
@ -12663,7 +12663,7 @@ qtdemux_audio_caps (GstQTDemux * qtdemux, QtDemuxStream * stream,
_codec ("QDesign Music"); _codec ("QDesign Music");
caps = gst_caps_new_empty_simple ("audio/x-qdm"); caps = gst_caps_new_empty_simple ("audio/x-qdm");
break; break;
case GST_MAKE_FOURCC ('Q', 'D', 'M', '2'): case FOURCC_QDM2:
_codec ("QDesign Music v.2"); _codec ("QDesign Music v.2");
/* FIXME: QDesign music version 2 (no constant) */ /* FIXME: QDesign music version 2 (no constant) */
if (FALSE && data) { if (FALSE && data) {
@ -12675,24 +12675,24 @@ qtdemux_audio_caps (GstQTDemux * qtdemux, QtDemuxStream * stream,
caps = gst_caps_new_empty_simple ("audio/x-qdm2"); caps = gst_caps_new_empty_simple ("audio/x-qdm2");
} }
break; break;
case GST_MAKE_FOURCC ('a', 'g', 's', 'm'): case FOURCC_agsm:
_codec ("GSM audio"); _codec ("GSM audio");
caps = gst_caps_new_empty_simple ("audio/x-gsm"); caps = gst_caps_new_empty_simple ("audio/x-gsm");
break; break;
case GST_MAKE_FOURCC ('s', 'a', 'm', 'r'): case FOURCC_samr:
_codec ("AMR audio"); _codec ("AMR audio");
caps = gst_caps_new_empty_simple ("audio/AMR"); caps = gst_caps_new_empty_simple ("audio/AMR");
break; break;
case GST_MAKE_FOURCC ('s', 'a', 'w', 'b'): case FOURCC_sawb:
_codec ("AMR-WB audio"); _codec ("AMR-WB audio");
caps = gst_caps_new_empty_simple ("audio/AMR-WB"); caps = gst_caps_new_empty_simple ("audio/AMR-WB");
break; break;
case GST_MAKE_FOURCC ('i', 'm', 'a', '4'): case FOURCC_ima4:
_codec ("Quicktime IMA ADPCM"); _codec ("Quicktime IMA ADPCM");
caps = gst_caps_new_simple ("audio/x-adpcm", caps = gst_caps_new_simple ("audio/x-adpcm",
"layout", G_TYPE_STRING, "quicktime", NULL); "layout", G_TYPE_STRING, "quicktime", NULL);
break; break;
case GST_MAKE_FOURCC ('a', 'l', 'a', 'c'): case FOURCC_alac:
_codec ("Apple lossless audio"); _codec ("Apple lossless audio");
caps = gst_caps_new_empty_simple ("audio/x-alac"); caps = gst_caps_new_empty_simple ("audio/x-alac");
break; break;
@ -12803,15 +12803,15 @@ qtdemux_sub_caps (GstQTDemux * qtdemux, QtDemuxStream * stream,
GST_DEBUG_OBJECT (qtdemux, "resolve fourcc 0x%08x", GUINT32_TO_BE (fourcc)); GST_DEBUG_OBJECT (qtdemux, "resolve fourcc 0x%08x", GUINT32_TO_BE (fourcc));
switch (fourcc) { switch (fourcc) {
case GST_MAKE_FOURCC ('m', 'p', '4', 's'): case FOURCC_mp4s:
_codec ("DVD subtitle"); _codec ("DVD subtitle");
caps = gst_caps_new_empty_simple ("subpicture/x-dvd"); caps = gst_caps_new_empty_simple ("subpicture/x-dvd");
stream->need_process = TRUE; stream->need_process = TRUE;
break; break;
case GST_MAKE_FOURCC ('t', 'e', 'x', 't'): case FOURCC_text:
_codec ("Quicktime timed text"); _codec ("Quicktime timed text");
goto text; goto text;
case GST_MAKE_FOURCC ('t', 'x', '3', 'g'): case FOURCC_tx3g:
_codec ("3GPP timed text"); _codec ("3GPP timed text");
text: text:
caps = gst_caps_new_simple ("text/x-raw", "format", G_TYPE_STRING, caps = gst_caps_new_simple ("text/x-raw", "format", G_TYPE_STRING,
@ -12844,7 +12844,7 @@ qtdemux_generic_caps (GstQTDemux * qtdemux, QtDemuxStream * stream,
GstCaps *caps; GstCaps *caps;
switch (fourcc) { switch (fourcc) {
case GST_MAKE_FOURCC ('m', '1', 'v', ' '): case FOURCC_m1v:
_codec ("MPEG 1 video"); _codec ("MPEG 1 video");
caps = gst_caps_new_simple ("video/mpeg", "mpegversion", G_TYPE_INT, 1, caps = gst_caps_new_simple ("video/mpeg", "mpegversion", G_TYPE_INT, 1,
"systemstream", G_TYPE_BOOLEAN, FALSE, NULL); "systemstream", G_TYPE_BOOLEAN, FALSE, NULL);