comparison libvo/vo_dxr3.c @ 5308:69e55c9c1a1a

Default to avcodec if installed, otherwise use fame. Apparently fame output is very very blocky
author mswitch
date Sun, 24 Mar 2002 15:18:38 +0000
parents 88df6d5f6ce7
children 2ce4e031f47a
comparison
equal deleted inserted replaced
5307:fb58b4a8fb18 5308:69e55c9c1a1a
78 #include "aspect.h" 78 #include "aspect.h"
79 #include "../postproc/rgb2rgb.h" 79 #include "../postproc/rgb2rgb.h"
80 #include "../postproc/swscale.h" 80 #include "../postproc/swscale.h"
81 #include "../cpudetect.h" 81 #include "../cpudetect.h"
82 82
83 /*#ifndef USE_LIBAVCODEC*/ 83 #ifndef USE_LIBAVCODEC
84 # define USE_LIBFAME 84 # define USE_LIBFAME
85 /*#else 85 #else
86 # undef USE_LIBFAME 86 # undef USE_LIBFAME
87 #endif*/ 87 #endif
88 #ifdef USE_LIBFAME 88 #ifdef USE_LIBFAME
89 #include "../libfame/fame.h" 89 #include "../libfame/fame.h"
90 static unsigned char *outbuf = NULL; 90 static unsigned char *outbuf = NULL;
91 static fame_parameters_t fame_params; 91 static fame_parameters_t fame_params;
92 static fame_yuv_t fame_yuv; 92 static fame_yuv_t fame_yuv;
286 if (!fame_ctx) { 286 if (!fame_ctx) {
287 printf("VO: [dxr3] Cannot open libFAME!\n"); 287 printf("VO: [dxr3] Cannot open libFAME!\n");
288 return -1; 288 return -1;
289 } 289 }
290 290
291 fame_obj = fame_get_object(fame_ctx, "motion/none"); 291 fame_obj = fame_get_object(fame_ctx, "motion/pmvfast");
292 fame_register(fame_ctx, "motion", fame_obj); 292 fame_register(fame_ctx, "motion", fame_obj);
293 293
294 fame_params.width = s_width; 294 fame_params.width = s_width;
295 fame_params.height = s_height; 295 fame_params.height = s_height;
296 fame_params.coding = "IPPPPPPP"; 296 fame_params.coding = "IPPPPPPP";