summaryrefslogtreecommitdiffstats
path: root/libvo/vo_dxr3.c
diff options
context:
space:
mode:
authormswitch <mswitch@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-03-20 17:26:52 +0000
committermswitch <mswitch@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-03-20 17:26:52 +0000
commitb0547e7f67ac902b10fc3faa90bd9d25cd8dc068 (patch)
treeec304ece18dbc0e9fb380d537e406a0aec8c9a5b /libvo/vo_dxr3.c
parent6403904ae9ffc67aa04da131c514c84e67a1f5df (diff)
downloadmpv-b0547e7f67ac902b10fc3faa90bd9d25cd8dc068.tar.bz2
mpv-b0547e7f67ac902b10fc3faa90bd9d25cd8dc068.tar.xz
Fame support enabled, awaiting bugreports =D
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5226 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/vo_dxr3.c')
-rw-r--r--libvo/vo_dxr3.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/libvo/vo_dxr3.c b/libvo/vo_dxr3.c
index 8dd07b367e..b9c2de0520 100644
--- a/libvo/vo_dxr3.c
+++ b/libvo/vo_dxr3.c
@@ -75,17 +75,18 @@
#include "../postproc/rgb2rgb.h"
#include "../postproc/swscale.h"
-#ifndef USE_LIBAVCODEC
+/*#ifndef USE_LIBAVCODEC*/
# define USE_LIBFAME
-#else
+/*#else
# undef USE_LIBFAME
-#endif
+#endif*/
#ifdef USE_LIBFAME
#include "../libfame/fame.h"
static unsigned char *outbuf = NULL;
static fame_parameters_t fame_params;
static fame_yuv_t fame_yuv;
-static fame_context_t *fame_ctx=NULL;
+static fame_context_t *fame_ctx = NULL;
+static fame_object_t *fame_obj;
#elif USE_LIBAVCODEC
#ifdef USE_LIBAVCODEC_SO
#include <libffmpeg/avcodec.h>
@@ -188,7 +189,7 @@ uint32_t control(uint32_t request, void *data, ...)
return VO_NOTIMPL;
}
-static uint32_t config(uint32_t width, uint32_t height, uint32_t d_width, uint32_t d_height, uint32_t fullscreen, char *title, uint32_t format,const vo_tune_info_t *info)
+static uint32_t config(uint32_t width, uint32_t height, uint32_t d_width, uint32_t d_height, uint32_t fullscreen, char *title, uint32_t format, const vo_tune_info_t *info)
{
int tmp1, tmp2, size;
em8300_register_t reg;
@@ -278,15 +279,18 @@ static uint32_t config(uint32_t width, uint32_t height, uint32_t d_width, uint32
return -1;
}
+ fame_obj = fame_get_object(fame_ctx, "motion/none");
+ fame_register(fame_ctx, "motion", fame_obj);
+
fame_params.width = s_width;
fame_params.height = s_height;
- fame_params.coding = "I";
+ fame_params.coding = "IPPPPPPP";
fame_params.quality = 90;
- fame_params.bitrate = 6e6;
+ fame_params.bitrate = 0;
fame_params.slices_per_frame = 1;
fame_params.frames_per_sequence = (int) (vo_fps + 0.5);
fame_params.shape_quality = 100;
- fame_params.search_range = 8;
+ fame_params.search_range = (int) (vo_fps + 0.5);
fame_params.verbose = 0;
fame_params.profile = NULL;
@@ -503,17 +507,13 @@ static uint32_t preinit(const char *arg)
char devname[80];
int fdflags = O_WRONLY;
-#ifdef USE_LIBFAME
- printf("VO: [dxr3] Prebuffering is temporarily disabled\n");
- noprebuf = 1;
-#else
/* Open the control interface */
if (arg && !strcmp("noprebuf", arg)) {
printf("VO: [dxr3] Disabling prebuffering.\n");
noprebuf = 1;
fdflags |= O_NONBLOCK;
}
-#endif
+
if (arg && !noprebuf) {
printf("VO: [dxr3] Forcing use of device %s\n", arg);
sprintf(devname, "/dev/em8300-%s", arg);