diff options
author | Jan Schmidt <thaytan@mad.scientist.com> | 2004-01-06 14:34:52 +0000 |
---|---|---|
committer | Jan Schmidt <thaytan@mad.scientist.com> | 2004-01-06 14:34:52 +0000 |
commit | 0051f0e18ecb90e900d6c4f92a01b473408f493e (patch) | |
tree | e4bd31852443eb8e9de3de655fe2fe812a9c635e /ext/xvid/gstxvid.c | |
parent | c0c379cccbf20df183710f757a7ac0774d9da0c6 (diff) | |
download | gstreamer-plugins-bad-0051f0e18ecb90e900d6c4f92a01b473408f493e.tar.gz |
ifdef out ARGB type when it isn't available in xvidcore 1.0.0beta2
Original commit message from CVS:
ifdef out ARGB type when it isn't available in xvidcore 1.0.0beta2
Diffstat (limited to 'ext/xvid/gstxvid.c')
-rw-r--r-- | ext/xvid/gstxvid.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/xvid/gstxvid.c b/ext/xvid/gstxvid.c index 64ab2f564..49d2ecb3b 100644 --- a/ext/xvid/gstxvid.c +++ b/ext/xvid/gstxvid.c @@ -147,9 +147,11 @@ gst_xvid_structure_to_csp (GstStructure *structure, case 0xff000000: xvid_cs = XVID_CSP_RGBA; break; +#ifdef XVID_CSP_ARGB case 0x00ff0000: xvid_cs = XVID_CSP_ARGB; break; +#endif case 0x0000ff00: xvid_cs = XVID_CSP_BGRA; break; @@ -185,7 +187,9 @@ gst_xvid_csp_to_caps (gint csp, gint w, gint h, gdouble fps) case XVID_CSP_BGR: case XVID_CSP_ABGR: case XVID_CSP_BGRA: +#ifdef XVID_CSP_ARGB case XVID_CSP_ARGB: +#endif case XVID_CSP_RGBA: { gint r_mask = 0, b_mask = 0, g_mask = 0, endianness = 0, bpp = 0, depth = 0; @@ -211,10 +215,12 @@ gst_xvid_csp_to_caps (gint csp, gint w, gint h, gdouble fps) r_mask = 0x0000ff00; g_mask = 0x00ff0000; b_mask = 0xff000000; endianness = G_BIG_ENDIAN; depth = 24; bpp = 32; break; +#ifdef XVID_CSP_ARGB case XVID_CSP_ARGB: r_mask = 0x00ff0000; g_mask = 0x0000ff00; b_mask = 0x000000ff; endianness = G_BIG_ENDIAN; depth = 24; bpp = 32; break; +#endif case XVID_CSP_RGBA: r_mask = 0xff000000; g_mask = 0x00ff0000; b_mask = 0x0000ff00; endianness = G_BIG_ENDIAN; depth = 24; bpp = 32; |