-#define DEVICE_LONGTEXT N_( \
- "You can select here the framebuffer device that will be used " \
- "for rendering (usually /dev/fb0).")
-
-vlc_module_begin();
- set_shortname( "Framebuffer" );
- set_category( CAT_VIDEO );
- set_subcategory( SUBCAT_VIDEO_VOUT );
- add_file( FB_DEV_VAR, "/dev/fb0", NULL, DEVICE_TEXT, DEVICE_LONGTEXT,
- VLC_FALSE );
- set_description( _("GNU/Linux console framebuffer video output") );
- set_capability( "video output", 30 );
- set_callbacks( Create, Destroy );
-vlc_module_end();
+#define DEVICE_LONGTEXT N_(\
+ "Framebuffer device to use for rendering (usually /dev/fb0).")
+
+#define TTY_TEXT N_("Run fb on current tty.")
+#define TTY_LONGTEXT N_(\
+ "Run framebuffer on current TTY device (default enabled). " \
+ "(disable tty handling with caution)")
+
+#define FB_MODE_TEXT N_("Framebuffer resolution to use.")
+#define FB_MODE_LONGTEXT N_(\
+ "Select the resolution for the framebuffer. Currently it supports " \
+ "the values 0=QCIF 1=CIF 2=NTSC 3=PAL, 4=auto (default 4=auto)")
+
+#define HW_ACCEL_TEXT N_("Framebuffer uses hw acceleration.")
+#define HW_ACCEL_LONGTEXT N_(\
+ "If your framebuffer supports hardware acceleration or does double buffering " \
+ "in hardware then you must disable this option. It then does double buffering " \
+ "in software.")
+
+static int Open (vlc_object_t *);
+static void Close(vlc_object_t *);
+
+vlc_module_begin ()
+ set_shortname("Framebuffer")
+ set_category(CAT_VIDEO)
+ set_subcategory(SUBCAT_VIDEO_VOUT)
+ add_file(FB_DEV_VAR, "/dev/fb0", NULL, DEVICE_TEXT, DEVICE_LONGTEXT,
+ false)
+ add_bool("fb-tty", true, NULL, TTY_TEXT, TTY_LONGTEXT, true)
+ add_obsolete_string("fb-chroma")
+ add_obsolete_string("fb-aspect-ratio")
+ add_integer("fb-mode", 4, NULL, FB_MODE_TEXT, FB_MODE_LONGTEXT,
+ true)
+ add_bool("fb-hw-accel", true, NULL, HW_ACCEL_TEXT, HW_ACCEL_LONGTEXT,
+ true)
+ set_description(N_("GNU/Linux framebuffer video output"))
+ set_capability("vout display", 30)
+ set_callbacks(Open, Close)
+vlc_module_end ()