1
mirror of https://code.videolan.org/videolan/vlc synced 2024-09-12 13:44:56 +02:00
Commit Graph

923 Commits

Author SHA1 Message Date
Sam Hocevar
aa935693f8 * src/stream_output/announce.c:
+ Coding style fixes.
    + Use memcpy() instead of for() loops.
2003-07-17 14:10:08 +00:00
Sigmund Augdal Helberg
b9d25717d7 moved Doxyfile to doc/ to make sam happy. Changed Doxyfile so the generated
documentation does not include information on which headers each file
includes, since this information isn't correct.

Clarified and doxygenized some of the documentation on subpictures
2003-07-15 18:12:05 +00:00
Sigmund Augdal Helberg
14b3f0cfa1 All: My shot at improving subtitle rendering in vlc. Now each vout uses a "text renderer" module to render text on the video when needed. I decieded to make this a module type, because other api's (win32 and macosx) is supposed to do better than freetype under some circumstances.
include/video_output.h: added some members needed by text renderer modules
src/video_output/video_output.c: load and unload text renderer module when needed
src/video_output/video_text.c: implemented some functions to show text on the video
include/osd.h: exported the functions to show text
modules/misc/Modules.am, module/misc/freetype.c: new text renderer module, largly based on the old osdtext module.
modules/video_filter/Modules.am, modules/video_filter/osd_text.c: removed the osdtext module
configure.ac: changes "osdtext" to "freetype" some places
modules/codec/spudec/*: when iconv is available, use it to convert textual subtitles from the encoding given by --sub-encoding to utf8. Use new code to render subtitles
modules/control/lirc/lirc.c: use new code to give feedback on buttons pressed. untested.
modules/demux/util/sub.c: remove all traces of the ugly old osdtext module
modules/misc/dummy/*: added a "text renderer" submodule in the dummy module
src/misc/modules.c: included osd.h as it seems to be needed to export symbols


final notes: you need to give a proper value to --freetype-font. This should be the path to a font file freetype2 can handle (almost any format afaik) with a unicode translation table in it. Windows ttf files will do. In linux at least openoffice distributes some fonts that work. I think macosx and beos also has useable fonts.
2003-07-14 21:32:59 +00:00
Sigmund Augdal Helberg
371148d3db toolbox: made a --add-include that can be used by doxygen to get proper
includes in the .h files, since they are parsed out of context by
	 doxygen
Doxyfile: misc fixes, use ./toolbox --add-include as filter for sources.
include/vlc_common.h: doxygenized VLC_COMMON_MEMBERS

With these changes, and a slightly patched version of doxygen (which you can
get here: http://www.idi.ntnu.no/~sigmunau/doxygen-vlcpatched.tgz ) you should
be able to get some useful documentation out of the vlc sources.
2003-07-14 20:36:55 +00:00
Gildas Bazin
b6ba072e82 * include/httpd.h: compilation fix.
* modules/control/http.c: win32 fixes.
2003-07-11 09:50:10 +00:00
Laurent Aimar
a362f5c383 * http: rework of the http interface.
There is no more hardcoded html page. The interface recursively parse a
directory, exporting all  files. All .htm/.html are  parsed, and special
macro are  used. I will commit  somes samples pages in  share/http and I
hope documentations.

 TODO: - (re)implement access control in httpd (but in a useable way).
       - clean login/password management. (for now .access protects
       a whole directory).
       - doc ;)
2003-07-10 22:24:09 +00:00
Clément Stenac
b861cc00ff * sap.c: Improved IPv6 multicast detection
* announce.c:
	- coding style fixes
	- fixed port detection in IPv6 addresses (with ':' inside)
2003-07-05 15:00:28 +00:00
Sam Hocevar
9f3b1f1329 * configure.ac: Added a compiler check for __attribute__((__packed__)). 2003-07-01 17:14:58 +00:00
Sam Hocevar
1122ff8f37 * include/error.h: Renamed this file to include/vlc_error.h to avoid name
conflicts. Most headers in that directory should probably be renamed to
    their vlc_ equivalent.
2003-07-01 12:56:47 +00:00
Clément Stenac
8f9ee6fd66 * modules/demux/m3u.c :
Added name support. Only implemented for M3U and B4S playlists at the moment

* src/playlist/playlist.c
  include/vlc_playlist.h   : Added the playlist_AddName function to add an item with its name without filling an item structure.
2003-06-27 10:31:02 +00:00
Sam Hocevar
51c3c7d717 * include/video.h: renamed this file to vlc_video.h to avoid name collisions
with a couple of modules.
2003-06-26 12:19:59 +00:00
Clément Stenac
82aeb6d02a * ./include/announce.h
./src/stream_output/announce.c  : use send instead of sendto.

* ./modules/misc/sap.c : use a define
2003-06-25 21:03:16 +00:00
Laurent Aimar
af0002cfe8 * httpd: fix a memory and thread leak. 2003-06-25 15:50:52 +00:00
Sam Hocevar
e01eb15e2a * include/interface.h: renamed this file to vlc_interface.h to avoid name
collisions with a couple of plugins.
2003-06-24 13:33:49 +00:00
Clément Stenac
0c0ca771b8 * Stream output now support IPv6 SAP announces
* Code cleanup in SAP
2003-06-23 11:41:26 +00:00
Gildas Bazin
ea85d81fb0 * modules/gui/wxwindows/streamout.cpp: disabled mp4 muxer.
* include/interface.h: updated comment.
2003-06-22 15:43:54 +00:00
Gildas Bazin
d875f9d502 * modules/gui/wxwindows/preferences.cpp: fixed the preferences to also show the config options of sub-modules.
* include/modules_inner.h: removed unneeded initialization.
2003-06-16 21:55:58 +00:00
Eric Petit
fc1e200bc2 include/vlc_threads.h: more BeOS' priorities tuning. 2003-06-14 00:49:58 +00:00
Clément Stenac
08b246eacb Code cleanup 2003-06-12 11:37:48 +00:00
Christophe Massiot
c302e989b4 * include/video.h include/video_output.h src/video_output/vout_pictures.c:
In vout_CreatePicture() replace i_repeat_first_field by the more useful
  i_nb_fields
* modules/gui/macosx/intf.m: Fixed a warning
* modules/codec/libmpeg2.c include/vout_synchro.h src/video_output/vout_synchro.c:
  Re-added support for slice-I streams, plus miscellaneous tweakings
2003-06-09 00:33:34 +00:00
Gildas Bazin
6350ac81e5 * include/vlc_common.h: fixed the I64C() macro for mingw.
* src/misc/mtime.c: implemented the heuristic described in http://www.cs.man.ac.uk/fellowsd-bin/TIP/7.html to test whether the win32 performance counter is reliable. That should fix the clock problems that a few users reported on win32.
2003-06-05 11:52:19 +00:00
Eric Petit
37d2304ff9 * src/input/input_ext-intf.c : added an input_SetRate function; it is
quite more convenient than, e.g, calling input_SetStatus( STATUS_FASTER )
   two times if you want to switch from 1:1 to 4:1 from the interface.
   Old functions still work.
 * modules/gui/beos/VlcWrapper.cpp : use it
2003-05-31 12:24:39 +00:00
Derk-Jan Hartman
48b748067c * removed vlc_wraptext 2003-05-27 01:48:50 +00:00
Clément Stenac
2db764f9f8 * The VLC-integrated SAP server now sends compliant packets. They can
only be viewed with the CVS version of VLC
2003-05-26 13:45:52 +00:00
Christophe Massiot
567eba1726 * We now use UTF-8 internally under Mac OS X. This requires a libiconv-
enabled version of gettext. (patch courtesy of the DJ)
2003-05-25 17:27:13 +00:00
Gildas Bazin
66815e2eda * src/misc/variables.c, include/variables.h: first pass at object var inheritance.
* rc/video_output/video_output.c, modules/video_filter/deinterlace/deinterlace.c: fixes to the deinterlace object var.
2003-05-24 23:40:11 +00:00
Derk-Jan Hartman
d90e04a702 * include/main.h
src/libvlc.c: Added a quicktime_lock on SYS_DARWIN
* ALL: QT on OSX is not threadsafe in certain areas. i have found the proces
  of identifying the right Codec to use for decoding to be one of these areas.
  So when we do this, only one thread at a time can use QT.
  Watching QT trailers is doable now, as soon as ffmpeg fix their altivec optimizations again ;)
2003-05-21 15:40:03 +00:00
Clément Stenac
b8443a2c70 All: Support for SAP advertising in stream output
add sap, or sap="Name" in the stream output options
2003-05-20 16:20:33 +00:00
Gildas Bazin
8b62cc3c02 * include/input_ext-intf.h: forgot this file in my last commit.
* src/input/input_programs.c: prev/next-chapter and prev/next-title navigation variables are created only when necessary.
2003-05-17 22:00:00 +00:00
Gildas Bazin
cca686f84e * include/vlc_common.h: small change to shut-up some memory checkers. 2003-05-12 19:11:53 +00:00
Gildas Bazin
0e7b380a8e * modules/gui/skins/*: got rid of wxdialogs.h, the skins plugin is now sharing wxwindows.h with the wxwindows plugin.
* modules/video_output/directx/events.c: fixed non-initialized variable.
* modules/gui/wxwindows/*: misc improvements to the playlist window (added an "Open MRL" menu as well as menus to load and save a playlist, we also make use of the "intf-change" playlist object variable now).
* src/playlist/playlist.c: the playlist file is opened in text mode, no win32 eol hack is needed.
* src/misc/configuration.c, include/configuration.h: new config_ResetAll() function to reset all config options to their original values (you still need to config_SaveConfigFile()).
* modules/gui/wxwindows/preferences.cpp: new "Reset All" button in the preferences panel.
2003-05-12 17:33:20 +00:00
Gildas Bazin
95b4a56a03 * ALL: changed the prototype of input_AddES() to include enough information so we can build an "video-es", "audio-es" and "spu-es" object variable. These variables can be used by the interfaces to navigate between the elementary streams.
* modules/gui/wxwindows/menus.cpp: use the "foo-es" object variables.
2003-05-05 22:23:42 +00:00
Gildas Bazin
cf3c9805ef * ALL: removed the old channels server stuff (was deprecated). 2003-05-05 16:09:41 +00:00
Sigmund Augdal Helberg
8d98b9f51b implemented VLC_VAR_TIME using two ints 2003-05-05 15:21:28 +00:00
Gildas Bazin
30336bba3f * src/misc/variables.c, ALL: improvements to the object variables api.
- added another argument to var_Change().
   - added a VLC_VAR_SETTEXT and VLC_VAR_GETTEXT method to var_Change()
     that are used to set/get a friendly name to an object variable.
   - added VLC_VAR_CHOICESCOUNT to var_Change() to be able to retrieve
     the number of availabel choices without having to get their value
     as well.
   - VLC_VAR_ADDCHOICE uses the extra var_Change() argument to assign
     a friendly name to the choice value.
   - VLC_VAR_GETCHOICES retrieves the choices values and their friendly
     names.

* modules/gui/wxwindows/*: first step in implementing menu auto-generation in the wxWindows interface.
2003-05-04 22:42:18 +00:00
Laurent Aimar
1a92321965 * vlc_config.h: increased AOUT_PTS_TOLERANCE to 40ms, it avoids a lot of
resampling with some files while keeping good synchronisation.
 Anybody has an idea of the maximum desynchronisation between audio and
video that still be imperceptible ?
2003-04-29 20:29:19 +00:00
Gildas Bazin
c556378ff5 * src/video_output/vout_pictures.c, include/video_output.h: added a vout_InitPicture() function that initializes a picture_t structure based on the given chroma and sizes.
* modules/encoder/ffmpeg/video.c: misc improvements. Should also be able to handle more input chroma format.
* modules/codec/rawvideo.c: a few fixes.
* modules/access/v4l/v4l.c: misc improvments and cleanup. Should be able to handle more source chroma formats. On the fly video encoding is also working perfectly now.
2003-04-27 23:16:35 +00:00
Gildas Bazin
c708c8fe43 * modules/misc/dummy/input.c, modules/access/file.c, include/vlc_common.h:
msvc compilation fixes.
2003-04-16 11:47:08 +00:00
Christophe Massiot
dd521c469b * Implementation of a frame-dropping algorithm for the libmpeg2 plug-in
(incomplete).
2003-04-14 22:22:32 +00:00
Laurent Aimar
4dec9682f6 * all: new sout scheme. Now a chain of module are created that can
modify/apply on all streams, --sout has the same behavour expect when
starting with a '#'.

 With a starting '#' you can specify a chain of modules, it's still
unstable but a lot more powerfull.
 You have access to duplicate(that duplicate all stream), transcode
(using only ffmpeg), standard/std and es (that apply muxers and access),
and display. You could chain them with ':' and specify options with
{option1=value,option2=value[,...]}.

ex: * to stream and see the stream to udp/ts:ip
 --sout '#duplicate{dst=display,dst=std{access=udp,mux=ts,url=ip}}'
    * to transcode,see and stream
 --sout '#transcode{acodec=mpga}:duplicate{dst=display,dst=std{access=udp,mux=ts,url=ip}}'

 Without a starting '#', the url is converted into '#std{acces=,mux=,url}'
Test and report bugs :)
2003-04-13 20:00:21 +00:00
Gildas Bazin
17a31fd892 * include/configuration.h: added the add_directory() config macro.
* modules/gui/wxwindows/preferences.cpp: support for add_string_from_list().
* ALL: changed some add_string() config options to add_file().
2003-03-30 14:24:20 +00:00
Gildas Bazin
7587d7efe4 * configure.ac.in: removed the -fno-exceptions gcc option from the compilation of the skins plugin as it might be needed after all.
* modules/demux/m3u.c: upped the priority of the m3u demux as some m3u files were mistaken for ts files.
* include/configuration.h: added a CONFIG_ITEM_DIRECTORY config type.
* modules/gui/wxwindows/*: the preferences dialog should be fully useable now.
2003-03-30 11:43:38 +00:00
Gildas Bazin
922a7a8e93 * modules/audio_output/waveout.c: compilation fix for --disable-plugins build.
* src/video_output/*, include/video.h: added a pf_lock/unlock fonction
   pointer that's used to lock the memory of a picture in vout_RenderPicture
   when required by the video output plugin.
* modules/video_output/directx/*: implemented pf_lock/unlock. That will fix
   the crash when pressing ctrl+alt+del.
2003-03-28 17:02:25 +00:00
Gildas Bazin
050ec31db2 * src/video_output/video_output.c, include/video_output.h:
take into account the caching delay when dropping frames that are too
   far into the future.
2003-03-24 23:50:46 +00:00
Gildas Bazin
607b74b2a1 * modules/access/*: pf_read() in access modules is now blocking. We still
check regularly for p_input->b_die though. Now the demuxers can safely
   assume that pf_read() == 0 means EOF.
* ALL: got rid of the p_input->b_connected flag.
* src/input/input_ext-plugins.c, src/input/input.c: fixed the infinite loop
   of "decoder stuck" messages that sometimes happened.
* src/interface/intf_eject.c, modules/misc/network/ipv4.c: fixed compilation
   warnings.
2003-03-24 17:15:30 +00:00
Sigmund Augdal Helberg
b5d99c6455 modules/video_filter/osd_text.c: A video filter that uses freetpye2 to
render text on the video
include/osd.h: some constants useful when interfacing with the osd module
configure.ac.in: check for freetype2, enabled the osdtext module by default
Makefile.am: added osd.h, please check that this is correct
lirc.c: modified to provide feedback when buttons are pressed.

Look at the Feedback() function in lirc.c to see how this module can be used
2003-03-23 16:38:40 +00:00
Sam Hocevar
2b013d353a * ./modules/misc/gtk_main.c, ./modules/gui/gtk/gtk.c,
./modules/gui/gtk/gnome.c, ./modules/gui/familiar/familiar.c: added a
    terminating NULL pointer in the fake argv values we pass to gtk_init().
  * ./modules/misc/qte_main.cpp, ./modules/misc/gtk_main.c: these plugins now
    have the "gui-helper" capability.
  * ./modules/misc/gtk_main.c: paved the way for Gtk2.
2003-03-17 18:02:11 +00:00
Derk-Jan Hartman
7314de69eb * src/playlist/playlist.c:
- added playlist_Move to move an item in our playlist before the position
    of a previous item (or end) of our playlist. Keeps index at it's current
    item.
* modules/gui/macosx/playlist.?:
  - Now a reorderable playlist. Thanks to Andrew Stone for example code.
    This fixes #349 (Finally ;)
  - True alternating colors in the playlistview. Thanks to Apple Computer
    for the example code.
2003-03-17 17:10:21 +00:00
Laurent Aimar
f0789fcd8a * httpd: begin to support get/post method (look at admin.html ;) 2003-03-15 00:09:31 +00:00
Gildas Bazin
1171979d73 * ALL: experimental code for stream (dvd) navigation through object variables. 2003-03-11 23:56:54 +00:00