Mercurial > mplayer.hg
changeset 5547:92329b5f6ff3
Some minor changes to the avcodec code.
(Michael, perhaps you could explain to me why avc_ctx->quality = 1 produces unwatachable output, and when using gop_size = 0 or 1 (intra) video will disappear after seeking)
author | mswitch |
---|---|
date | Wed, 10 Apr 2002 16:03:08 +0000 |
parents | 8ec12d5ba6c6 |
children | fa4852cae8b1 |
files | libvo/vo_dxr3.c |
diffstat | 1 files changed, 4 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/libvo/vo_dxr3.c Wed Apr 10 12:43:26 2002 +0000 +++ b/libvo/vo_dxr3.c Wed Apr 10 16:03:08 2002 +0000 @@ -118,6 +118,7 @@ static AVPicture avc_picture; int avc_outbuf_size = 100000; extern int avcodec_inited; +extern int motion_estimation_method; #endif char *picture_data[] = { NULL, NULL, NULL }; @@ -401,16 +402,13 @@ avc_context->width = s_width; avc_context->height = s_height; ioctl(fd_control, EM8300_IOCTL_GET_VIDEOMODE, &ioval); - if (ioval == EM8300_VIDEOMODE_NTSC) { - avc_context->gop_size = 18; - } else { - avc_context->gop_size = 15; - } + avc_context->gop_size = 7; avc_context->frame_rate = (int) (vo_fps * FRAME_RATE_BASE); - avc_context->bit_rate = 6e6; + avc_context->bit_rate = 0; avc_context->flags = CODEC_FLAG_QSCALE; avc_context->quality = 2; avc_context->pix_fmt = PIX_FMT_YUV420P; + motion_estimation_method = ME_EPZS; if (avcodec_open(avc_context, avc_codec) < 0) { printf("VO: [dxr3] Unable to open codec\n"); uninit();