mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-09-09 05:38:58 +00:00
riff: Add more codec mappings.
This comes mostly from a review of ffmpeg/libavformat/riff.c
This commit is contained in:
parent
3d0c70d3d8
commit
6f73427aa6
2 changed files with 144 additions and 4 deletions
|
@ -326,6 +326,8 @@ typedef struct _gst_riff_strf_auds { /* == WaveHeader (?) */
|
||||||
#define GST_RIFF_WAVE_FORMAT_RT24 (0x0052)
|
#define GST_RIFF_WAVE_FORMAT_RT24 (0x0052)
|
||||||
#define GST_RIFF_WAVE_FORMAT_PAC (0x0053)
|
#define GST_RIFF_WAVE_FORMAT_PAC (0x0053)
|
||||||
#define GST_RIFF_WAVE_FORMAT_MPEGL3 (0x0055)
|
#define GST_RIFF_WAVE_FORMAT_MPEGL3 (0x0055)
|
||||||
|
#define GST_RIFF_WAVE_FORMAT_AMR_NB (0x0057)
|
||||||
|
#define GST_RIFF_WAVE_FORMAT_AMR_WB (0x0058)
|
||||||
#define GST_RIFF_WAVE_FORMAT_LUCENT_G723 (0x0059)
|
#define GST_RIFF_WAVE_FORMAT_LUCENT_G723 (0x0059)
|
||||||
#define GST_RIFF_WAVE_FORMAT_CIRRUS (0x0060)
|
#define GST_RIFF_WAVE_FORMAT_CIRRUS (0x0060)
|
||||||
#define GST_RIFF_WAVE_FORMAT_ADPCM_IMA_DK4 (0x0061) /* not official */
|
#define GST_RIFF_WAVE_FORMAT_ADPCM_IMA_DK4 (0x0061) /* not official */
|
||||||
|
@ -339,7 +341,11 @@ typedef struct _gst_riff_strf_auds { /* == WaveHeader (?) */
|
||||||
#define GST_RIFF_WAVE_FORMAT_G726_ADPCM (0x0064)
|
#define GST_RIFF_WAVE_FORMAT_G726_ADPCM (0x0064)
|
||||||
#define GST_RIFF_WAVE_FORMAT_G722_ADPCM (0x0065)
|
#define GST_RIFF_WAVE_FORMAT_G722_ADPCM (0x0065)
|
||||||
#define GST_RIFF_WAVE_FORMAT_DSAT_DISPLAY (0x0067)
|
#define GST_RIFF_WAVE_FORMAT_DSAT_DISPLAY (0x0067)
|
||||||
|
#define GST_RIFF_WAVE_FORMAT_ADPCM_IMA_WAV (0x0069)
|
||||||
|
/* FIXME: where are these from? are they used at all? */
|
||||||
|
#if 0
|
||||||
#define GST_RIFF_WAVE_FORMAT_VOXWARE_BYTE_ALIGNED (0x0069)
|
#define GST_RIFF_WAVE_FORMAT_VOXWARE_BYTE_ALIGNED (0x0069)
|
||||||
|
#endif
|
||||||
#define GST_RIFF_WAVE_FORMAT_VOXWARE_AC8 (0x0070)
|
#define GST_RIFF_WAVE_FORMAT_VOXWARE_AC8 (0x0070)
|
||||||
#define GST_RIFF_WAVE_FORMAT_VOXWARE_AC10 (0x0071)
|
#define GST_RIFF_WAVE_FORMAT_VOXWARE_AC10 (0x0071)
|
||||||
#define GST_RIFF_WAVE_FORMAT_VOXWARE_AC16 (0x0072)
|
#define GST_RIFF_WAVE_FORMAT_VOXWARE_AC16 (0x0072)
|
||||||
|
|
|
@ -118,7 +118,9 @@ gst_riff_create_video_caps (guint32 codec_fcc,
|
||||||
case GST_MAKE_FOURCC ('A', 'V', 'R', 'n'):
|
case GST_MAKE_FOURCC ('A', 'V', 'R', 'n'):
|
||||||
case GST_MAKE_FOURCC ('I', 'J', 'P', 'G'):
|
case GST_MAKE_FOURCC ('I', 'J', 'P', 'G'):
|
||||||
case GST_MAKE_FOURCC ('i', 'j', 'p', 'g'):
|
case GST_MAKE_FOURCC ('i', 'j', 'p', 'g'):
|
||||||
case GST_MAKE_FOURCC ('J', 'P', 'G', 'L'):
|
case GST_MAKE_FOURCC ('d', 'm', 'b', '1'):
|
||||||
|
case GST_MAKE_FOURCC ('A', 'C', 'D', 'V'):
|
||||||
|
case GST_MAKE_FOURCC ('Q', 'I', 'V', 'G'):
|
||||||
caps = gst_caps_new_simple ("image/jpeg", NULL);
|
caps = gst_caps_new_simple ("image/jpeg", NULL);
|
||||||
if (codec_name)
|
if (codec_name)
|
||||||
*codec_name = g_strdup ("Motion JPEG");
|
*codec_name = g_strdup ("Motion JPEG");
|
||||||
|
@ -135,7 +137,25 @@ gst_riff_create_video_caps (guint32 codec_fcc,
|
||||||
case GST_MAKE_FOURCC ('V', 'I', 'X', 'L'): /* Miro/Pinnacle fourccs */
|
case GST_MAKE_FOURCC ('V', 'I', 'X', 'L'): /* Miro/Pinnacle fourccs */
|
||||||
caps = gst_caps_new_simple ("image/jpeg", NULL);
|
caps = gst_caps_new_simple ("image/jpeg", NULL);
|
||||||
if (codec_name)
|
if (codec_name)
|
||||||
*codec_name = g_strdup ("Miro/Pinnacle Motion JPEG Video");
|
*codec_name = g_strdup ("Miro/Pinnacle Motion JPEG");
|
||||||
|
break;
|
||||||
|
|
||||||
|
case GST_MAKE_FOURCC ('C', 'J', 'P', 'G'):
|
||||||
|
caps = gst_caps_new_simple ("image/jpeg", NULL);
|
||||||
|
if (codec_name)
|
||||||
|
*codec_name = g_strdup ("Creative Webcam JPEG");
|
||||||
|
break;
|
||||||
|
|
||||||
|
case GST_MAKE_FOURCC ('S', 'L', 'M', 'J'):
|
||||||
|
caps = gst_caps_new_simple ("image/jpeg", NULL);
|
||||||
|
if (codec_name)
|
||||||
|
*codec_name = g_strdup ("SL Motion JPEG");
|
||||||
|
break;
|
||||||
|
|
||||||
|
case GST_MAKE_FOURCC ('J', 'P', 'G', 'L'):
|
||||||
|
caps = gst_caps_new_simple ("image/jpeg", NULL);
|
||||||
|
if (codec_name)
|
||||||
|
*codec_name = g_strdup ("Pegasus Lossless JPEG");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case GST_MAKE_FOURCC ('S', 'P', '5', '3'):
|
case GST_MAKE_FOURCC ('S', 'P', '5', '3'):
|
||||||
|
@ -171,8 +191,10 @@ gst_riff_create_video_caps (guint32 codec_fcc,
|
||||||
if (codec_name)
|
if (codec_name)
|
||||||
*codec_name = g_strdup ("MPEG-1 video");
|
*codec_name = g_strdup ("MPEG-1 video");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case GST_MAKE_FOURCC ('M', 'P', 'G', '2'):
|
case GST_MAKE_FOURCC ('M', 'P', 'G', '2'):
|
||||||
case GST_MAKE_FOURCC ('m', 'p', 'g', '2'):
|
case GST_MAKE_FOURCC ('m', 'p', 'g', '2'):
|
||||||
|
case GST_MAKE_FOURCC ('P', 'I', 'M', '2'):
|
||||||
case GST_MAKE_FOURCC (0x02, 0x00, 0x00, 0x10):
|
case GST_MAKE_FOURCC (0x02, 0x00, 0x00, 0x10):
|
||||||
caps = gst_caps_new_simple ("video/mpeg",
|
caps = gst_caps_new_simple ("video/mpeg",
|
||||||
"systemstream", G_TYPE_BOOLEAN, FALSE,
|
"systemstream", G_TYPE_BOOLEAN, FALSE,
|
||||||
|
@ -181,10 +203,20 @@ gst_riff_create_video_caps (guint32 codec_fcc,
|
||||||
*codec_name = g_strdup ("MPEG-2 video");
|
*codec_name = g_strdup ("MPEG-2 video");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case GST_MAKE_FOURCC ('L', 'M', 'P', '2'):
|
||||||
|
caps = gst_caps_new_simple ("video/mpeg",
|
||||||
|
"systemstream", G_TYPE_BOOLEAN, FALSE,
|
||||||
|
"mpegversion", G_TYPE_INT, 2, NULL);
|
||||||
|
if (codec_name)
|
||||||
|
*codec_name = g_strdup ("Lead MPEG-2 video");
|
||||||
|
break;
|
||||||
|
|
||||||
case GST_MAKE_FOURCC ('H', '2', '6', '3'):
|
case GST_MAKE_FOURCC ('H', '2', '6', '3'):
|
||||||
case GST_MAKE_FOURCC ('h', '2', '6', '3'):
|
case GST_MAKE_FOURCC ('h', '2', '6', '3'):
|
||||||
case GST_MAKE_FOURCC ('i', '2', '6', '3'):
|
case GST_MAKE_FOURCC ('i', '2', '6', '3'):
|
||||||
case GST_MAKE_FOURCC ('U', '2', '6', '3'):
|
case GST_MAKE_FOURCC ('U', '2', '6', '3'):
|
||||||
|
case GST_MAKE_FOURCC ('v', 'i', 'v', '1'):
|
||||||
|
case GST_MAKE_FOURCC ('T', '2', '6', '3'):
|
||||||
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);
|
||||||
if (codec_name)
|
if (codec_name)
|
||||||
|
@ -236,6 +268,13 @@ gst_riff_create_video_caps (guint32 codec_fcc,
|
||||||
*codec_name = g_strdup ("Intel H.263");
|
*codec_name = g_strdup ("Intel H.263");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case GST_MAKE_FOURCC ('V', 'X', '1', 'K'):
|
||||||
|
caps = gst_caps_new_simple ("video/x-h263",
|
||||||
|
"variant", G_TYPE_STRING, "lucent", NULL);
|
||||||
|
if (codec_name)
|
||||||
|
*codec_name = g_strdup ("Lucent VX1000S H.263");
|
||||||
|
break;
|
||||||
|
|
||||||
case GST_MAKE_FOURCC ('X', '2', '6', '4'):
|
case GST_MAKE_FOURCC ('X', '2', '6', '4'):
|
||||||
case GST_MAKE_FOURCC ('x', '2', '6', '4'):
|
case GST_MAKE_FOURCC ('x', '2', '6', '4'):
|
||||||
case GST_MAKE_FOURCC ('H', '2', '6', '4'):
|
case GST_MAKE_FOURCC ('H', '2', '6', '4'):
|
||||||
|
@ -270,8 +309,17 @@ gst_riff_create_video_caps (guint32 codec_fcc,
|
||||||
*codec_name = g_strdup ("Samsung MPEG-4");
|
*codec_name = g_strdup ("Samsung MPEG-4");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case GST_MAKE_FOURCC ('M', '4', 'C', 'C'):
|
||||||
|
caps = gst_caps_new_simple ("video/mpeg",
|
||||||
|
"mpegversion", G_TYPE_INT, 4, NULL);
|
||||||
|
if (codec_name)
|
||||||
|
*codec_name = g_strdup ("Divio MPEG-4");
|
||||||
|
break;
|
||||||
|
|
||||||
case GST_MAKE_FOURCC ('D', 'I', 'V', '3'):
|
case GST_MAKE_FOURCC ('D', 'I', 'V', '3'):
|
||||||
case GST_MAKE_FOURCC ('d', 'i', 'v', '3'):
|
case GST_MAKE_FOURCC ('d', 'i', 'v', '3'):
|
||||||
|
case GST_MAKE_FOURCC ('D', 'V', 'X', '3'):
|
||||||
|
case GST_MAKE_FOURCC ('d', 'v', 'x', '3'):
|
||||||
case GST_MAKE_FOURCC ('D', 'I', 'V', '4'):
|
case GST_MAKE_FOURCC ('D', 'I', 'V', '4'):
|
||||||
case GST_MAKE_FOURCC ('d', 'i', 'v', '4'):
|
case GST_MAKE_FOURCC ('d', 'i', 'v', '4'):
|
||||||
case GST_MAKE_FOURCC ('D', 'I', 'V', '5'):
|
case GST_MAKE_FOURCC ('D', 'I', 'V', '5'):
|
||||||
|
@ -321,6 +369,8 @@ gst_riff_create_video_caps (guint32 codec_fcc,
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case GST_MAKE_FOURCC ('M', 'P', 'G', '4'):
|
case GST_MAKE_FOURCC ('M', 'P', 'G', '4'):
|
||||||
|
case GST_MAKE_FOURCC ('M', 'P', '4', '1'):
|
||||||
|
case GST_MAKE_FOURCC ('m', 'p', '4', '1'):
|
||||||
caps = gst_caps_new_simple ("video/x-msmpeg",
|
caps = gst_caps_new_simple ("video/x-msmpeg",
|
||||||
"msmpegversion", G_TYPE_INT, 41, NULL);
|
"msmpegversion", G_TYPE_INT, 41, NULL);
|
||||||
if (codec_name)
|
if (codec_name)
|
||||||
|
@ -353,12 +403,33 @@ gst_riff_create_video_caps (guint32 codec_fcc,
|
||||||
|
|
||||||
case GST_MAKE_FOURCC ('F', 'M', 'P', '4'):
|
case GST_MAKE_FOURCC ('F', 'M', 'P', '4'):
|
||||||
case GST_MAKE_FOURCC ('U', 'M', 'P', '4'):
|
case GST_MAKE_FOURCC ('U', 'M', 'P', '4'):
|
||||||
|
case GST_MAKE_FOURCC ('F', 'F', 'D', 'S'):
|
||||||
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);
|
||||||
if (codec_name)
|
if (codec_name)
|
||||||
*codec_name = g_strdup ("FFmpeg MPEG-4");
|
*codec_name = g_strdup ("FFmpeg MPEG-4");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case GST_MAKE_FOURCC ('E', 'M', '4', 'A'):
|
||||||
|
case GST_MAKE_FOURCC ('E', 'P', 'V', 'H'):
|
||||||
|
case GST_MAKE_FOURCC ('F', 'V', 'F', 'W'):
|
||||||
|
case GST_MAKE_FOURCC ('I', 'N', 'M', 'C'):
|
||||||
|
case GST_MAKE_FOURCC ('D', 'I', 'G', 'I'):
|
||||||
|
case GST_MAKE_FOURCC ('D', 'M', '2', 'K'):
|
||||||
|
case GST_MAKE_FOURCC ('D', 'C', 'O', 'D'):
|
||||||
|
case GST_MAKE_FOURCC ('M', 'V', 'X', 'M'):
|
||||||
|
case GST_MAKE_FOURCC ('P', 'M', '4', 'V'):
|
||||||
|
case GST_MAKE_FOURCC ('S', 'M', 'P', '4'):
|
||||||
|
case GST_MAKE_FOURCC ('D', 'X', 'G', 'M'):
|
||||||
|
case GST_MAKE_FOURCC ('V', 'I', 'D', 'M'):
|
||||||
|
case GST_MAKE_FOURCC ('M', '4', 'T', '3'):
|
||||||
|
case GST_MAKE_FOURCC ('G', 'E', 'O', 'X'):
|
||||||
|
caps = gst_caps_new_simple ("video/mpeg",
|
||||||
|
"mpegversion", G_TYPE_INT, 4, NULL);
|
||||||
|
if (codec_name)
|
||||||
|
*codec_name = g_strdup ("MPEG-4");
|
||||||
|
break;
|
||||||
|
|
||||||
case GST_MAKE_FOURCC ('3', 'i', 'v', 'd'):
|
case GST_MAKE_FOURCC ('3', 'i', 'v', 'd'):
|
||||||
case GST_MAKE_FOURCC ('3', 'I', 'V', 'D'):
|
case GST_MAKE_FOURCC ('3', 'I', 'V', 'D'):
|
||||||
caps = gst_caps_new_simple ("video/x-msmpeg",
|
caps = gst_caps_new_simple ("video/x-msmpeg",
|
||||||
|
@ -376,7 +447,8 @@ gst_riff_create_video_caps (guint32 codec_fcc,
|
||||||
|
|
||||||
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 ('C', 'D', 'V', 'C'):
|
case GST_MAKE_FOURCC ('d', 'v', 'c', ' '):
|
||||||
|
case GST_MAKE_FOURCC ('d', 'v', '2', '5'):
|
||||||
caps = gst_caps_new_simple ("video/x-dv",
|
caps = gst_caps_new_simple ("video/x-dv",
|
||||||
"systemstream", G_TYPE_BOOLEAN, FALSE,
|
"systemstream", G_TYPE_BOOLEAN, FALSE,
|
||||||
"dvversion", G_TYPE_INT, 25, NULL);
|
"dvversion", G_TYPE_INT, 25, NULL);
|
||||||
|
@ -384,6 +456,15 @@ gst_riff_create_video_caps (guint32 codec_fcc,
|
||||||
*codec_name = g_strdup ("Generic DV");
|
*codec_name = g_strdup ("Generic DV");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case GST_MAKE_FOURCC ('C', 'D', 'V', 'C'):
|
||||||
|
case GST_MAKE_FOURCC ('c', 'd', 'v', 'c'):
|
||||||
|
caps = gst_caps_new_simple ("video/x-dv",
|
||||||
|
"systemstream", G_TYPE_BOOLEAN, FALSE,
|
||||||
|
"dvversion", G_TYPE_INT, 25, NULL);
|
||||||
|
if (codec_name)
|
||||||
|
*codec_name = g_strdup ("Canopus DV");
|
||||||
|
break;
|
||||||
|
|
||||||
case GST_MAKE_FOURCC ('D', 'V', '5', '0'):
|
case GST_MAKE_FOURCC ('D', 'V', '5', '0'):
|
||||||
case GST_MAKE_FOURCC ('d', 'v', '5', '0'):
|
case GST_MAKE_FOURCC ('d', 'v', '5', '0'):
|
||||||
caps = gst_caps_new_simple ("video/x-dv",
|
caps = gst_caps_new_simple ("video/x-dv",
|
||||||
|
@ -453,6 +534,7 @@ gst_riff_create_video_caps (guint32 codec_fcc,
|
||||||
case GST_MAKE_FOURCC ('R', 'L', 'E', ' '):
|
case GST_MAKE_FOURCC ('R', 'L', 'E', ' '):
|
||||||
case GST_MAKE_FOURCC ('m', 'r', 'l', 'e'):
|
case GST_MAKE_FOURCC ('m', 'r', 'l', 'e'):
|
||||||
case GST_MAKE_FOURCC (0x1, 0x0, 0x0, 0x0): /* why, why, why? */
|
case GST_MAKE_FOURCC (0x1, 0x0, 0x0, 0x0): /* why, why, why? */
|
||||||
|
case GST_MAKE_FOURCC (0x2, 0x0, 0x0, 0x0): /* why, why, why? */
|
||||||
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);
|
||||||
palette = strf_data;
|
palette = strf_data;
|
||||||
|
@ -519,6 +601,7 @@ gst_riff_create_video_caps (guint32 codec_fcc,
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case GST_MAKE_FOURCC ('C', 'L', 'J', 'R'):
|
case GST_MAKE_FOURCC ('C', 'L', 'J', 'R'):
|
||||||
|
case GST_MAKE_FOURCC ('c', 'l', 'j', 'r'):
|
||||||
caps = gst_caps_new_simple ("video/x-cirrus-logic-accupak", NULL);
|
caps = gst_caps_new_simple ("video/x-cirrus-logic-accupak", NULL);
|
||||||
if (codec_name)
|
if (codec_name)
|
||||||
*codec_name = g_strdup ("Cirrus Logipak AccuPak");
|
*codec_name = g_strdup ("Cirrus Logipak AccuPak");
|
||||||
|
@ -532,6 +615,7 @@ gst_riff_create_video_caps (guint32 codec_fcc,
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case GST_MAKE_FOURCC ('D', 'U', 'C', 'K'):
|
case GST_MAKE_FOURCC ('D', 'U', 'C', 'K'):
|
||||||
|
case GST_MAKE_FOURCC ('P', 'V', 'E', 'Z'):
|
||||||
caps = gst_caps_new_simple ("video/x-truemotion",
|
caps = gst_caps_new_simple ("video/x-truemotion",
|
||||||
"trueversion", G_TYPE_INT, 1, NULL);
|
"trueversion", G_TYPE_INT, 1, NULL);
|
||||||
if (codec_name)
|
if (codec_name)
|
||||||
|
@ -633,6 +717,15 @@ gst_riff_create_video_caps (guint32 codec_fcc,
|
||||||
*codec_name = g_strdup ("Dirac");
|
*codec_name = g_strdup ("Dirac");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case GST_RIFF_rpza:
|
||||||
|
case GST_RIFF_azpr:
|
||||||
|
case GST_MAKE_FOURCC ('R', 'P', 'Z', 'A'):
|
||||||
|
caps = gst_caps_new_simple ("video/x-apple-video", NULL);
|
||||||
|
if (codec_name)
|
||||||
|
*codec_name = g_strdup ("Apple Video (RPZA)");
|
||||||
|
break;
|
||||||
|
|
||||||
|
|
||||||
case GST_MAKE_FOURCC ('F', 'F', 'V', '1'):
|
case GST_MAKE_FOURCC ('F', 'F', 'V', '1'):
|
||||||
caps = gst_caps_new_simple ("video/x-ffv",
|
caps = gst_caps_new_simple ("video/x-ffv",
|
||||||
"ffvversion", G_TYPE_INT, 1, NULL);
|
"ffvversion", G_TYPE_INT, 1, NULL);
|
||||||
|
@ -653,6 +746,13 @@ gst_riff_create_video_caps (guint32 codec_fcc,
|
||||||
*codec_name = g_strdup ("On2 VP6");
|
*codec_name = g_strdup ("On2 VP6");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case GST_MAKE_FOURCC ('L', 'M', '2', '0'):
|
||||||
|
caps = gst_caps_new_simple ("video/x-mimic", NULL);
|
||||||
|
if (codec_name)
|
||||||
|
*codec_name = g_strdup ("Mimic webcam");
|
||||||
|
break;
|
||||||
|
|
||||||
|
|
||||||
default:
|
default:
|
||||||
GST_WARNING ("Unknown video fourcc %" GST_FOURCC_FORMAT,
|
GST_WARNING ("Unknown video fourcc %" GST_FOURCC_FORMAT,
|
||||||
GST_FOURCC_ARGS (codec_fcc));
|
GST_FOURCC_ARGS (codec_fcc));
|
||||||
|
@ -1112,6 +1212,24 @@ gst_riff_create_audio_caps (guint16 codec_id,
|
||||||
*codec_name = g_strdup ("MPEG-1 layer 3");
|
*codec_name = g_strdup ("MPEG-1 layer 3");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case GST_RIFF_WAVE_FORMAT_AMR_NB: /* amr-nb */
|
||||||
|
rate_min = 8000;
|
||||||
|
rate_max = 8000;
|
||||||
|
channels_max = 1;
|
||||||
|
caps = gst_caps_new_simple ("audio/AMR", NULL);
|
||||||
|
if (codec_name)
|
||||||
|
*codec_name = g_strdup ("AMR Narrow Band (NB)");
|
||||||
|
break;
|
||||||
|
|
||||||
|
case GST_RIFF_WAVE_FORMAT_AMR_WB: /* amr-wb */
|
||||||
|
rate_min = 16000;
|
||||||
|
rate_max = 16000;
|
||||||
|
channels_max = 1;
|
||||||
|
caps = gst_caps_new_simple ("audio/AMR-WB", NULL);
|
||||||
|
if (codec_name)
|
||||||
|
*codec_name = g_strdup ("AMR Wide Band (WB)");
|
||||||
|
break;
|
||||||
|
|
||||||
case GST_RIFF_WAVE_FORMAT_VORBIS1: /* ogg/vorbis mode 1 */
|
case GST_RIFF_WAVE_FORMAT_VORBIS1: /* ogg/vorbis mode 1 */
|
||||||
case GST_RIFF_WAVE_FORMAT_VORBIS2: /* ogg/vorbis mode 2 */
|
case GST_RIFF_WAVE_FORMAT_VORBIS2: /* ogg/vorbis mode 2 */
|
||||||
case GST_RIFF_WAVE_FORMAT_VORBIS3: /* ogg/vorbis mode 3 */
|
case GST_RIFF_WAVE_FORMAT_VORBIS3: /* ogg/vorbis mode 3 */
|
||||||
|
@ -1206,6 +1324,16 @@ gst_riff_create_audio_caps (guint16 codec_id,
|
||||||
*codec_name = g_strdup ("IMA/DK3 ADPCM");
|
*codec_name = g_strdup ("IMA/DK3 ADPCM");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case GST_RIFF_WAVE_FORMAT_ADPCM_IMA_WAV:
|
||||||
|
rate_min = 8000;
|
||||||
|
rate_max = 96000;
|
||||||
|
channels_max = 2;
|
||||||
|
caps =
|
||||||
|
gst_caps_new_simple ("audio/x-adpcm", "layout", G_TYPE_STRING, "dvi",
|
||||||
|
NULL);
|
||||||
|
if (codec_name)
|
||||||
|
*codec_name = g_strdup ("IMA/WAV ADPCM");
|
||||||
|
break;
|
||||||
case GST_RIFF_WAVE_FORMAT_EXTENSIBLE:{
|
case GST_RIFF_WAVE_FORMAT_EXTENSIBLE:{
|
||||||
guint16 valid_bits_per_sample;
|
guint16 valid_bits_per_sample;
|
||||||
guint32 channel_mask;
|
guint32 channel_mask;
|
||||||
|
@ -1383,7 +1511,6 @@ gst_riff_create_audio_caps (guint16 codec_id,
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
/* can anything decode these? pitfdll? */
|
/* can anything decode these? pitfdll? */
|
||||||
case GST_RIFF_WAVE_FORMAT_VOXWARE_BYTE_ALIGNED:
|
|
||||||
case GST_RIFF_WAVE_FORMAT_VOXWARE_AC8:
|
case GST_RIFF_WAVE_FORMAT_VOXWARE_AC8:
|
||||||
case GST_RIFF_WAVE_FORMAT_VOXWARE_AC10:
|
case GST_RIFF_WAVE_FORMAT_VOXWARE_AC10:
|
||||||
case GST_RIFF_WAVE_FORMAT_VOXWARE_AC16:
|
case GST_RIFF_WAVE_FORMAT_VOXWARE_AC16:
|
||||||
|
@ -1510,8 +1637,10 @@ gst_riff_create_video_template_caps (void)
|
||||||
GST_MAKE_FOURCC ('D', 'V', 'S', 'D'),
|
GST_MAKE_FOURCC ('D', 'V', 'S', 'D'),
|
||||||
GST_MAKE_FOURCC ('D', 'V', '5', '0'),
|
GST_MAKE_FOURCC ('D', 'V', '5', '0'),
|
||||||
GST_MAKE_FOURCC ('D', 'X', '5', '0'),
|
GST_MAKE_FOURCC ('D', 'X', '5', '0'),
|
||||||
|
GST_MAKE_FOURCC ('M', '4', 'C', 'C'),
|
||||||
GST_MAKE_FOURCC ('F', 'L', 'V', '1'),
|
GST_MAKE_FOURCC ('F', 'L', 'V', '1'),
|
||||||
GST_MAKE_FOURCC ('H', '2', '6', '3'),
|
GST_MAKE_FOURCC ('H', '2', '6', '3'),
|
||||||
|
GST_MAKE_FOURCC ('V', 'X', '1', 'K'),
|
||||||
GST_MAKE_FOURCC ('H', '2', '6', '4'),
|
GST_MAKE_FOURCC ('H', '2', '6', '4'),
|
||||||
GST_MAKE_FOURCC ('H', 'F', 'Y', 'U'),
|
GST_MAKE_FOURCC ('H', 'F', 'Y', 'U'),
|
||||||
GST_MAKE_FOURCC ('I', '2', '6', '3'),
|
GST_MAKE_FOURCC ('I', '2', '6', '3'),
|
||||||
|
@ -1560,6 +1689,8 @@ gst_riff_create_video_template_caps (void)
|
||||||
GST_MAKE_FOURCC ('F', 'F', 'V', '1'),
|
GST_MAKE_FOURCC ('F', 'F', 'V', '1'),
|
||||||
GST_MAKE_FOURCC ('K', 'M', 'V', 'C'),
|
GST_MAKE_FOURCC ('K', 'M', 'V', 'C'),
|
||||||
GST_MAKE_FOURCC ('V', 'P', '6', '0'),
|
GST_MAKE_FOURCC ('V', 'P', '6', '0'),
|
||||||
|
GST_MAKE_FOURCC ('L', 'M', '2', '0'),
|
||||||
|
GST_MAKE_FOURCC ('R', 'P', 'Z', 'A'),
|
||||||
/* FILL ME */
|
/* FILL ME */
|
||||||
};
|
};
|
||||||
guint i;
|
guint i;
|
||||||
|
@ -1601,6 +1732,9 @@ gst_riff_create_audio_template_caps (void)
|
||||||
GST_RIFF_WAVE_FORMAT_VOXWARE_METASOUND,
|
GST_RIFF_WAVE_FORMAT_VOXWARE_METASOUND,
|
||||||
GST_RIFF_WAVE_FORMAT_ADPCM_IMA_DK4,
|
GST_RIFF_WAVE_FORMAT_ADPCM_IMA_DK4,
|
||||||
GST_RIFF_WAVE_FORMAT_ADPCM_IMA_DK3,
|
GST_RIFF_WAVE_FORMAT_ADPCM_IMA_DK3,
|
||||||
|
GST_RIFF_WAVE_FORMAT_ADPCM_IMA_WAV,
|
||||||
|
GST_RIFF_WAVE_FORMAT_AMR_NB,
|
||||||
|
GST_RIFF_WAVE_FORMAT_AMR_WB,
|
||||||
/* FILL ME */
|
/* FILL ME */
|
||||||
};
|
};
|
||||||
guint i;
|
guint i;
|
||||||
|
|
Loading…
Reference in a new issue