qtdemux: Add support for SpeedHQ video codec

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3982>
This commit is contained in:
Sebastian Dröge 2023-02-16 16:16:47 +02:00 committed by GStreamer Marge Bot
parent a2e83a019a
commit d5a0cfc563
2 changed files with 29 additions and 0 deletions

View file

@ -304,6 +304,16 @@ G_BEGIN_DECLS
#define FOURCC_av1m GST_MAKE_FOURCC('a','v','1','m')
#define FOURCC_av1s GST_MAKE_FOURCC('a','v','1','s')
#define FOURCC_av1M GST_MAKE_FOURCC('a','v','1','M')
#define FOURCC_SHQ0 GST_MAKE_FOURCC('S','H','Q','0')
#define FOURCC_SHQ1 GST_MAKE_FOURCC('S','H','Q','1')
#define FOURCC_SHQ2 GST_MAKE_FOURCC('S','H','Q','2')
#define FOURCC_SHQ3 GST_MAKE_FOURCC('S','H','Q','3')
#define FOURCC_SHQ4 GST_MAKE_FOURCC('S','H','Q','4')
#define FOURCC_SHQ5 GST_MAKE_FOURCC('S','H','Q','5')
#define FOURCC_SHQ6 GST_MAKE_FOURCC('S','H','Q','6')
#define FOURCC_SHQ7 GST_MAKE_FOURCC('S','H','Q','7')
#define FOURCC_SHQ8 GST_MAKE_FOURCC('S','H','Q','8')
#define FOURCC_SHQ9 GST_MAKE_FOURCC('S','H','Q','9')
#define FOURCC_cfhd GST_MAKE_FOURCC('C','F','H','D')
#define FOURCC_ap4x GST_MAKE_FOURCC('a','p','4','x')

View file

@ -15662,6 +15662,25 @@ qtdemux_video_caps (GstQTDemux * qtdemux, QtDemuxStream * stream,
"stream-format", G_TYPE_STRING, "obu-stream",
"alignment", G_TYPE_STRING, "tu", NULL);
break;
case FOURCC_SHQ0:
case FOURCC_SHQ1:
case FOURCC_SHQ2:
case FOURCC_SHQ3:
case FOURCC_SHQ4:
case FOURCC_SHQ5:
case FOURCC_SHQ6:
case FOURCC_SHQ7:
case FOURCC_SHQ8:
case FOURCC_SHQ9:{
gchar *format =
g_strdup_printf ("%" GST_FOURCC_FORMAT, GST_FOURCC_ARGS (fourcc));
_codec ("SpeedHQ");
caps =
gst_caps_new_simple ("video/x-speedhq", "variant", G_TYPE_STRING,
format, NULL);
g_free (format);
break;
}
case GST_MAKE_FOURCC ('k', 'p', 'c', 'd'):
default:
{