diff options
Diffstat (limited to 'src/dxr3')
-rw-r--r-- | src/dxr3/dxr3.h | 9 | ||||
-rw-r--r-- | src/dxr3/dxr3_decode_video.c | 30 | ||||
-rw-r--r-- | src/dxr3/dxr3_mpeg_encoders.c | 18 | ||||
-rw-r--r-- | src/dxr3/dxr3_scr.c | 6 | ||||
-rw-r--r-- | src/dxr3/video_out_dxr3.c | 48 |
5 files changed, 62 insertions, 49 deletions
diff --git a/src/dxr3/dxr3.h b/src/dxr3/dxr3.h index c17708e11..b898f7369 100644 --- a/src/dxr3/dxr3.h +++ b/src/dxr3/dxr3.h @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: dxr3.h,v 1.2 2002/05/24 22:09:44 miguelfreitas Exp $ + * $Id: dxr3.h,v 1.3 2002/06/12 12:22:34 f1rmb Exp $ */ #ifndef HAVE_DXR3_H @@ -25,13 +25,16 @@ #include <linux/em8300.h> +#include "xine_internal.h" + /* data for the device name config entry */ #define CONF_LOOKUP "dxr3.devicename" #define CONF_DEFAULT "/dev/em8300-0" -#define CONF_NAME "Dxr3: Device Name" -#define CONF_HELP "The device file of the dxr3 mpeg decoder card control device." +#define CONF_NAME _("Dxr3: Device Name") +#define CONF_HELP _("The device file of the dxr3 mpeg decoder card control device.") /* image format used by dxr3_decoder to tag undecoded mpeg data */ #define IMGFMT_MPEG (('G'<<24)|('E'<<16)|('P'<<8)|'M') #endif + diff --git a/src/dxr3/dxr3_decode_video.c b/src/dxr3/dxr3_decode_video.c index d0f99a844..f46ad2dd9 100644 --- a/src/dxr3/dxr3_decode_video.c +++ b/src/dxr3/dxr3_decode_video.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: dxr3_decode_video.c,v 1.6 2002/06/03 20:29:16 mroi Exp $ + * $Id: dxr3_decode_video.c,v 1.7 2002/06/12 12:22:34 f1rmb Exp $ */ /* dxr3 video decoder plugin. @@ -161,9 +161,10 @@ video_decoder_t *init_video_decoder_plugin(int iface_version, xine_t *xine) this->video_decoder.close = dxr3_close; this->video_decoder.dispose = dxr3_dispose; this->video_decoder.priority = cfg->register_num(cfg, - "dxr3.decoder_priority", 10, "Dxr3: video decoder priority", - "Decoder priorities greater 5 enable hardware decoding, 0 disables it.", - dxr3_update_priority, this); + "dxr3.decoder_priority", 10, + _("Dxr3: video decoder priority"), + _("Decoder priorities greater 5 enable hardware decoding, 0 disables it."), + dxr3_update_priority, this); this->scr = NULL; this->xine = xine; @@ -172,18 +173,21 @@ video_decoder_t *init_video_decoder_plugin(int iface_version, xine_t *xine) this->repeat_first_field = 0; this->sync_every_frame = cfg->register_bool(cfg, - "dxr3.sync_every_frame", 0, "Try to sync video every frame", - "This is relevant for progressive video only (most PAL films).", - dxr3_update_sync_mode, this); + "dxr3.sync_every_frame", 0, + _("Try to sync video every frame"), + _("This is relevant for progressive video only (most PAL films)."), + dxr3_update_sync_mode, this); this->sync_retry = 0; this->enhanced_mode = cfg->register_bool(cfg, - "dxr3.alt_play_mode", 1, "Use alternate Play mode", - "Enabling this option will utilise a smoother play mode.", - dxr3_update_enhanced_mode, this); + "dxr3.alt_play_mode", 1, + _("Use alternate Play mode"), + _("Enabling this option will utilise a smoother play mode."), + dxr3_update_enhanced_mode, this); this->correct_durations = cfg->register_bool(cfg, - "dxr3.correct_durations", 0, "Correct frame durations in broken streams", - "Enable this for streams with wrong frame durations.", - dxr3_update_correct_durations, this); + "dxr3.correct_durations", 0, + _("Correct frame durations in broken streams"), + _("Enable this for streams with wrong frame durations."), + dxr3_update_correct_durations, this); /* set a/v offset to compensate dxr3 internal delay */ cur_offset = this->xine->metronom->get_option(this->xine->metronom, METRONOM_AV_OFFSET); diff --git a/src/dxr3/dxr3_mpeg_encoders.c b/src/dxr3/dxr3_mpeg_encoders.c index 46d3f4fc7..3fb7f1bdc 100644 --- a/src/dxr3/dxr3_mpeg_encoders.c +++ b/src/dxr3/dxr3_mpeg_encoders.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: dxr3_mpeg_encoders.c,v 1.2 2002/06/01 17:21:28 mroi Exp $ + * $Id: dxr3_mpeg_encoders.c,v 1.3 2002/06/12 12:22:34 f1rmb Exp $ */ /* mpeg encoders for the dxr3 video out plugin. @@ -170,10 +170,10 @@ static int rte_on_update_format(dxr3_driver_t *drv, dxr3_frame_t *frame) } this->rte_bitrate = drv->config->register_range(drv->config, - "dxr3.rte_bitrate", 10000, 1000, 20000, - "Dxr3enc: rte mpeg output bitrate (kbit/s)", - "The bitrate the mpeg encoder library librte should use for dxr3's encoding mode", - NULL, NULL); + "dxr3.rte_bitrate", 10000, 1000, 20000, + _("Dxr3enc: rte mpeg output bitrate (kbit/s)"), + _("The bitrate the mpeg encoder library librte should use for dxr3's encoding mode"), + NULL, NULL); this->rte_bitrate *= 1000; /* config in kbit/s, rte wants bit/s */ /* FIXME: this needs to be replaced with a codec option call. @@ -371,10 +371,10 @@ static int fame_on_update_format(dxr3_driver_t *drv, dxr3_frame_t *frame) this->fp = init_fp; this->fp.quality = drv->config->register_range(drv->config, - "dxr3.fame_quality", 90, 10, 100, - "Dxr3enc: fame mpeg encoding quality", - "The encoding quality of the libfame mpeg encoder library.", - NULL,NULL); + "dxr3.fame_quality", 90, 10, 100, + _("Dxr3enc: fame mpeg encoding quality"), + _("The encoding quality of the libfame mpeg encoder library."), + NULL,NULL); #if LOG_ENC /* the really interesting bit is the quantizer scale. The formula * below is copied from libfame's sources (could be changed in the diff --git a/src/dxr3/dxr3_scr.c b/src/dxr3/dxr3_scr.c index 97cfb9bdf..bbc157211 100644 --- a/src/dxr3/dxr3_scr.c +++ b/src/dxr3/dxr3_scr.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: dxr3_scr.c,v 1.2 2002/05/24 22:09:44 miguelfreitas Exp $ + * $Id: dxr3_scr.c,v 1.3 2002/06/12 12:22:34 f1rmb Exp $ */ /* dxr3 scr plugin. @@ -61,10 +61,10 @@ dxr3_scr_t *dxr3_scr_init(xine_t *xine) this = (dxr3_scr_t *)malloc(sizeof(dxr3_scr_t)); confstr = xine->config->register_string(xine->config, - CONF_LOOKUP, CONF_DEFAULT, CONF_NAME, CONF_HELP, NULL, NULL); + CONF_LOOKUP, CONF_DEFAULT, CONF_NAME, CONF_HELP, NULL, NULL); if ((this->fd_control = open(confstr, O_WRONLY)) < 0) { printf("dxr3_scr: Failed to open control device %s (%s)\n", - confstr, strerror(errno)); + confstr, strerror(errno)); free(this); return NULL; } diff --git a/src/dxr3/video_out_dxr3.c b/src/dxr3/video_out_dxr3.c index 43e7e2322..0ce1a6e80 100644 --- a/src/dxr3/video_out_dxr3.c +++ b/src/dxr3/video_out_dxr3.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: video_out_dxr3.c,v 1.23 2002/06/10 15:02:48 mroi Exp $ + * $Id: video_out_dxr3.c,v 1.24 2002/06/12 12:22:34 f1rmb Exp $ */ /* mpeg1 encoding video out plugin for the dxr3. @@ -149,14 +149,18 @@ vo_driver_t *init_video_out_plugin(config_values_t *config, void *visual_gen) this->aspect = ASPECT_FULL; this->overlay_enabled = 0; this->swap_fields = config->register_bool(config, - "dxr3.enc_swap_fields", 0, "swap odd and even lines", NULL, dxr3_update_swap_fields, this); + "dxr3.enc_swap_fields", 0, + _("swap odd and even lines"), + NULL, dxr3_update_swap_fields, this); this->add_bars = config->register_bool(config, - "dxr3.enc_add_bars", 1, "Add black bars to correct aspect ratio", - "If disabled, will assume source has 4:3 aspect ratio.", dxr3_update_add_bars, this); + "dxr3.enc_add_bars", 1, + _("Add black bars to correct aspect ratio"), + _("If disabled, will assume source has 4:3 aspect ratio."), dxr3_update_add_bars, this); this->enhanced_mode = config->register_bool(config, - "dxr3.enc_alt_play_mode", 1, "dxr3: use alternate play mode for mpeg encoder playback", - "Enabling this option will utilise a smoother play mode", dxr3_update_enhanced_mode, this); - + "dxr3.enc_alt_play_mode", 1, + _("dxr3: use alternate play mode for mpeg encoder playback"), + _("Enabling this option will utilise a smoother play mode"), dxr3_update_enhanced_mode, this); + confstr = config->register_string(config, CONF_LOOKUP, CONF_DEFAULT, CONF_NAME, CONF_HELP, NULL, NULL); strncpy(this->devname, confstr, 128); this->devname[127] = '\0'; @@ -208,16 +212,15 @@ vo_driver_t *init_video_out_plugin(config_values_t *config, void *visual_gen) printf("rte, "); #endif #endif - available_encoders[encoder] = "none"; + available_encoders[encoder] = _("none"); available_encoders[encoder + 1] = NULL; #if LOG_VID printf("none\n"); #endif if (encoder) { encoder = config->register_enum(config, "dxr3.encoder", - 0, available_encoders, "the encoder for non mpeg content", - "Content other than mpeg has to pass an additional reencoding " - "stage, because the dxr3 handles mpeg only.", NULL, NULL); + 0, available_encoders, _("the encoder for non mpeg content"), + _("Content other than mpeg has to pass an additional reencoding stage, because the dxr3 handles mpeg only."), NULL, NULL); #ifdef HAVE_LIBRTE if ((strcmp(available_encoders[encoder], "rte") == 0) && !dxr3_rte_init(this)) { printf("video_out_dxr3: Mpeg encoder rte failed to init.\n"); @@ -230,7 +233,7 @@ vo_driver_t *init_video_out_plugin(config_values_t *config, void *visual_gen) return 0; } #endif - if (strcmp(available_encoders[encoder], "none") == 0) + if (strcmp(available_encoders[encoder], _("none")) == 0) printf("video_out_dxr3: Mpeg encoding disabled.\n" "video_out_dxr3: that's ok, you don't need it for mpeg video like DVDs, but\n" "video_out_dxr3: you will not be able to play non-mpeg content using this video out\n" @@ -246,15 +249,18 @@ vo_driver_t *init_video_out_plugin(config_values_t *config, void *visual_gen) printf("video_out_dxr3: cannot read bcs values (%s)\n", strerror(errno)); this->bcs.contrast = config->register_range(config, "dxr3.contrast", - this->bcs.contrast, 100, 900, "Dxr3: contrast control", NULL, NULL, NULL); + this->bcs.contrast, 100, 900, + _("Dxr3: contrast control"), NULL, NULL, NULL); this->bcs.saturation = config->register_range(config, "dxr3.saturation", - this->bcs.saturation, 100, 900, "Dxr3: saturation control", NULL, NULL, NULL); + this->bcs.saturation, 100, 900, + _("Dxr3: saturation control"), NULL, NULL, NULL); this->bcs.brightness = config->register_range(config, "dxr3.brightness", - this->bcs.brightness, 100, 900, "Dxr3: brightness control", NULL, NULL, NULL); - + this->bcs.brightness, 100, 900, + _("Dxr3: brightness control"), NULL, NULL, NULL); + /* overlay or tvout? */ confnum = config->register_enum(config, "dxr3.videoout_mode", 0, videoout_modes, - "Dxr3: videoout mode (tv or overlay)", NULL, NULL, NULL); + _("Dxr3: videoout mode (tv or overlay)"), NULL, NULL, NULL); #if LOG_VID printf("video_out_dxr3: overlaymode = %s\n", videoout_modes[confnum]); #endif @@ -272,11 +278,11 @@ vo_driver_t *init_video_out_plugin(config_values_t *config, void *visual_gen) this->overlay_enabled = 1; this->tv_switchable = 1; confstr = config->register_string(config, "dxr3.keycolor", "0x80a040", - "Dxr3: overlay colorkey value", NULL, NULL, NULL); + _("Dxr3: overlay colorkey value"), NULL, NULL, NULL); sscanf(confstr, "%x", &this->overlay.colorkey); confstr = config->register_string(config, "dxr3.color_interval", "50.0", - "Dxr3: overlay colorkey range", - "A greater value widens the tolerance for the overlay keycolor", NULL, NULL); + _("Dxr3: overlay colorkey range"), + _("A greater value widens the tolerance for the overlay keycolor"), NULL, NULL); sscanf(confstr, "%f", &this->overlay.color_interval); } else { printf("video_out_dxr3: please run autocal, overlay disabled\n"); @@ -287,7 +293,7 @@ vo_driver_t *init_video_out_plugin(config_values_t *config, void *visual_gen) /* init tvmode */ confnum = config->register_enum(config, "dxr3.preferred_tvmode", 3, tv_modes, - "dxr3 preferred tv mode", NULL, NULL, NULL); + _("dxr3 preferred tv mode"), NULL, NULL, NULL); switch (confnum) { case 0: /* ntsc */ this->tv_mode = EM8300_VIDEOMODE_NTSC; |