summaryrefslogtreecommitdiffstats
path: root/libvo/vo_dxr3.c
diff options
context:
space:
mode:
authormswitch <mswitch@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-04-10 16:03:08 +0000
committermswitch <mswitch@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-04-10 16:03:08 +0000
commit81a36d49500e9914698ff1725e5b39ccbe0a5419 (patch)
tree7d58051fc4d2b0c4fb9d14f97644cf6c6b49ae93 /libvo/vo_dxr3.c
parent3b1c7f18da9cdd10f61b84cdf4058f765afd26dc (diff)
downloadmpv-81a36d49500e9914698ff1725e5b39ccbe0a5419.tar.bz2
mpv-81a36d49500e9914698ff1725e5b39ccbe0a5419.tar.xz
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) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5548 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/vo_dxr3.c')
-rw-r--r--libvo/vo_dxr3.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/libvo/vo_dxr3.c b/libvo/vo_dxr3.c
index fbcd8c389b..9a8d5057c3 100644
--- a/libvo/vo_dxr3.c
+++ b/libvo/vo_dxr3.c
@@ -118,6 +118,7 @@ static AVCodecContext *avc_context = NULL;
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 @@ static uint32_t config(uint32_t width, uint32_t height, uint32_t d_width, uint32
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();