[Mplayer-cvslog] CVS: main/libvo vo_dxr3.c,1.83,1.84
David Holm
mswitch at mplayer.dev.hu
Wed Apr 10 18:03:16 CEST 2002
Update of /cvsroot/mplayer/main/libvo
In directory mplayer:/var/tmp.root/cvs-serv3184/libvo
Modified Files:
vo_dxr3.c
Log Message:
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)
Index: vo_dxr3.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_dxr3.c,v
retrieving revision 1.83
retrieving revision 1.84
diff -u -r1.83 -r1.84
--- vo_dxr3.c 10 Apr 2002 06:55:03 -0000 1.83
+++ vo_dxr3.c 10 Apr 2002 16:03:08 -0000 1.84
@@ -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();
More information about the MPlayer-cvslog
mailing list