mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 19:20:35 +00:00
Use new ffmpeg revision
Original commit message from CVS: Use new ffmpeg revision
This commit is contained in:
parent
51124a1514
commit
56ab463205
5 changed files with 12 additions and 37 deletions
2
common
2
common
|
@ -1 +1 @@
|
|||
Subproject commit ed429334bba35b10172ba97d9b3795b75a65b388
|
||||
Subproject commit 9a3a505fcc52865de0bedbb3ee1ce0a6dcc9a025
|
|
@ -159,12 +159,7 @@ gst_ffmpeg_codecid_to_caps (enum CodecID codec_id,
|
|||
break;
|
||||
case PIX_FMT_RGBA32:
|
||||
bpp = depth = 32;
|
||||
endianness = G_BIG_ENDIAN;
|
||||
r_mask = 0x00ff0000; g_mask = 0x0000ff00; b_mask = 0x000000ff;
|
||||
break;
|
||||
case PIX_FMT_BGRA32:
|
||||
bpp = depth = 32;
|
||||
endianness = G_BIG_ENDIAN;
|
||||
endianness = G_BYTE_ORDER;
|
||||
r_mask = 0x00ff0000; g_mask = 0x0000ff00; b_mask = 0x000000ff;
|
||||
break;
|
||||
case PIX_FMT_YUV410P:
|
||||
|
@ -175,22 +170,12 @@ gst_ffmpeg_codecid_to_caps (enum CodecID codec_id,
|
|||
break;
|
||||
case PIX_FMT_RGB565:
|
||||
bpp = depth = 16;
|
||||
endianness = G_BIG_ENDIAN;
|
||||
endianness = G_BYTE_ORDER;
|
||||
r_mask = 0xf800; g_mask = 0x07e0; b_mask = 0x001f;
|
||||
break;
|
||||
case PIX_FMT_RGB555:
|
||||
bpp = 16; depth = 15;
|
||||
endianness = G_BIG_ENDIAN;
|
||||
r_mask = 0x7c00; g_mask = 0x03e0; b_mask = 0x001f;
|
||||
break;
|
||||
case PIX_FMT_BGR565:
|
||||
bpp = depth = 16;
|
||||
endianness = G_LITTLE_ENDIAN;
|
||||
r_mask = 0xf800; g_mask = 0x07e0; b_mask = 0x001f;
|
||||
break;
|
||||
case PIX_FMT_BGR555:
|
||||
bpp = 16; depth = 16;
|
||||
endianness = G_LITTLE_ENDIAN;
|
||||
endianness = G_BYTE_ORDER;
|
||||
r_mask = 0x7c00; g_mask = 0x03e0; b_mask = 0x001f;
|
||||
break;
|
||||
default:
|
||||
|
@ -562,18 +547,10 @@ gst_ffmpeg_caps_to_codecid (GstCaps *caps,
|
|||
gst_caps_get_int(caps, "depth", &depth);
|
||||
switch (depth) {
|
||||
case 15:
|
||||
if (endianness == G_BIG_ENDIAN) {
|
||||
context->pix_fmt = PIX_FMT_RGB555;
|
||||
} else {
|
||||
context->pix_fmt = PIX_FMT_BGR555;
|
||||
}
|
||||
context->pix_fmt = PIX_FMT_RGB555;
|
||||
break;
|
||||
case 16:
|
||||
if (endianness == G_BIG_ENDIAN) {
|
||||
context->pix_fmt = PIX_FMT_RGB565;
|
||||
} else {
|
||||
context->pix_fmt = PIX_FMT_BGR565;
|
||||
}
|
||||
context->pix_fmt = PIX_FMT_RGB565;
|
||||
break;
|
||||
case 24:
|
||||
if (endianness == G_BIG_ENDIAN) {
|
||||
|
@ -583,11 +560,7 @@ gst_ffmpeg_caps_to_codecid (GstCaps *caps,
|
|||
}
|
||||
break;
|
||||
case 32:
|
||||
if (endianness == G_BIG_ENDIAN) {
|
||||
context->pix_fmt = PIX_FMT_RGBA32;
|
||||
} else {
|
||||
context->pix_fmt = PIX_FMT_BGRA32;
|
||||
}
|
||||
context->pix_fmt = PIX_FMT_RGBA32;
|
||||
break;
|
||||
}
|
||||
break;
|
||||
|
|
|
@ -87,7 +87,7 @@ gst_ffmpegcodec_codec_context_to_caps (AVCodecContext *context, int codec_id)
|
|||
return GST_CAPS_NEW ("ffmpeg_mpeg4",
|
||||
"video/avi",
|
||||
"format", GST_PROPS_STRING ("strf_vids"),
|
||||
"compression", GST_PROPS_FOURCC (context->fourcc),
|
||||
"compression", GST_PROPS_FOURCC (context->codec_tag),
|
||||
"width", GST_PROPS_INT (context->width),
|
||||
"height", GST_PROPS_INT (context->height)
|
||||
);
|
||||
|
|
|
@ -297,7 +297,8 @@ gst_ffmpegenc_init(GstFFMpegEnc *ffmpegenc)
|
|||
ffmpegenc->context->qmax = 15;
|
||||
ffmpegenc->context->max_qdiff = 3;
|
||||
ffmpegenc->context->gop_size = 15;
|
||||
ffmpegenc->context->frame_rate = 25 * FRAME_RATE_BASE;
|
||||
ffmpegenc->context->frame_rate = 25 * DEFAULT_FRAME_RATE_BASE;
|
||||
ffmpegenc->context->frame_rate_base = DEFAULT_FRAME_RATE_BASE;
|
||||
ffmpegenc->out_width = -1;
|
||||
ffmpegenc->out_height = -1;
|
||||
}
|
||||
|
|
|
@ -172,7 +172,8 @@ gst_ffmpegmux_sinkconnect (GstPad *pad, GstCaps *caps)
|
|||
gst_caps_get_int (caps, "height", &ffmpegmux->context->height);
|
||||
|
||||
ffmpegmux->context->pix_fmt = PIX_FMT_YUV420P;
|
||||
ffmpegmux->context->frame_rate = 23 * FRAME_RATE_BASE;
|
||||
ffmpegmux->context->frame_rate = 23 * DEFAULT_FRAME_RATE_BASE;
|
||||
ffmpegmux->context->frame_rate_base = DEFAULT_FRAME_RATE_BASE;
|
||||
ffmpegmux->context->bit_rate = 0;
|
||||
|
||||
/* FIXME bug in ffmpeg */
|
||||
|
|
Loading…
Reference in a new issue