mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 14:56:36 +00:00
ext/ffmpeg/gstffmpegcodecmap.c: Add JPEG-formatted YUV enums.
Original commit message from CVS: Reviewed by: Ronald S. Bultje <rbultje@ronald.bitfreak.net> * ext/ffmpeg/gstffmpegcodecmap.c: (gst_ffmpeg_pixfmt_to_caps): Add JPEG-formatted YUV enums.
This commit is contained in:
parent
710c39687f
commit
1cf3d1b494
2 changed files with 10 additions and 0 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
2005-05-02 Luca Ognibene <luogni@tin.it>
|
||||||
|
|
||||||
|
Reviewed by: Ronald S. Bultje <rbultje@ronald.bitfreak.net>
|
||||||
|
|
||||||
|
* ext/ffmpeg/gstffmpegcodecmap.c: (gst_ffmpeg_pixfmt_to_caps):
|
||||||
|
Add JPEG-formatted YUV enums.
|
||||||
|
|
||||||
2005-05-01 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
|
2005-05-01 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
|
||||||
|
|
||||||
* ext/ffmpeg/gstffmpegmux.c: (gst_ffmpegmux_class_init),
|
* ext/ffmpeg/gstffmpegmux.c: (gst_ffmpegmux_class_init),
|
||||||
|
|
|
@ -810,6 +810,7 @@ gst_ffmpeg_pixfmt_to_caps (enum PixelFormat pix_fmt, AVCodecContext * context)
|
||||||
guint32 fmt = 0;
|
guint32 fmt = 0;
|
||||||
|
|
||||||
switch (pix_fmt) {
|
switch (pix_fmt) {
|
||||||
|
case PIX_FMT_YUVJ420P:
|
||||||
case PIX_FMT_YUV420P:
|
case PIX_FMT_YUV420P:
|
||||||
fmt = GST_MAKE_FOURCC ('I', '4', '2', '0');
|
fmt = GST_MAKE_FOURCC ('I', '4', '2', '0');
|
||||||
break;
|
break;
|
||||||
|
@ -830,9 +831,11 @@ gst_ffmpeg_pixfmt_to_caps (enum PixelFormat pix_fmt, AVCodecContext * context)
|
||||||
g_mask = 0x00ff00;
|
g_mask = 0x00ff00;
|
||||||
b_mask = 0xff0000;
|
b_mask = 0xff0000;
|
||||||
break;
|
break;
|
||||||
|
case PIX_FMT_YUVJ422P:
|
||||||
case PIX_FMT_YUV422P:
|
case PIX_FMT_YUV422P:
|
||||||
fmt = GST_MAKE_FOURCC ('Y', '4', '2', 'B');
|
fmt = GST_MAKE_FOURCC ('Y', '4', '2', 'B');
|
||||||
break;
|
break;
|
||||||
|
case PIX_FMT_YUVJ444P:
|
||||||
case PIX_FMT_YUV444P:
|
case PIX_FMT_YUV444P:
|
||||||
/* .. */
|
/* .. */
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue