From 07c11742a94deb8c2c2493afe3b81870c10f1e93 Mon Sep 17 00:00:00 2001 From: reimar Date: Tue, 6 Oct 2009 06:43:00 +0000 Subject: Remove many uses of tmp_run. Checking that installed header and library match is not really our task, also if desired it would be more correct to do it at runtime (e.g. because of distributed binaries, or system updates gone wrong, ...). tmp_run also slows down configure on systems with slow fork like MinGW. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29753 b3059339-0415-0410-9bf9-f77b7e298cf2 --- configure | 46 ++++++++++++---------------------------------- 1 file changed, 12 insertions(+), 34 deletions(-) diff --git a/configure b/configure index 5aa8a31abe..fac492d6a6 100755 --- a/configure +++ b/configure @@ -3942,7 +3942,7 @@ int main(void) { return 0; } EOF - cc_check && tmp_run && _apple_ir=yes + cc_check && _apple_ir=yes fi if test "$_apple_ir" = yes ; then def_apple_ir='#define CONFIG_APPLE_IR 1' @@ -4948,13 +4948,7 @@ int main(void) { return strcmp(PNG_LIBPNG_VER_STRING, png_libpng_ver); } EOF - if cc_check -lpng -lz $_ld_lm ; then - if tmp_run ; then - _png=yes - else - _res_comment="mismatch of library and header versions" - fi - fi + cc_check -lpng -lz $_ld_lm && _png=yes fi fi echores "$_png" @@ -5000,11 +4994,7 @@ cat > $TMPC << EOF #include int main(void) { return 0; } EOF - if cc_check -ljpeg $_ld_lm ; then - if tmp_run ; then - _jpeg=yes - fi - fi + cc_check -ljpeg $_ld_lm && _jpeg=yes fi echores "$_jpeg" @@ -5047,7 +5037,7 @@ cat > $TMPC << EOF int main(void) { return 0; } EOF for _ld_gif in "-lungif" "-lgif" ; do - cc_check $_ld_gif && tmp_run && _gif=yes && break + cc_check $_ld_gif && _gif=yes && break done fi @@ -5084,7 +5074,7 @@ int main(void) { return 0; } EOF - if cc_check "$_ld_gif" && tmp_run ; then + if cc_check "$_ld_gif" ; then def_gif_4='#define CONFIG_GIF_4 1' _res_comment="" fi @@ -5109,7 +5099,7 @@ int main(void) { return 0; } EOF - if cc_check "$_ld_gif" && tmp_run ; then + if cc_check "$_ld_gif" ; then def_gif_tvt_hack='#undef CONFIG_GIF_TVT_HACK' echores "disabled" else @@ -5458,7 +5448,7 @@ cat > $TMPC << EOF #include int main(void) { return 0; } EOF -cc_check $(artsc-config --libs) $(artsc-config --cflags) && tmp_run && _arts=yes +cc_check $(artsc-config --libs) $(artsc-config --cflags) && _arts=yes fi fi @@ -5538,7 +5528,7 @@ cat > $TMPC << EOF #include int main(void) { return 0; } EOF -cc_check $($_pkg_config --libs --cflags libpulse) && tmp_run && _pulse=yes +cc_check $($_pkg_config --libs --cflags libpulse) && _pulse=yes fi fi @@ -6073,23 +6063,11 @@ int main(void) { FT_Library library; FT_Int major=-1,minor=-1,patch=-1; int err=FT_Init_FreeType(&library); - if (err) { - printf("Couldn't initialize freetype2 lib, err code: %d\n",err); - exit(err); - } - FT_Library_Version(library,&major,&minor,&patch); // in v2.1.0+ only :((( - printf("freetype2 header version: %d.%d.%d library version: %d.%d.%d\n", - FREETYPE_MAJOR,FREETYPE_MINOR,FREETYPE_PATCH, - (int)major,(int)minor,(int)patch ); - if (major!=FREETYPE_MAJOR || minor!=FREETYPE_MINOR) { - printf("Library and header version mismatch! Fix it in your distribution!\n"); - exit(1); - } return 0; } EOF _freetype=no - cc_check $($_freetypeconfig --cflags) $($_freetypeconfig --libs) && tmp_run && _freetype=yes + cc_check $($_freetypeconfig --cflags) $($_freetypeconfig --libs) && _freetype=yes else _freetype=no fi @@ -6159,7 +6137,7 @@ if test "$_ass" = auto ; then int main(void) { return 0; } EOF _ass=no - cc_check $($_freetypeconfig --cflags) $($_freetypeconfig --libs) && tmp_run && _ass=yes + cc_check $($_freetypeconfig --cflags) $($_freetypeconfig --libs) && _ass=yes if test "$_ass" = no ; then _res_comment="FreeType >= 2.1.8 needed" fi @@ -6189,7 +6167,7 @@ int main(void) { } EOF _fribidi=no - cc_check $($_fribidiconfig --cflags) $($_fribidiconfig --libs) && tmp_run && _fribidi=yes + cc_check $($_fribidiconfig --cflags) $($_fribidiconfig --libs) && _fribidi=yes else _fribidi=no fi @@ -7408,7 +7386,7 @@ int main(void) { lame_version_t lv; (void) lame_init(); get_lame_version_numerical(&lv); printf("%d%d\n",lv.major,lv.minor); return 0; } EOF - cc_check -lmp3lame $_ld_lm && tmp_run && _mp3lame=yes + cc_check -lmp3lame $_ld_lm && _mp3lame=yes fi if test "$_mp3lame" = yes ; then def_mp3lame="#define CONFIG_MP3LAME" -- cgit v1.2.3 From 28f36c36568004ae696f8cb1b4887d7fca64274b Mon Sep 17 00:00:00 2001 From: adrian Date: Tue, 6 Oct 2009 08:21:52 +0000 Subject: Add keycode definitions for older versions of OSX. Fixes compilation on 10.4. Patch by Aaro Koskinen, aaro D koskinen A iki D fi git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29754 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/osx_common.c | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/libvo/osx_common.c b/libvo/osx_common.c index 3ae8699103..b953860e36 100644 --- a/libvo/osx_common.c +++ b/libvo/osx_common.c @@ -24,6 +24,57 @@ #include "osdep/keycodes.h" #include "input/input.h" +/* + * Define keycodes only found in OSX >= 10.5 for older versions + */ +#if MAC_OS_X_VERSION_MAX_ALLOWED <= 1040 +#define kVK_ANSI_Keypad0 0x52 +#define kVK_ANSI_Keypad1 0x53 +#define kVK_ANSI_Keypad2 0x54 +#define kVK_ANSI_Keypad3 0x55 +#define kVK_ANSI_Keypad4 0x56 +#define kVK_ANSI_Keypad5 0x57 +#define kVK_ANSI_Keypad6 0x58 +#define kVK_ANSI_Keypad7 0x59 +#define kVK_ANSI_Keypad8 0x5b +#define kVK_ANSI_Keypad9 0x5c +#define kVK_ANSI_KeypadDecimal 0x41 +#define kVK_ANSI_KeypadDivide 0x4b +#define kVK_ANSI_KeypadEnter 0x4c +#define kVK_ANSI_KeypadMinus 0x4e +#define kVK_ANSI_KeypadMultiply 0x43 +#define kVK_ANSI_KeypadPlus 0x45 +#define kVK_Control 0x3b +#define kVK_Delete 0x33 +#define kVK_DownArrow 0x7d +#define kVK_End 0x77 +#define kVK_Escape 0x35 +#define kVK_F1 0x7a +#define kVK_F10 0x6d +#define kVK_F11 0x67 +#define kVK_F12 0x6f +#define kVK_F2 0x78 +#define kVK_F3 0x63 +#define kVK_F4 0x76 +#define kVK_F5 0x60 +#define kVK_F6 0x61 +#define kVK_F7 0x62 +#define kVK_F8 0x64 +#define kVK_F9 0x65 +#define kVK_ForwardDelete 0x75 +#define kVK_Help 0x72 +#define kVK_Home 0x73 +#define kVK_LeftArrow 0x7b +#define kVK_Option 0x3a +#define kVK_PageDown 0x79 +#define kVK_PageUp 0x74 +#define kVK_Return 0x24 +#define kVK_RightArrow 0x7c +#define kVK_Shift 0x38 +#define kVK_Tab 0x30 +#define kVK_UpArrow 0x7e +#endif /* MAC_OS_X_VERSION_MAX_ALLOWED <= 1040 */ + static const struct keymap keymap[] = { // special keys {0x34, KEY_ENTER}, // Enter key on some iBooks? -- cgit v1.2.3 From 95e061d93b2e237f3bd460f9811b05320eb28daa Mon Sep 17 00:00:00 2001 From: diego Date: Tue, 6 Oct 2009 08:45:20 +0000 Subject: K&R coding style and whitespace cosmetics git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29755 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/vo_vdpau.c | 332 ++++++++++++++++++++++++++++--------------------------- 1 file changed, 170 insertions(+), 162 deletions(-) diff --git a/libvo/vo_vdpau.c b/libvo/vo_vdpau.c index fffb1b010e..3a6df1195a 100644 --- a/libvo/vo_vdpau.c +++ b/libvo/vo_vdpau.c @@ -379,7 +379,8 @@ static int win_x11_init_vdpau_procs(void) for (dsc = vdp_func; dsc->pointer; dsc++) { vdp_st = vdp_get_proc_address(vdp_device, dsc->id, dsc->pointer); if (vdp_st != VDP_STATUS_OK) { - mp_msg(MSGT_VO, MSGL_ERR, "[vdpau] Error when calling vdp_get_proc_address(function id %d): %s\n", dsc->id, vdp_get_error_string ? vdp_get_error_string(vdp_st) : "?"); + mp_msg(MSGT_VO, MSGL_ERR, "[vdpau] Error when calling vdp_get_proc_address(function id %d): %s\n", + dsc->id, vdp_get_error_string ? vdp_get_error_string(vdp_st) : "?"); return -1; } } @@ -402,7 +403,8 @@ static int win_x11_init_vdpau_flip_queue(void) return 0; } -static int create_vdp_mixer(VdpChromaType vdp_chroma_type) { +static int create_vdp_mixer(VdpChromaType vdp_chroma_type) +{ #define VDP_NUM_MIXER_PARAMETER 3 #define MAX_NUM_FEATURES 5 int i; @@ -443,7 +445,8 @@ static int create_vdp_mixer(VdpChromaType vdp_chroma_type) { &video_mixer); CHECK_ST_ERROR("Error when calling vdp_video_mixer_create") - for (i = 0; i < feature_count; i++) feature_enables[i] = VDP_TRUE; + for (i = 0; i < feature_count; i++) + feature_enables[i] = VDP_TRUE; if (deint < 3) feature_enables[0] = VDP_FALSE; if (feature_count) @@ -459,7 +462,8 @@ static int create_vdp_mixer(VdpChromaType vdp_chroma_type) { } // Free everything specific to a certain video file -static void free_video_specific(void) { +static void free_video_specific(void) +{ int i; VdpStatus vdp_st; @@ -499,22 +503,22 @@ static int create_vdp_decoder(int max_refs) if (decoder != VDP_INVALID_HANDLE) vdp_decoder_destroy(decoder); switch (image_format) { - case IMGFMT_VDPAU_MPEG1: - vdp_decoder_profile = VDP_DECODER_PROFILE_MPEG1; - break; - case IMGFMT_VDPAU_MPEG2: - vdp_decoder_profile = VDP_DECODER_PROFILE_MPEG2_MAIN; - break; - case IMGFMT_VDPAU_H264: - vdp_decoder_profile = VDP_DECODER_PROFILE_H264_HIGH; - mp_msg(MSGT_VO, MSGL_V, "[vdpau] Creating H264 hardware decoder for %d reference frames.\n", max_refs); - break; - case IMGFMT_VDPAU_WMV3: - vdp_decoder_profile = VDP_DECODER_PROFILE_VC1_MAIN; - break; - case IMGFMT_VDPAU_VC1: - vdp_decoder_profile = VDP_DECODER_PROFILE_VC1_ADVANCED; - break; + case IMGFMT_VDPAU_MPEG1: + vdp_decoder_profile = VDP_DECODER_PROFILE_MPEG1; + break; + case IMGFMT_VDPAU_MPEG2: + vdp_decoder_profile = VDP_DECODER_PROFILE_MPEG2_MAIN; + break; + case IMGFMT_VDPAU_H264: + vdp_decoder_profile = VDP_DECODER_PROFILE_H264_HIGH; + mp_msg(MSGT_VO, MSGL_V, "[vdpau] Creating H264 hardware decoder for %d reference frames.\n", max_refs); + break; + case IMGFMT_VDPAU_WMV3: + vdp_decoder_profile = VDP_DECODER_PROFILE_VC1_MAIN; + break; + case IMGFMT_VDPAU_VC1: + vdp_decoder_profile = VDP_DECODER_PROFILE_VC1_ADVANCED; + break; } vdp_st = vdp_decoder_create(vdp_device, vdp_decoder_profile, vid_width, vid_height, max_refs, &decoder); @@ -553,7 +557,7 @@ static int config(uint32_t width, uint32_t height, uint32_t d_width, if (IMGFMT_IS_VDPAU(image_format) && !create_vdp_decoder(2)) return -1; - int_pause = 0; + int_pause = 0; visible_buf = 0; #ifdef CONFIG_GUI @@ -604,26 +608,26 @@ static int config(uint32_t width, uint32_t height, uint32_t d_width, vdp_chroma_type = VDP_CHROMA_TYPE_420; switch (image_format) { - case IMGFMT_YV12: - case IMGFMT_I420: - case IMGFMT_IYUV: - vdp_pixel_format = VDP_YCBCR_FORMAT_YV12; - break; - case IMGFMT_NV12: - vdp_pixel_format = VDP_YCBCR_FORMAT_NV12; - break; - case IMGFMT_YUY2: - vdp_pixel_format = VDP_YCBCR_FORMAT_YUYV; - vdp_chroma_type = VDP_CHROMA_TYPE_422; - break; - case IMGFMT_UYVY: - vdp_pixel_format = VDP_YCBCR_FORMAT_UYVY; - vdp_chroma_type = VDP_CHROMA_TYPE_422; + case IMGFMT_YV12: + case IMGFMT_I420: + case IMGFMT_IYUV: + vdp_pixel_format = VDP_YCBCR_FORMAT_YV12; + break; + case IMGFMT_NV12: + vdp_pixel_format = VDP_YCBCR_FORMAT_NV12; + break; + case IMGFMT_YUY2: + vdp_pixel_format = VDP_YCBCR_FORMAT_YUYV; + vdp_chroma_type = VDP_CHROMA_TYPE_422; + break; + case IMGFMT_UYVY: + vdp_pixel_format = VDP_YCBCR_FORMAT_UYVY; + vdp_chroma_type = VDP_CHROMA_TYPE_422; } if (create_vdp_mixer(vdp_chroma_type)) return -1; - surface_num = 0; + surface_num = 0; vid_surface_num = -1; resize(); @@ -674,8 +678,8 @@ static void draw_osd_I8A8(int x0,int y0, int w,int h, unsigned char *src, // index_data creation, component order - I, A, I, A, ..... for (i = 0; i < h; i++) for (j = 0; j < w; j++) { - index_data[i*2*w + j*2] = src [i*stride+j]; - index_data[i*2*w + j*2 + 1] = -srca[i*stride+j]; + index_data[i*2*w + j*2] = src [i*stride + j]; + index_data[i*2*w + j*2 + 1] = -srca[i*stride + j]; } output_indexed_rect_vid.x0 = x0; @@ -713,7 +717,8 @@ static void draw_osd_I8A8(int x0,int y0, int w,int h, unsigned char *src, CHECK_ST_WARNING("Error when calling vdp_output_surface_render_output_surface") } -static void draw_eosd(void) { +static void draw_eosd(void) +{ VdpStatus vdp_st; VdpOutputSurface output_surface = output_surfaces[surface_num]; VdpOutputSurfaceRenderBlendState blend_state; @@ -727,7 +732,7 @@ static void draw_eosd(void) { blend_state.blend_equation_color = VDP_OUTPUT_SURFACE_RENDER_BLEND_EQUATION_ADD; blend_state.blend_equation_alpha = VDP_OUTPUT_SURFACE_RENDER_BLEND_EQUATION_ADD; - for (i=0; ichanged == 1) goto eosd_skip_upload; - for (j=0; jnext) { // Try to reuse a suitable surface found = -1; - for (j=0; j= i->w && eosd_surfaces[j].h >= i->h) { found = j; @@ -770,7 +776,7 @@ static void generate_eosd(mp_eosd_images_t *imgs) { } // None found, allocate a new surface if (found < 0) { - for (j=0; jnext) { // Render dest, color, etc. - eosd_targets[eosd_render_count].color.alpha = 1.0 - ((i->color >> 0) & 0xff) / 255.0; - eosd_targets[eosd_render_count].color.blue = ((i->color >> 8) & 0xff) / 255.0; - eosd_targets[eosd_render_count].color.green = ((i->color >> 16) & 0xff) / 255.0; - eosd_targets[eosd_render_count].color.red = ((i->color >> 24) & 0xff) / 255.0; - eosd_targets[eosd_render_count].dest.x0 = i->dst_x; - eosd_targets[eosd_render_count].dest.y0 = i->dst_y; - eosd_targets[eosd_render_count].dest.x1 = i->w + i->dst_x; - eosd_targets[eosd_render_count].dest.y1 = i->h + i->dst_y; - eosd_targets[eosd_render_count].source.x0 = 0; - eosd_targets[eosd_render_count].source.y0 = 0; - eosd_targets[eosd_render_count].source.x1 = i->w; - eosd_targets[eosd_render_count].source.y1 = i->h; + eosd_targets[eosd_render_count].color.alpha = 1.0 - ((i->color >> 0) & 0xff) / 255.0; + eosd_targets[eosd_render_count].color.blue = ((i->color >> 8) & 0xff) / 255.0; + eosd_targets[eosd_render_count].color.green = ((i->color >> 16) & 0xff) / 255.0; + eosd_targets[eosd_render_count].color.red = ((i->color >> 24) & 0xff) / 255.0; + eosd_targets[eosd_render_count].dest.x0 = i->dst_x; + eosd_targets[eosd_render_count].dest.y0 = i->dst_y; + eosd_targets[eosd_render_count].dest.x1 = i->w + i->dst_x; + eosd_targets[eosd_render_count].dest.y1 = i->h + i->dst_y; + eosd_targets[eosd_render_count].source.x0 = 0; + eosd_targets[eosd_render_count].source.y0 = 0; + eosd_targets[eosd_render_count].source.x1 = i->w; + eosd_targets[eosd_render_count].source.y1 = i->h; eosd_render_count++; } } @@ -953,19 +959,19 @@ static int query_format(uint32_t format) { int default_flags = VFCAP_CSP_SUPPORTED | VFCAP_CSP_SUPPORTED_BY_HW | VFCAP_HWSCALE_UP | VFCAP_HWSCALE_DOWN | VFCAP_OSD | VFCAP_EOSD | VFCAP_EOSD_UNSCALED; switch (format) { - case IMGFMT_YV12: - case IMGFMT_I420: - case IMGFMT_IYUV: - case IMGFMT_NV12: - case IMGFMT_YUY2: - case IMGFMT_UYVY: - return default_flags | VOCAP_NOSLICES; - case IMGFMT_VDPAU_MPEG1: - case IMGFMT_VDPAU_MPEG2: - case IMGFMT_VDPAU_H264: - case IMGFMT_VDPAU_WMV3: - case IMGFMT_VDPAU_VC1: - return default_flags; + case IMGFMT_YV12: + case IMGFMT_I420: + case IMGFMT_IYUV: + case IMGFMT_NV12: + case IMGFMT_YUY2: + case IMGFMT_UYVY: + return default_flags | VOCAP_NOSLICES; + case IMGFMT_VDPAU_MPEG1: + case IMGFMT_VDPAU_MPEG2: + case IMGFMT_VDPAU_H264: + case IMGFMT_VDPAU_WMV3: + case IMGFMT_VDPAU_VC1: + return default_flags; } return 0; } @@ -1068,7 +1074,7 @@ static int preinit(const char *arg) deint_buffer_past_frames = 0; deint_mpi[0] = deint_mpi[1] = NULL; chroma_deint = 1; - pullup = 0; + pullup = 0; denoise = 0; sharpen = 0; if (subopt_parse(arg, subopts) != 0) { @@ -1123,7 +1129,8 @@ static int preinit(const char *arg) return 0; } -static int get_equalizer(char *name, int *value) { +static int get_equalizer(char *name, int *value) +{ if (!strcasecmp(name, "brightness")) *value = procamp.brightness * 100; else if (!strcasecmp(name, "contrast")) @@ -1137,7 +1144,8 @@ static int get_equalizer(char *name, int *value) { return VO_TRUE; } -static int set_equalizer(char *name, int value) { +static int set_equalizer(char *name, int value) +{ VdpStatus vdp_st; VdpCSCMatrix matrix; static const VdpVideoMixerAttribute attributes[] = {VDP_VIDEO_MIXER_ATTRIBUTE_CSC_MATRIX}; @@ -1166,98 +1174,98 @@ static int set_equalizer(char *name, int value) { static int control(uint32_t request, void *data, ...) { switch (request) { - case VOCTRL_GET_DEINTERLACE: - *(int*)data = deint; - return VO_TRUE; - case VOCTRL_SET_DEINTERLACE: - deint = *(int*)data; - if (deint) - deint = deint_type; - if (deint_type > 2) { - VdpStatus vdp_st; - VdpVideoMixerFeature features[1] = - {deint_type == 3 ? - VDP_VIDEO_MIXER_FEATURE_DEINTERLACE_TEMPORAL : - VDP_VIDEO_MIXER_FEATURE_DEINTERLACE_TEMPORAL_SPATIAL}; - VdpBool feature_enables[1] = {deint ? VDP_TRUE : VDP_FALSE}; - vdp_st = vdp_video_mixer_set_feature_enables(video_mixer, 1, - features, - feature_enables); - CHECK_ST_WARNING("Error changing deinterlacing settings") - deint_buffer_past_frames = 1; - } - return VO_TRUE; - case VOCTRL_PAUSE: - return (int_pause = 1); - case VOCTRL_RESUME: - return (int_pause = 0); - case VOCTRL_QUERY_FORMAT: - return query_format(*(uint32_t *)data); - case VOCTRL_GET_IMAGE: - return get_image(data); - case VOCTRL_DRAW_IMAGE: - return draw_image(data); - case VOCTRL_GUISUPPORT: - return VO_TRUE; - case VOCTRL_BORDER: - vo_x11_border(); - resize(); - return VO_TRUE; - case VOCTRL_FULLSCREEN: - vo_x11_fullscreen(); - resize(); - return VO_TRUE; - case VOCTRL_GET_PANSCAN: - return VO_TRUE; - case VOCTRL_SET_PANSCAN: - resize(); - return VO_TRUE; - case VOCTRL_SET_EQUALIZER: { - va_list ap; - int value; - - va_start(ap, data); - value = va_arg(ap, int); - - va_end(ap); - return set_equalizer(data, value); + case VOCTRL_GET_DEINTERLACE: + *(int*)data = deint; + return VO_TRUE; + case VOCTRL_SET_DEINTERLACE: + deint = *(int*)data; + if (deint) + deint = deint_type; + if (deint_type > 2) { + VdpStatus vdp_st; + VdpVideoMixerFeature features[1] = + {deint_type == 3 ? + VDP_VIDEO_MIXER_FEATURE_DEINTERLACE_TEMPORAL : + VDP_VIDEO_MIXER_FEATURE_DEINTERLACE_TEMPORAL_SPATIAL}; + VdpBool feature_enables[1] = {deint ? VDP_TRUE : VDP_FALSE}; + vdp_st = vdp_video_mixer_set_feature_enables(video_mixer, 1, + features, + feature_enables); + CHECK_ST_WARNING("Error changing deinterlacing settings") + deint_buffer_past_frames = 1; } - case VOCTRL_GET_EQUALIZER: { - va_list ap; - int *value; + return VO_TRUE; + case VOCTRL_PAUSE: + return (int_pause = 1); + case VOCTRL_RESUME: + return (int_pause = 0); + case VOCTRL_QUERY_FORMAT: + return query_format(*(uint32_t *)data); + case VOCTRL_GET_IMAGE: + return get_image(data); + case VOCTRL_DRAW_IMAGE: + return draw_image(data); + case VOCTRL_GUISUPPORT: + return VO_TRUE; + case VOCTRL_BORDER: + vo_x11_border(); + resize(); + return VO_TRUE; + case VOCTRL_FULLSCREEN: + vo_x11_fullscreen(); + resize(); + return VO_TRUE; + case VOCTRL_GET_PANSCAN: + return VO_TRUE; + case VOCTRL_SET_PANSCAN: + resize(); + return VO_TRUE; + case VOCTRL_SET_EQUALIZER: { + va_list ap; + int value; - va_start(ap, data); - value = va_arg(ap, int *); + va_start(ap, data); + value = va_arg(ap, int); - va_end(ap); - return get_equalizer(data, value); - } - case VOCTRL_ONTOP: - vo_x11_ontop(); - return VO_TRUE; - case VOCTRL_UPDATE_SCREENINFO: - update_xinerama_info(); - return VO_TRUE; - case VOCTRL_DRAW_EOSD: - if (!data) - return VO_FALSE; - generate_eosd(data); - draw_eosd(); - return VO_TRUE; - case VOCTRL_GET_EOSD_RES: { - mp_eosd_res_t *r = data; - r->mt = r->mb = r->ml = r->mr = 0; - if (vo_fs) { - r->w = vo_screenwidth; - r->h = vo_screenheight; - r->ml = r->mr = border_x; - r->mt = r->mb = border_y; - } else { - r->w = vo_dwidth; - r->h = vo_dheight; - } - return VO_TRUE; + va_end(ap); + return set_equalizer(data, value); + } + case VOCTRL_GET_EQUALIZER: { + va_list ap; + int *value; + + va_start(ap, data); + value = va_arg(ap, int *); + + va_end(ap); + return get_equalizer(data, value); + } + case VOCTRL_ONTOP: + vo_x11_ontop(); + return VO_TRUE; + case VOCTRL_UPDATE_SCREENINFO: + update_xinerama_info(); + return VO_TRUE; + case VOCTRL_DRAW_EOSD: + if (!data) + return VO_FALSE; + generate_eosd(data); + draw_eosd(); + return VO_TRUE; + case VOCTRL_GET_EOSD_RES: { + mp_eosd_res_t *r = data; + r->mt = r->mb = r->ml = r->mr = 0; + if (vo_fs) { + r->w = vo_screenwidth; + r->h = vo_screenheight; + r->ml = r->mr = border_x; + r->mt = r->mb = border_y; + } else { + r->w = vo_dwidth; + r->h = vo_dheight; } + return VO_TRUE; + } } return VO_NOTIMPL; } -- cgit v1.2.3 From ad4e739ffa12bb30fe52ed173547463582aa3bd0 Mon Sep 17 00:00:00 2001 From: diego Date: Tue, 6 Oct 2009 12:38:06 +0000 Subject: Clarify screenshot filter description. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29756 b3059339-0415-0410-9bf9-f77b7e298cf2 --- DOCS/man/en/mplayer.1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/DOCS/man/en/mplayer.1 b/DOCS/man/en/mplayer.1 index 544bce1e4e..9e304f35ba 100644 --- a/DOCS/man/en/mplayer.1 +++ b/DOCS/man/en/mplayer.1 @@ -7318,9 +7318,9 @@ Files named 'shotNNNN.png' will be saved in the working directory, using the first available number \- no files will be overwritten. The filter has no overhead when not used and accepts an arbitrary colorspace, so it is safe to add it to the configuration file. -Make sure that screenshot is added after all other filters that -you want to have applied to it. -E.g. it should be the last filter if you want to have an exact +Make sure that the screenshot filter is added after all other filters +whose effect you want to record on the saved image. +E.g.\& it should be the last filter if you want to have an exact screenshot of what you see on the monitor. .RE . -- cgit v1.2.3 From 04ba27ba95ce2dd92d37f2651397b65721202d0c Mon Sep 17 00:00:00 2001 From: ptt Date: Thu, 8 Oct 2009 10:18:19 +0000 Subject: Updated to help_mp-en.h r29742 git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29757 b3059339-0415-0410-9bf9-f77b7e298cf2 --- help/help_mp-it.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/help/help_mp-it.h b/help/help_mp-it.h index a7bb02bfbc..802461dbc4 100644 --- a/help/help_mp-it.h +++ b/help/help_mp-it.h @@ -2,7 +2,7 @@ // Updated by: Roberto Togni // Updated by: PaulTT -// Updated to help_mp-en.h r29209 +// Updated to help_mp-en.h r29742 // ========================= MPlayer help =========================== @@ -1274,9 +1274,7 @@ static const char help_text[]= #define MSGTR_AO_ALSA_UnableToSetSamplerate2 "[AO_ALSA] Impossibile impostare samplerate-2: %s\n" // TODO:: //#define MSGTR_AO_ALSA_UnableToSetBufferTimeNear "[AO_ALSA] Unable to set buffer time near: %s\n" -#define MSGTR_AO_ALSA_UnableToSetPeriodTime "[AO_ALSA] Impossibile impostare il tempo del periodo: %s\n" #define MSGTR_AO_ALSA_UnableToGetPeriodSize "[AO ALSA] Impossibile ricavare la dimensione periodo: %s\n" -#define MSGTR_AO_ALSA_UnableToSetPeriodSize "[AO ALSA] Impossibile impostare la dimensione periodo(%ld): %s\n" #define MSGTR_AO_ALSA_UnableToSetPeriods "[AO_ALSA] Impossibile impostare i periodi: %s\n" #define MSGTR_AO_ALSA_UnableToSetHwParameters "[AO_ALSA] Impossibile impostare hw-parameters: %s\n" #define MSGTR_AO_ALSA_UnableToGetBufferSize "[AO_ALSA] Impossibile ricavare buffersize: %s\n" -- cgit v1.2.3 From 77bc2b34b7c8c36d21bee5a48cd73a0e110122f8 Mon Sep 17 00:00:00 2001 From: diego Date: Thu, 8 Oct 2009 10:48:12 +0000 Subject: cosmetics: Break two more lines. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29758 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/vo_vdpau.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libvo/vo_vdpau.c b/libvo/vo_vdpau.c index 3a6df1195a..3d6a3f0ca9 100644 --- a/libvo/vo_vdpau.c +++ b/libvo/vo_vdpau.c @@ -936,8 +936,10 @@ static uint32_t get_image(mp_image_t *mpi) struct vdpau_render_state *rndr; // no dr for non-decoding for now - if (!IMGFMT_IS_VDPAU(image_format)) return VO_FALSE; - if (mpi->type != MP_IMGTYPE_NUMBERED) return VO_FALSE; + if (!IMGFMT_IS_VDPAU(image_format)) + return VO_FALSE; + if (mpi->type != MP_IMGTYPE_NUMBERED) + return VO_FALSE; rndr = get_surface(mpi->number); if (!rndr) { -- cgit v1.2.3 From 50f563f9279f01a9f2177cac84178b153365f037 Mon Sep 17 00:00:00 2001 From: diego Date: Thu, 8 Oct 2009 11:25:01 +0000 Subject: cosmetics: Remove some pointless parentheses from return calls. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29759 b3059339-0415-0410-9bf9-f77b7e298cf2 --- drivers/mga_vid.c | 2 +- libvo/vo_vdpau.c | 4 ++-- mp3lib/sr1.c | 10 +++++----- mp3lib/test.c | 2 +- stream/dvb_tune.c | 8 ++++---- stream/stream_dvdnav.c | 6 +++--- stream/tv.c | 2 +- 7 files changed, 17 insertions(+), 17 deletions(-) diff --git a/drivers/mga_vid.c b/drivers/mga_vid.c index fdbfe04d1b..8330be29d6 100644 --- a/drivers/mga_vid.c +++ b/drivers/mga_vid.c @@ -1197,7 +1197,7 @@ static int mga_vid_ioctl(struct inode *inode, struct file *file, unsigned int cm tmp = MGA_VID_VERSION; if (copy_to_user((uint32_t *) arg, &tmp, sizeof(uint32_t))) { printk(KERN_ERR "mga_vid: failed copy %p to userspace %p\n", &tmp, (uint32_t *) arg); - return (-EFAULT); + return -EFAULT; } break; diff --git a/libvo/vo_vdpau.c b/libvo/vo_vdpau.c index 3d6a3f0ca9..2034e4027b 100644 --- a/libvo/vo_vdpau.c +++ b/libvo/vo_vdpau.c @@ -1198,9 +1198,9 @@ static int control(uint32_t request, void *data, ...) } return VO_TRUE; case VOCTRL_PAUSE: - return (int_pause = 1); + return int_pause = 1; case VOCTRL_RESUME: - return (int_pause = 0); + return int_pause = 0; case VOCTRL_QUERY_FORMAT: return query_format(*(uint32_t *)data); case VOCTRL_GET_IMAGE: diff --git a/mp3lib/sr1.c b/mp3lib/sr1.c index 224f838c7d..e02c1cfd8c 100644 --- a/mp3lib/sr1.c +++ b/mp3lib/sr1.c @@ -79,7 +79,7 @@ int mp3_read(char *buf,int size); //void mp3_seek(int pos){ // fseek(mp3_file,pos,SEEK_SET); -// return (MP3_fpos=ftell(mp3_file)); +// return MP3_fpos = ftell(mp3_file); //} /* Frame reader */ @@ -168,7 +168,7 @@ LOCAL unsigned int get1bit(void) bitindex++; wordpointer += (bitindex>>3); bitindex &= 7; - return ((rval>>7)&1); + return (val >> 7) & 1; } LOCAL void set_pointer(int backstep) @@ -537,8 +537,8 @@ int MP3_Open(char *filename,int buffsize){ int MP3_DecodeFrame(unsigned char *hova,short single){ pcm_sample = hova; pcm_point = 0; - if(!read_frame(&fr))return(0); - if(single==-2){ set_pointer(512); return(1); } + if(!read_frame(&fr)) return 0; + if(single==-2){ set_pointer(512); return 1; } if(fr.error_protection) getbits(16); /* skip crc */ fr.single=single; switch(fr.lay){ @@ -549,7 +549,7 @@ int MP3_DecodeFrame(unsigned char *hova,short single){ return 0; // unsupported } // ++MP3_frames; - return(pcm_point?pcm_point:2); + return pcm_point ? pcm_point : 2; } // Prints last frame header in ascii. diff --git a/mp3lib/test.c b/mp3lib/test.c index 5246ad3ff8..8ae1c68d41 100644 --- a/mp3lib/test.c +++ b/mp3lib/test.c @@ -17,7 +17,7 @@ static inline unsigned int GetTimer(void){ // float s; gettimeofday(&tv,&tz); // s=tv.tv_usec;s*=0.000001;s+=tv.tv_sec; - return (tv.tv_sec*1000000+tv.tv_usec); + return tv.tv_sec * 1000000 + tv.tv_usec; } static FILE* mp3file=NULL; diff --git a/stream/dvb_tune.c b/stream/dvb_tune.c index 8b7bdb7317..214fe871c2 100644 --- a/stream/dvb_tune.c +++ b/stream/dvb_tune.c @@ -230,7 +230,7 @@ int dvb_demux_stop(int fd) mp_msg(MSGT_DEMUX, MSGL_DBG2, "STOPPING FD: %d, RESULT: %d\n", fd, i); - return (i==0); + return i == 0; } @@ -241,7 +241,7 @@ int dvb_demux_start(int fd) mp_msg(MSGT_DEMUX, MSGL_DBG2, "STARTING FD: %d, RESULT: %d\n", fd, i); - return (i==0); + return i == 0; } @@ -265,7 +265,7 @@ int dvb_tune(dvb_priv_t *priv, int freq, char pol, int srate, int diseqc, int to if(ris != 0) mp_msg(MSGT_DEMUX, MSGL_INFO, "dvb_tune, TUNING FAILED\n"); - return (ris == 0); + return ris == 0; } @@ -740,5 +740,5 @@ static int tune_it(int fd_frontend, int fd_sec, unsigned int freq, unsigned int return -1; } - return(check_status(fd_frontend, timeout)); + return check_status(fd_frontend, timeout); } diff --git a/stream/stream_dvdnav.c b/stream/stream_dvdnav.c index ea8a28fe5f..13b6c5f144 100644 --- a/stream/stream_dvdnav.c +++ b/stream/stream_dvdnav.c @@ -698,11 +698,11 @@ static int mp_dvdnav_get_aid_from_format (stream_t *stream, int index, uint8_t l format = dvdnav_audio_stream_format(priv->dvdnav, lg); switch(format) { case DVDNAV_FORMAT_AC3: - return (index + 128); + return index + 128; case DVDNAV_FORMAT_DTS: - return (index + 136); + return index + 136; case DVDNAV_FORMAT_LPCM: - return (index + 160); + return index + 160; case DVDNAV_FORMAT_MPEGAUDIO: return index; default: diff --git a/stream/tv.c b/stream/tv.c index 240596b32d..34e184a37f 100644 --- a/stream/tv.c +++ b/stream/tv.c @@ -348,7 +348,7 @@ int tv_set_norm_i(tvi_handle_t *tvh, int norm) } tvh->functions->control(tvh->priv,TV_VBI_CONTROL_RESET,tvh->tv_param); - return(1); + return 1; } static int open_tv(tvi_handle_t *tvh) -- cgit v1.2.3 From 6aef595f93a1d7fff355f5d097d7833641933484 Mon Sep 17 00:00:00 2001 From: ptt Date: Thu, 8 Oct 2009 11:31:24 +0000 Subject: synced with r28576 git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29760 b3059339-0415-0410-9bf9-f77b7e298cf2 --- DOCS/man/it/mplayer.1 | 158 ++++++++++++++++++++++++++++++++++---------------- 1 file changed, 107 insertions(+), 51 deletions(-) diff --git a/DOCS/man/it/mplayer.1 b/DOCS/man/it/mplayer.1 index 7232894625..6b139338ab 100644 --- a/DOCS/man/it/mplayer.1 +++ b/DOCS/man/it/mplayer.1 @@ -1,4 +1,4 @@ -.\" synced with r27691 +.\" synced with r28576 .\" Encoding: iso-8859-1 .\" MPlayer (C) 2000-2009 MPlayer Team .\" Questa pagina di manuale è stata fatta da Gabucino, Diego Biurrun, @@ -35,7 +35,7 @@ .\" Titolo .\" -------------------------------------------------------------------------- . -.TH MPlayer 1 "2007-06-01" "The MPlayer Project" "The Movie Player" +.TH MPlayer 1 "2009-03-25" "The MPlayer Project" "The Movie Player" . .SH NOME mplayer \- visualizzatore di film @@ -110,7 +110,7 @@ cue://file[:traccia] . .br .B mplayer -[file|mms[t]|http|http_proxy|rt[s]p|ftp|udp|unsv|smb]:// +[file|mms[t]|http|http_proxy|rt[s]p|ftp|udp|unsv|icyx|noicyx|smb]:// [utente:password@]URL[:porta] [opzioni] . .br @@ -615,6 +615,7 @@ alang=en profile-desc="profilo per flussi dvdnav://" profile=protocol.dvd mouse-movements=yes +nocache=yes [extension.flv] profile-desc="profilo per file .flv" @@ -754,9 +755,9 @@ scrittura della linea di stato (cio Particolarmente utile su terminali lenti oppure che non funzionano correttamente e non gestiscono in modo giusto il ritorno carrello (cioè \\r). .TP -.B \-priority (solo Windows) +.B \-priority (solo Windows e OS/2) Seleziona la priorità del processo MPlayer in accordo con le priorità -predefinite disponibili sotto Windows. +predefinite disponibili sotto Windows e OS/2. Possibili valori di : .RSs idle|belownormal|normal|abovenormal|high|realtime @@ -1075,8 +1076,10 @@ Visualizza il menu principale alla partenza di MPlayer. .TP .B \-mouse\-movements Permette ad MPlayer di ricevere eventi del puntatore riportati dal driver di -uscita video (attualmente sono supportati solo derivati di X11). +uscita video. Necessario per selezionare i bottoni nei menu dei DVD. +Gestita solo per uscite video basate su X11 (x11, xv, xvmc, etc.) e per gl, +gl2, direct3d e corevideo. . .TP .B \-noar @@ -1216,6 +1219,16 @@ Quando si riproduce un flusso MPEG-TS, MPlayer/\:MEncoder useranno il primo programma (se presente) con il flusso audio scelto. . .TP +.B \-ausid (vedi anche \-alang) +Selezione il canale del sottoflussio audio. +Attualmente la gamma valida è 0x55..0x75 e viene applicata solo a MPEG-TS +quando viene decodificato dal demuxer nativo (non da libavformat). +Il tipo di formato potrebbe non venir correttamente identificato a causa di +come questa informazione (o la sua assenza) viene impacchettata nel flusso, ma +decodificherà correttamente i flussi audio quando sono presenti più sottoflussi. +MPlayer emette gli ID dei sottoflussi disponibili se eseguito con \-identify. +. +.TP .B \-alang (vedi anche \-aid) Specifica una lista di priorità dei linguaggi audio da utilizzare. Formati contenitore diversi utilizzano diversi codici. @@ -2163,8 +2176,8 @@ le tracce Matroska. Potresti voler utilizzare anche \-embeddedfonts. .br .I NOTA: -Quando fontconfig è compilato nell'eseguibile, \-ass abilita \-fontconfig -a meno che non venga esplicitamente disabilitata con \-nofontconfig. +Diversamente dagli OSD normali, libass utilizza di default fontconfig. +Per disabilitarlo, usa \-nofontconfig. . .TP .B \-ass\-border\-color @@ -2351,8 +2364,9 @@ Con fontconfig, questa opzione determina il nome del font fontconfig. Abilita l'utilizzo dei font gestiti da fontconfig. .br .I NOTA: -Abilitata automaticamente da \-ass a meno che non venga esplicitamente -disabilitata con \-nofontconfig. +fontconfig viene usato automaticamente per i sottotitoli di libass e non per +OSD. Usando \-fontconfig viene utilizzato sia per libass che per OSD, usando +\-nofontconfig non viene proprio usato. . .TP .B \-forcedsubsonly @@ -2758,6 +2772,12 @@ massimo, che, p.es.\&, l'OSD non riuscir Seleziona l'ampiezza dei passi di cambiamento del volume del mixer in percentuale sulla gamma totale (default: 3). . +.TP +.B \-volume <-1\-100> (vedi anche \-af volume) +Imposta sul mixer il volume in apertura, sia hardware o software (se usato con +\-softvol). +Un valore di -1 (default) non modifica il volume. +. . .\" -------------------------------------------------------------------------- .\" Driver di uscita audio @@ -2864,6 +2884,9 @@ Utile se vuoi che certe connessioni vengano stabilite automaticamente. .IPs (no)estimate Stima il ritardo audio, dovrebbe rendere la riproduzione video più dolce ed uniforme (default: abilitato). +.IPs (no)autostart +Avvia automaticamente jackd se necessario (default: disabilitato). +Nota che ciò sembra poco affidabile e riempie lo stdout di messaggi del server. .RE .PD 1 . @@ -2951,9 +2974,9 @@ se non c' .RSs .IPs card=<1\-4> Scheda DVB da usare quando non ce n'è una sola. -Se non specificata mplayer cercherà la prima scheda utilizzabile. +Se non specificata MPlayer cercherà la prima scheda utilizzabile. .IPs file= -nome file di uscita +nome del file di uscita .RE .PD 1 . @@ -3341,15 +3364,13 @@ Non supportato da tutti i driver di uscita video. . .TP .B \-screenh -Specifica la risoluzione verticale dello schermo per quei driver di uscita -video che non riescono a conoscere la risoluzione dello schermo come fbdev, -x11 e TV-out. +Specifica l'altezza dello schermo per quei driver di uscita video che +non conoscono la risoluzione dello schermo come fbdev, x11 e TV-out. . .TP .B \-screenw -Specifica la risoluzione orizzontale dello schermo per quei driver di uscita -video che non riescono a conoscere la risoluzione dello schermo come fbdev, -x11 e TV-out. +Specifica la larghezza dello schermo per quei driver di uscita video che +non conoscono la risoluzione dello schermo come fbdev, x11 e TV-out. . .TP .B \-stop\-xscreensaver (solo X11) @@ -3387,10 +3408,10 @@ la finestra. La posizione iniziale selezionata con l'opzione \-geometry è relativa allo schermo specificato. Funzionerà solitamente solo con "\-fstype \-fullscreen" o "\-fstype none". -Non conviene usare quest'opzione solo per impostare la schermata di avvio -(e neanche per la modalità a tutto schermo), per far questo la miglior opzione -attualmente disponibilie è \-geometry. -Supportata dai driver di uscita video gl, gl2, x11, ed xv. +Quest'opzione non è indicata per impostare solo la schermata di avvio +(dato che si aprirà sempre a tutto schermo sullo schermo indicato), per farlo +la miglior opzione attualmente disponibilie è \-geometry. +Supportata almeno dai driver di uscita video direct3d, gl, gl2, x11 e xv. . .TP .B \-zrbw (solo \-vo zr) @@ -3594,12 +3615,15 @@ Access di XFree86. Considerato obsoleto. . .TP -.B sdl (solo SDL) +.B sdl (solo SDL, vecchio/con problemi) Driver di uscita video molto indipendente dalla piattaforma basato sulla libreria SDL (Simple Directmedia Layer). Visto che la libreria SDL utilizza la propria gestione di X11 le opzioni relative ad X11 di MPlayer non avranno effetto se si utilizza questo driver di uscita video. +Da notare che ha vari piccoli problemi (\-vm/\-novm viene solitamente ignorata, +\-fs si comporta come dovrebbe fare \-novm, la finestra rimane in alto a +sinistra uscendo dalla modalità a schermo intero, panscan non è gestito, ...). .PD 0 .RSs .IPs driver= @@ -3658,6 +3682,10 @@ Uguale a vidix .PD 1 . .TP +.B direct3d (solo Windows) (CODICE BETA!) +Driver di uscita video che usa l'interfaccia Direct3D (utile per Vista). +. +.TP .B directx (solo Windows) Driver di uscita video che utilizza l'interfaccia DirectX. .PD 0 @@ -3688,7 +3716,16 @@ Driver di uscita video Mac OS X CoreVideo. .PD 0 .RSs .IPs device_id= -Seleziona il dispositivo di visualizzazione da usare a schermo intero. +Seleziona il dispositivo di visualizzazione da usare a schermo intero o +impostalo a \-1 per usare sempre lo stesso schermo su cui sta la finestra del +video (default: \-1 \- automatico). +.IPs shared_buffer +Scrive l'uscita su un buffer di memoria condivisa, invece di mostrarla e cercare +di aprire una connessione NSConnection esistente per comunicare con una GUI. +.IPs buffer_name= +Nome del buffer condiviso creato con shm_open e il nome della connessione +NSConnection che MPlayer cercherà di aprire (default: "mplayerosx"). +Impostare buffer_name abilita implicitamente shared_buffer. .RE .PD 1 . @@ -3770,7 +3807,7 @@ ma usa pure estensioni recenti e nuove, che permettono di usare pi colore e il rendering diretto. Per una velocità ottimale prova ad usare qualcosa simile a .br -\-vo gl:yuv=2:force\-pbo:ati\-hack \-dr \-noslices +\-vo gl:yuv=2:rectangle=2:force\-pbo:ati\-hack \-dr \-noslices .br Questa parte di codice implementa pochi controlli percio' se una caratteristica non funziona potrebbe non essere supportata dalla @@ -3870,6 +3907,10 @@ La gamma pu La velocità dipende più dall'ampiezza di memoria della GPU rispetto agli altri metodi. .RE +.IPs ycbcr +Usa l'estenzione GL_MESA_ycbcr_texture per convertire da YUV a RGB. +Nella maggior parte dei casi è probabilmente più lento di una conversione +software verso RGB. .IPs lscale= Seleziona la funzione di ridimensionamento da usare per il ridimensionamento della luminanza. @@ -4232,9 +4273,9 @@ in formato MPEG-PES se non .IPs card=<1\-4> Specifica il numero del dispositivo da usare se hai più di una scheda di uscita DVB (solo API V3, come i driver della serie 1.x.y). -Se non specificata mplayer cercherà la prima scheda utilizzabile. +Se non specificata MPlayer cercherà la prima scheda utilizzabile. .IPs -Permette di specificare il nome del file di uscita (default: ./grab.mpg). +nome del file di uscita (default: ./grab.mpg) .RE .PD 1 . @@ -9461,6 +9502,10 @@ Attualmente funziona solo se la rilevazione del cambio scena (sc_threshold=1000000000). . .TP +.B "gmc\ \ \ \ " +Abilita la compensazione del moto globale (Global Motion Compensation), +. +.TP .B (no)lowdelay Imposta il flag di basso ritardo per MPEG-1/2 (disabilita i fotogrammi B). . @@ -10501,19 +10546,21 @@ ricerca esaustiva (molto lenta, e non migliore di umh) raggio della ricerca esaustiva oppure multi-esagono del movimento (default: 16) . .TP -.B subq=<1\-7> +.B subq=<0\-9> Controlla la qualità della rifinitura dei sotto pixel (subpel). Questo parametro controlla la qualità rispetto alla velocità coinvolta nel processo di decisione della stima del movimento. -subq=5 può comprimere fino al 10% meglio rispetto a subq=1. +subq=5 può comprimere fino al 10% in più rispetto a subq=1. .PD 0 .RSs -.IPs 1 +.IPs 0 Esegue una stima del movimento a pixel intero su tutti i tipi di macroblocchi candidati. -Poi seleziona il tipo migliore. -Infine rifinisce il movimento di quel tipo con una precisione veloce -sul quarto di pixel (più veloce). +Poi seleziona il tipo migliore con una metrica SAD (più veloce di subq=1, +sconsigliato a meno che non si cerchi solo una codifica ultra veloce). +.IPs 1 +Opera come 0, poi rifinisce il movimento di quel tipo con una precisione veloce +sul quarto di pixel (veloce). .IPs 2 Esegue una stima del movimento a mezzo pixel su tutti i tipi di macroblocchi candidati. @@ -10529,13 +10576,22 @@ Poi seleziona il tipo migliore. Infine finisce la rifinitura a quarto di pixel per quel tipo. .IPs 5 Esegue la miglior stima del movimento a quarto di pixel in tutti i -tipi di macroblocchi candidati prima di selezionare il tipo migliore. (default) +tipi di macroblocchi candidati prima di selezionare il tipo migliore. +Inoltre rifinisce con una metrica SATD i due vettori di movimento usati nei +macroblocchi bidirezionali, invece di riutilizzare i vettori delle ricerche +in avanti e indietro. .IPs 6 -Abilita l'ottimizzazione rate-distorsion (?) dei tipi di macroblocchi nei -fotogrammi I e P. +Abilita l'ottimizzazione rate-distorsion (?) dei tipi di macroblocco nei +fotogrammi I e P (default). .IPs 7 -Abilita l'ottimizzazione rate-distortion dei vettori di movimento e delle -modalità intra. (qualità migliore) +Abilita l'ottimizzazione rate-distortion dei tipi di macroblocco in tutti i +fotogrammi (qualità migliore). +.IPs 8 +Abilita l'ottimizzazione rate-distortion dei vettori di movimento nei +fotogrammi I e P. +.IPs 9 +Abilita l'ottimizzazione rate-distortion dei vettori di movimento in tutti i +fotogrammi (qualità migliore). .RE .PD 1 .RS @@ -10559,19 +10615,7 @@ di riferimento. Richiede frameref>1. . .TP -.B (no)brdo -Abilita l'ottimizzazione della rate-distorsion per i tipi di macroblocco -nei fotogrammi B. -Richiede subq>=6. -. -.TP -.B (no)bime -Rifinisce i due vettori di movimento usati per i macroblocchi bidirezionali, -piuttosto che riutilizzare vettori da ricerche in avanti e indietro. -Questa opzione non ha effetto senza fotogrammi B. -. -.TP -.B trellis=<0\-2> +.B trellis=<0\-2> (solo cabac) quantizzazione ottimale della rate-distortion .PD 0 .RSs @@ -10585,6 +10629,18 @@ abilitata durante ogni decisione di modalit .PD 1 . .TP +.B psy-rd=rd[,trell] +Imposta l'incidenza dell'ottimizzazione psicovisuale. +.PD 0 +.RSs +.IPs rd=<0.0\-10.0> +incidenza dell'ottimizzazione psi (richiede subq>=6) (default: 1.0) +.IPs trell=<0.0\-10.0> +trellis (richiede trellis, sperimentale) (default: 0.0) +.RE +.PD 1 +. +.TP .B deadzone_inter=<0\-32> Imposta la dimensione della zona morta di quantizzazione di luminanza inter per quantizzazione non trellis (default: 21). -- cgit v1.2.3 From 2df6aba009d93999e0e2205ceacb0bcdeae7a4fd Mon Sep 17 00:00:00 2001 From: diego Date: Thu, 8 Oct 2009 11:32:17 +0000 Subject: Fix 100l typo introduced in last commit. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29761 b3059339-0415-0410-9bf9-f77b7e298cf2 --- mp3lib/sr1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mp3lib/sr1.c b/mp3lib/sr1.c index e02c1cfd8c..e0e616d955 100644 --- a/mp3lib/sr1.c +++ b/mp3lib/sr1.c @@ -168,7 +168,7 @@ LOCAL unsigned int get1bit(void) bitindex++; wordpointer += (bitindex>>3); bitindex &= 7; - return (val >> 7) & 1; + return (rval >> 7) & 1; } LOCAL void set_pointer(int backstep) -- cgit v1.2.3 From 2781bab3aff4312ce2de7ef12187120c96308980 Mon Sep 17 00:00:00 2001 From: ptt Date: Thu, 8 Oct 2009 16:42:56 +0000 Subject: various little aesthetic fixes git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29762 b3059339-0415-0410-9bf9-f77b7e298cf2 --- DOCS/man/en/mplayer.1 | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/DOCS/man/en/mplayer.1 b/DOCS/man/en/mplayer.1 index 9e304f35ba..5e9a22ae0f 100644 --- a/DOCS/man/en/mplayer.1 +++ b/DOCS/man/en/mplayer.1 @@ -527,11 +527,12 @@ named 'movie.avi.conf' with the file-specific options in it and put it in You can also put the configuration file in the same directory as the file to be played, as long as you give the \-use\-filedir\-conf option (either on the command line or in your global config file). -If a file-specific configuration file is found in the same directory, no file-specific -configuration is loaded from ~/.mplayer. -In addition, the \-use\-filedir\-conf option enables directory-specific configuration files. -For this, MPlayer first tries to load a mplayer.conf from the same directory as the file played -and then tries to load any file-specific configuration. +If a file-specific configuration file is found in the same directory, no +file-specific configuration is loaded from ~/.mplayer. +In addition, the \-use\-filedir\-conf option enables directory-specific +configuration files. +For this, MPlayer first tries to load a mplayer.conf from the same directory as +the file played and then tries to load any file-specific configuration. .PP .I EXAMPLE MPLAYER CONFIGURATION FILE: .sp 1 @@ -1045,7 +1046,7 @@ Display the main menu at MPlayer startup. Permit MPlayer to receive pointer events reported by the video output driver. Necessary to select the buttons in DVD menus. -Supported for X11 based VOs (x11, xv, xvmc, etc.) and the gl, gl2, direct3d and +Supported for X11 based VOs (x11, xv, xvmc, etc) and the gl, gl2, direct3d and corevideo VOs. . .TP @@ -2342,7 +2343,8 @@ If you cannot select one of the subtitles on a DVD, also try \-vobsubid. . .TP .B \-nosub -Disables any otherwise auto-selected subtitles (as e.g. the Matroska/mkv demuxer supports). +Disables any otherwise auto-selected subtitles (as e.g.\& the Matroska/mkv +demuxer supports). . .TP .B \-slang (also see \-sid) @@ -2784,8 +2786,8 @@ Useful if you want to have certain connections established automatically. .IPs (no)estimate Estimate the audio delay, supposed to make the video playback smoother (default: enabled). -.IPs (no)autostart (default: disabled) -Automatically start jackd if necessary. +.IPs (no)autostart +Automatically start jackd if necessary (default: disabled). Note that this seems unreliable and will spam stdout with server messages. .RE .PD 1 @@ -3291,7 +3293,7 @@ Enables VBI for the vesa, dfbmga and svga video output drivers. This tells MPlayer to attach to an existing window. Useful to embed MPlayer in a browser (e.g.\& the plugger extension). This option fills the given window completely, thus aspect scaling, -panscan etc. are no longer handled by MPlayer but must be managed by the +panscan, etc are no longer handled by MPlayer but must be managed by the application that created the window. . .TP @@ -3539,7 +3541,7 @@ Since SDL uses its own X11 layer, MPlayer X11 options do not have any effect on SDL. Note that it has several minor bugs (\-vm/\-novm is mostly ignored, \-fs behaves like \-novm should, window is in top-left corner when -returning from fullscreen, panscan is not supported, ...) +returning from fullscreen, panscan is not supported, ...). .PD 0 .RSs .IPs driver= @@ -3624,7 +3626,7 @@ Force WarpOverlay! mode. .IPs dive Force DIVE mode. .IPs (no)t23 -Enable/disable workaround for T23 laptop (default: disabled). +Enable or disable workaround for T23 laptop (default: disabled). Try to enable this option if your video card supports upscaling only. .RE .PD 1 @@ -5070,7 +5072,7 @@ Reasonable values are around 0.001. .PD 1 . .TP -.B bs2b[=option1:option2] +.B bs2b[=option1:option2:...] Bauer stereophonic to binaural transformation using libbs2b. Improves the headphone listening experience by making the sound similar to that from loudspeakers, allowing each ear to hear both @@ -10332,7 +10334,6 @@ trellis (requires trellis, experimental) (default: 0.0) .RE .PD 1 . -. .TP .B deadzone_inter=<0\-32> Set the size of the inter luma quantization deadzone for non-trellis -- cgit v1.2.3 From 9514824cf9697b207a804fc3626a071b489642a8 Mon Sep 17 00:00:00 2001 From: ptt Date: Thu, 8 Oct 2009 16:45:24 +0000 Subject: added myself to italian man mantainers section, since i'm the one that does that git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29763 b3059339-0415-0410-9bf9-f77b7e298cf2 --- DOCS/tech/MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DOCS/tech/MAINTAINERS b/DOCS/tech/MAINTAINERS index 680906e4e2..d2a2aa02b1 100644 --- a/DOCS/tech/MAINTAINERS +++ b/DOCS/tech/MAINTAINERS @@ -40,7 +40,7 @@ Man page translations: * French: Guillaume Poirier * German: Sebastian Krämer * Hungarian: Gabor Mizda - * Italian: Daniele Forghieri + * Italian: Daniele Forghieri, Paolo Tresoldi * Polish: Waclaw Schiller * Spanish: Reynaldo H. Verdejo Pinochet (outdated) * Russian: Vladimir Voroshilov -- cgit v1.2.3 From c72ef416cad0f90b490a80fb54a17212b6faf9c7 Mon Sep 17 00:00:00 2001 From: ptt Date: Thu, 8 Oct 2009 16:59:36 +0000 Subject: synced with r29762 git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29764 b3059339-0415-0410-9bf9-f77b7e298cf2 --- DOCS/man/it/mplayer.1 | 202 +++++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 183 insertions(+), 19 deletions(-) diff --git a/DOCS/man/it/mplayer.1 b/DOCS/man/it/mplayer.1 index 6b139338ab..36be43ad19 100644 --- a/DOCS/man/it/mplayer.1 +++ b/DOCS/man/it/mplayer.1 @@ -1,4 +1,4 @@ -.\" synced with r28576 +.\" synced with r29762 .\" Encoding: iso-8859-1 .\" MPlayer (C) 2000-2009 MPlayer Team .\" Questa pagina di manuale è stata fatta da Gabucino, Diego Biurrun, @@ -301,7 +301,7 @@ Inizia/\:smette di salvare istantanee. Mostra il nome del file sull'OSD. .IPs "! e @" Va all'inizio del capitolo precedente/\:successivo. -.IPs "D (solo \-vo xvmc, \-vf yadif, \-vf kerndeint)" +.IPs "D (solo \-vo xvmc, \-vo vdpau, \-vf yadif, \-vf kerndeint)" Attiva/\:disattiva deinterlacciatore. .IPs "A" Passa attraverso tutte le angolazioni del DVD. @@ -540,12 +540,18 @@ a 'yes', '1' oppure 'true' e disabilitate impostandole a 'no', '0' oppure 'false Anche le sotto-opzioni possono essere specificate in questo modo. .PP Puoi anche scrivere configurazioni specifiche per i singoli file. -Se desideri avere un file di configurazione per un file che si chiama 'movie.avi', -crea un file di nome 'movie.avi.conf' con le opzioni specifiche dentro di esso -e salvalo in ~/.mplayer/. +Se desideri avere un file di configurazione per un file che si +chiama 'movie.avi', crea un file di nome 'movie.avi.conf' con le opzioni +specifiche dentro di esso e salvalo in ~/.mplayer/. Puoi anche mettere tale file di configurazione nella stessa directory in cui si trova il file relativo, sempre che tu imposti poi l'opzione \-use\-filedir\-conf (dalla riga comando oppure nel tuo file di configurazione globale). +Se viene trovato un file di configurazione specifico nella stessa directory del +file, nessun file di configurazione specifico vine letto da ~/.mplayer. +Inoltre l'opzione \-use\-filedir\-conf abilita i file di configurazione +specifici nella directory. +Per questo, MPlayer dapprima cerca di caricare un mplayer.conf dalla stessa +directory del file riprodotto e poi cerca un file di configurazione specifico. .PP .I ESEMPIO DI UN FILE DI CONFIGURAZIONE PER MPLAYER: .sp 1 @@ -932,13 +938,15 @@ quindi considera l'utilizzo di "\-vc ffmpeg12,". . .TP .B \-heartbeat\-cmd -Comando da eseguire via system () ogni 30 secondi durante la riproduzione - -per es.\& usando la shell. +Comando da eseguire attraverso system() ogni 30 secondi durante la riproduzione +- per es.\& usando la shell. .sp 1 .I NOTA: MPlayer usa questo comando senza fare alcun controllo, è tua responsabilità assicurarti che non causi problemi di sicurezza (per es.\& assicurati di usare -percorsi assoluti se "." e nella tua PATH come in Windows). +percorsi assoluti se "." e nella tua PATH, come in Windows). +Funziona solamente riproducendo video (per es.\& non funziona con \-novideo, +mentre con \-vo null sì). .sp 1 Questo può essere usato (male) per disabilitare salvaschermi che non usano le corrette API di X (vedi anche \-stop\-xscreensaver). @@ -998,6 +1006,8 @@ automaticamente di default). Ritardo in msec prima di cominciare ad autoripetere un tasto (0 per disabilitare) .IPs ar-rate Numero di pressioni di un tasto da generare quando è attivo l'autorepeat. +.IPs (no)default-bindings +Usa i collegamenti ai tasti come sono impostati di default in MPlayer. .IPs keylist Stampa tutti i tasti che possono essere collegati ad un comando. .IPs cmdlist @@ -1176,6 +1186,9 @@ separati dal carattere di nuova linea (newline, \\n) da stdin. .I NOTA: Vedi \-input cmdlist per la lista dei comandi in modalità slave e DOCS/tech/slave.txt per la loro descrizione. +Tra l'altro questa opzione non è indicata per disabilitare altri input, +per es.\& attraverso la finestra del video, per far ciò usa altri metodi come +\-input nodefault\-binds:conf=/dev/null. . .TP .B \-softsleep @@ -1767,7 +1780,7 @@ Senza tale nome la cattura sar chiave 'capture' appare nell'URL. Per i dispositivi ALSA deve essere usato nella forma hw=.. Se il nome contiene un '=', il modulo userà ALSA per la cattura, se no OSS. -.IPs arate= (solo acquisizione radio) +.IPs "arate= (solo acquisizione radio)" Frequenza in campioni per secondo (default: 44100). .br .I NOTA: @@ -1984,8 +1997,12 @@ Vedi l'output su console per una lista delle norme TV disponibili. Regola il sintonizzatore sul canale . .IPs chanlist= disponibili: europe-east, europe-west, us-bcast, us-cable, etc -.IPs channels=\-[=],\-[=],... +.IPs channels=\-[=],\-[=],... Imposta la lista dei canali. +.I NOTA: +Se è un intero maggiore di 1000, verrà trattato come fosse una frequenza +(in kHz) invece che un nome di canale della tabella frequenze. +.br Usa _ per gli spazi nei nomi (o divertiti con il quoting ;-). I nomi dei canali verranno scritti usando l'OSD e i comandi slave tv_step_channel, tv_set_channel e tv_last_channel saranno utilizzabili da un controllo @@ -2338,7 +2355,7 @@ Utilizzalo se le virgole nei sottotitoli sono visualizzate all'inizio di una frase invece che alla fine. . .TP -.B \-font +.B \-font Cerca i font per OSD/\:SUB in una directory alternativa (default per i font normali: ~/\:.mplayer/\:font/\:font.desc, default per i font FreeType: ~/.mplayer/\:subfont.ttf). @@ -2346,7 +2363,7 @@ font normali: ~/\:.mplayer/\:font/\:font.desc, default per i font FreeType: .I NOTA: Con FreeType, questa opzione determina il percorso del file del font di testo. .br -Con fontconfig, questa opzione determina il nome del font fontconfig. +Con Fontconfig, questa opzione determina la definizione del font Fontconfig. .sp 1 .I ESEMPIO: .PD 0 @@ -2356,6 +2373,8 @@ Con fontconfig, questa opzione determina il nome del font fontconfig. \-font ~/\:.mplayer/\:arialuni.ttf .br \-font 'Bitstream Vera Sans' +.br +\-font 'Bitstream Vera Sans:style=Bold' .RE .PD 1 . @@ -2364,7 +2383,7 @@ Con fontconfig, questa opzione determina il nome del font fontconfig. Abilita l'utilizzo dei font gestiti da fontconfig. .br .I NOTA: -fontconfig viene usato automaticamente per i sottotitoli di libass e non per +Fontconfig viene usato automaticamente per i sottotitoli di libass e non per OSD. Usando \-fontconfig viene utilizzato sia per libass che per OSD, usando \-nofontconfig non viene proprio usato. . @@ -2421,6 +2440,11 @@ modalit Se non riesci a selezionare un sottotitolo di un DVD, prova anche \-vobsubid. . .TP +.B \-nosub +Disabilita qualsiasi sottotitolo auto-selezionato (cosa che per es.\& il demuxer +Matroska/mkv implementa). +. +.TP .B \-slang (vedi anche \-sid) Specifica una lista di priorità dei linguaggi dei sottotitoli da usare. Formati contenitore diversi (avi, mov, ...) utilizzano diversi codici dei @@ -2606,7 +2630,8 @@ E' lo stesso che \-audiofile, ma per il flusso dei sottotitoli (OggDS?). . .TP .B \-subfont (solo FreeType) -Seleziona il font per i sottotitoli. +.B \-subfont (solo FreeType) +Seleziona il font per i sottotitoli (vedi \-font). Se \-subfont non è specificato, viene usato \-font. . .TP @@ -2953,6 +2978,18 @@ dispositivi disponibili. .PD 1 . .TP +.B dart (solo OS/2) +driver di uscita video OS/2 DART +.PD 0 +.RSs +.IPs (no)share +Apre Dart in modalità condivisa o esclusiva. +.IPs bufsize= +Imposta la dimenzione del buffer a in campioni (default: 2048). +.RE +.PD 1 +. +.TP .B dxr2 (vedi anche \-dxr2) (solo DXR2) Driver di uscita audio specifico per la scheda Creative DXR2 . @@ -3227,6 +3264,9 @@ Supporta anche il formato dell'opzione standard di X \-geometry. Se viene specificata una finestra esterna utilizzando l'opzione \-wid allora le coordinate x ed y sono relative all'angolo in alto a sinistra della finestra stessa piuttosto che dello schermo. +Le coordinate sono relative allo schermo indicato con \-xineramascreen per i +driver di uscita video che gestiscono completamente \-xineramascreen (direct3d, +gl, gl2, vdpau, x11, xv, xvmc). .br .I NOTA: Questa opzione è supportata dai driver di uscita video x11, xmga, xv, xvmc, @@ -3395,6 +3435,9 @@ Abilita il VBI per i driver di uscita video vesa, dfbmga e svga. Dice ad MPlayer di collegarsi ad una finestra già esistente. Utile per 'incastrare' MPlayer in un browser (p.es.\& con l'estensione plugger). +Quest'opzione riempie completamente la finestra indicata, quindi rapporto di +aspetto, panscan, etc non vengono più gestite da MPlayer, ma devono esser +gestire dall'applicazione che ha creato la finestra. . .TP .B \-xineramascreen <\-2\-...> @@ -3609,6 +3652,50 @@ E' lo stesso che \-vo xv:ck-method (vedi \-vo xv). .PD 1 . .TP +.B vdpau (con \-vc ffmpeg12vdpau, ffwmv3vdpau, ffvc1vdpau o ffh264vdpau) +Driver di uscita video che usa VDPAU per la docodifica video via hardware. +Gestisce anche la visualizzazione di video decodificato via software. +.PD 0 +.RSs +.IPs sharpen=<\-1\-1> +Per valori positivi applica un algoritmo di messa a fuoco, +per valori negativi un algoritmo di sfocatura (default: 0). +.IPs denoise=<0\-1> +Applica al video un algoritmo di riduzione del disturbo (default: 0, nessuna +riduzione). +.IPs deint=<0\-4> +Sceglie il deinterlacciatore (default: 0). +Tutte le modalità > 0 rispettano \-field\-dominance. +.RSss +.IPs 0 +nessun deinterlacciamento +.IPs 1 +Mostra solo il primo campo, simile a