1
mirror of https://code.videolan.org/videolan/vlc synced 2024-09-04 09:11:33 +02:00
Commit Graph

90 Commits

Author SHA1 Message Date
Sam Hocevar
0beab2c2c8 * ALL: removed libdvdcss from the vlc tree.
* ALL: removed libdvdread from the vlc tree.
  * ./acconfig.h: removed this file.
  * ./plugins/dvd/dummy_dvdcss.c: merged this file into dvd.c.
  * ./AUTHORS: moved a few gentlemen to the libdvdcss AUTHORS file.
2002-04-03 06:23:08 +00:00
Gildas Bazin
22b05cefc6 * Got rid of the DVD_DEVICE macro. We now use the dvd_device config option.
( this creates a small memory leak as we don't free the string obtained
    from config_GetPszVariable, but I think we can live with it for now )

* the SSE plugins are disable on the mingw32 build as they don't work.
  ( because memalign is not implemented on win32, and malloc only aligns
    on an 8 bytes boundary )

* fixed small mistake in INSTALL.win32
2002-04-02 23:27:07 +00:00
Gildas Bazin
f8cad0ac0f * Fixes for the Win32_msvc build 2002-04-01 21:54:26 +00:00
Gildas Bazin
768eb521d0 * Microsof Visual Studio C++ 6 project files.
This is usefull mainly for debugging as the hardware accelerated plugins
    can't be compiled with msvc.

I won't be maintaining this msvc project as I don't have MSVC myself, but
maybe this will encourage people to try to develop for vlc (or maybe just
discourage them ;-)
2002-04-01 21:39:17 +00:00
Christophe Massiot
9e82d79bfd * GNU make detection
* Deleted non-working fullscreen menu item [OS X]
* udp and http no longer modify p_input->psz_name
2002-03-26 23:39:43 +00:00
Sam Hocevar
fde2aaeaf2 * ./configure.in: BeOS compilation fixes.
* ./debian/rules: activated (broken) KDE interface.
  * ./plugins/access/http.c: fixed a segfault.
  * ./plugins/alsa/aout_alsa.c: fixed a segfault.
2002-03-19 05:49:31 +00:00
Jon Lech Johansen
5dcebef960 * MacOS X aout now uses AudioConverter for int->float
* Various MacOS X intf improvements and bug fixes
2002-03-19 03:33:52 +00:00
Sam Hocevar
d4f18c4ead * ./extras/MacOSX_dvdioctl: removed outdated files.
* ./plugins/fx/scope.c: fixed an infinite loop error.
  * ./plugins: fixed segfaults in various demux plugins.
  * ./plugins/sdl/vout_sdl.c: SDL_VIDEODRIVER can be specified from the
    command line; try "--vout sdl:aalib"
2002-03-18 19:14:52 +00:00
Jon Lech Johansen
89be0ac8de * MacOS X vout improvements
* MacOS X intf now returns, allowing vlc to terminate properly
  * Added a new make target: package-macosx
2002-02-18 01:34:44 +00:00
Stéphane Borel
bdeea76418 .Fixed a segfault a dvdread exit (my fault). 2002-01-28 21:31:58 +00:00
Stéphane Borel
8c0d4cd70f Configure and Makefile tweaking for dvdread module.
It is now activated with option --with-dvdread, that takes the same options
as --with-dvdcss.
If you link with libdvdread statically dvdread is compiled builtin ; if you
link dynamically, it is compiled as a plugin.
2002-01-24 18:50:32 +00:00
Stéphane Borel
ef1efb1851 I checked in bad header files yesterday. 2002-01-23 20:19:54 +00:00
Stéphane Borel
1477cfb4c2 -removed some useless printf
-replaced dvdcss_title(,) with dvdcss_seek( ,,DVDCSS_SEEK_KEY )
2002-01-23 03:56:51 +00:00
Stéphane Borel
b08376be72 *Merged hh patch in libdvdcss from main tree.
*Updated local libdvdread, so that it does not depend on libdvdcss
(ala dummy_dvdcss) and modified configure to reflect changes.
2002-01-23 03:15:31 +00:00
Gildas Bazin
ae09661ba6 * Fixed crashes on exit in the directx plugin
* vout_PlacePicture is now accepting picture width=height=0

* Win32 (NT/2000/XP) fix for libdvdcss: first attempt to open the DVD
  device in read/write mode so we can use ioctls. If this fails
  (insufficent privileges) we at least open in read-only mode so the
  libdvdcss title decryption method can be used.
2002-01-21 07:00:21 +00:00
Stéphane Borel
72f00b2280 -Patch of libdvdread to do readv on regular files (dvd copied on hard drive).
Not completed, and little tested yet ; when it is completed, this patch should
be submitted to libdvdread developers.

-Patch of libdvdcss to decrypt vobs when they are not on a block device.
2002-01-15 05:22:21 +00:00
Stéphane Borel
922535189c *With DVDCSS_METHOD=disc or key, the keys are no longer buffered on start.
The title key is still read at each block but it is checked for change
before decryption.
2002-01-14 22:06:57 +00:00
Gildas Bazin
f84729fcb9 * A few fixes for the Win32 build. 2002-01-13 18:13:07 +00:00
Sam Hocevar
53b978f865 * ./BUGS: added a list of known bugs. Please add your findings!
* ./MODULES: added a short description of each module. Maybe we should
    add more details to make this file really useful.
  * ./doc/bugreport-howto.txt: wishful thinking...
  * ./Makefile: added a workaround for the fact that .c files don't depend
    on <videolan/vlc.h>.
  * ./plugins/memcpy/memcpy.c: all memcpy modules are now built from the same
    single file.
  * ./src/interface/main.c: added the --nommx, --no3dnow, --nommxext, --nosse
    and --noaltivec options to vlc.
  * ./configure.in: removed the --disable-mmx option, now useless because
    of the vlc --no* options.
  * ./src/interface/main.c: fixed a crash caused by the memcpy module
    being released too early.
  * ./include/video.h: more vout4 changes, including margin support, more
    FOURCC formats recognized, transparent support of identical or almost
    identical FOURCC formats.
  * ./include/video_output.h: added a vout_Render function to video output
    modules which is to be executed before vout_Display.
  * ./include/common.h: this header is back.
  * ./plugins/chroma/i420_rgb.c: planar YUV 4:2:0 to packed RGB conversion
    functions, mostly taken from vout3's yuv functions, but heavily modified
    to use FAST_MEMCPY and to handle image dimensions which are not multiples
    of 16. Not all functions have been written yet, though.
  * ./plugins/chroma/i420_yuy2.c: planar YUV 4:2:0 to packed YUV conversion
    functions, various targets such as 4:2:2 YUYV, YVYU, UYVY, or 2:1:1 YUYV,
    with accelerated MMX versions.
  * ./plugins/chroma/i422_yuy2.c: same as i420_yuy2.c but takes planar YUV
    4:2:2 pictures in input. With accelerated MMX versions as well. This plugin
    makes it possible to display 4:2:2 files on most video cards without the
    quality loss of 4:2:0 downsampling.
  * ./plugins/filter/*: thanks to the vout_Render function, all filters now
    output their data perfectly in sync.
  * ./plugins/dvdread/Makefile: fix to prevent unnecessary target rebuilds.
  * ./plugins/sdl/vout_sdl.c: support for YV12, UYVY, YUY2 and YVYU overlays.
  * ./plugins/x11/xcommon.c: support for I420, YV12, YUY2 and Y211 overlays.
2002-01-04 14:01:35 +00:00
Stéphane Borel
36e88eb44a *Some fixes for dvdread plugin.
It compiles but doesn't work yet.
2001-12-30 22:10:26 +00:00
Sam Hocevar
cc0f0bb6fd Some heavy changes today:
* Removed duplicate function checks from configure.in.
  * Added extra magic to Makefile.modules so that the module Makefiles
    are now ridiculously simple. And I mean *simple*. Check it! This will
    make a possible switch to full autoconf/automake a lot easier.
  * Added the vlc version name to the plugin symbols, to be sure we only load
    plugins with the same version number. A nasty consequence is that you
    need to rebuild your tree after midnight if you are using a CVS tree :-)
  * Got rid of modules_export.h by #defining exported functions in the same
    header as their prototype.
  * Added modules_inner.h and other commonly used .h files to common.h so
    there are less and less files to include, and renamed common.h to
    <videolan/vlc.h>.
  * First modifications to the module handling system towards my ultimate
    goal to get rid of the *_Probe functions. Got rid of TestMethod and
    TestCPU, as well as src/misc/tests.c.
  * Wrote the chroma plugin handling functions. No YUV functions have been
    ported yet because it'ls a lot of work, but the core system works, I
    tried it with a naive yv12->rgb16 plugin (which will disappear when the
    real functions are ready).
  * Made a lot of functions in dvd_summary.c one-liners to avoid wasting
    too many output lines.
  * Fixed a segfault in input_dvd.c:DVDInit.
  * Added a fixfiles.sh script in plugins/gtk to be run after Glade has
    generated its C files.
  * Did some work on the KDE interface to make it suck a bit less. It still
    segfaults, but at least it runs and it looks less ugly.
  * RGB SDL rendering works again, though in 16bpp only.
  * Made plugins/vcd/linux_cdrom_tools.c independent of any vlc structure
    so that it'll be easily put in a library. Maybe libdvdcss?
  * Fixed VCD date display.
  * Merged vout_xvideo.c, vout_x11.c and vout_common.c into xcommon.c.
  * Wrote non-Shm XVideo output.
  * Made X11 output work again. Still pretty unstable, only works for 16bpp.
  * Additional french translation in po/fr.po. Any taker for the rest?
  * Fixed a segfault in video_output.c when the allocated pictures were
    not direct buffers.
  * If $DISPLAY isn't set, don't try to run the Gtk+ interface.
  * Replaced 48x48 .xpm images with 32x32 ones to conform to Debian policy
    (Closes Debian bug #126939).
  * Removed the automatic ./configure launch when running `make all' for
    the first time.

Stuff currently more broken than it ought to be:
  * The wall filter. Being fixed.
  * x11 and sdl plugins for depth != 16bpp.
  * Software YUV.
  * gvlc, gnome-vlc, kvlc shortcuts. Use --intf instead for the moment.
2001-12-30 07:09:56 +00:00
Sam Hocevar
00201762cc * Fixed Win32 build. You still need --disable-directx --disable-nls though. 2001-12-18 02:44:34 +00:00
Sam Hocevar
22899aa9e8 libdvdcss changes:
* Support for REPORT_TITLE_KEY and RPC commands by H�kan Hjort
    <d95hjort@dtek.chalmers.se>.

vlc changes:
  * Minor coding style fixes (please avoid tabs).
2001-12-16 18:00:18 +00:00
Sam Hocevar
279f805ab1 * Additional fixes for OSes with no gettext (thanks to ej0).
* Fixed a potential BeOS linking issue.
  * Fixed a minor bug in input.c.
2001-12-12 02:13:50 +00:00
Sam Hocevar
56afe807c2 * Added vlc-arts to the debian package generation.
* HP-UX port of the DVD ioctls courtesy of David Sieb�rger.
2001-12-11 14:43:38 +00:00
Sam Hocevar
2be071915d * COMPLETE CVS BREAKAGE !! The MAIN branch is going to be a playground
for my nevrotic and destructive pulsions during the next few hours!

  * If you want to test vlc, please use the v0_2_92_branch branch.

  * Stuff currently working:
     - direct to YUV buffer decoding
     - non-ugly subtitle blending
     - XVideo and SDL video output

  * Stuff currently utterly broken:
     - aspect ratio
     - software rendering (ie, all other video output plugins)

  * Additional misc changes:
     - Renamed spu_dec to spudec and mad_adec to mad to stay coherent with
       other plugins. Also, renamed mpeg to mpeg_system.
     - Added jobi to the AUTHORS file.
     - Factored code common to vout_x11.c and vout_xvideo.c.
2001-12-09 17:01:37 +00:00
Christophe Massiot
e6912f0ca3 Bumped up revision number to 0.2.92-dev and 1.0.1-dev. 2001-12-07 19:22:46 +00:00
Christophe Massiot
cb72f8949a Fixed a potential packet corruption in the DVD input (I suspect this
might be the cause of the OS X problem - please confirm).
2001-11-27 10:18:33 +00:00
Florian G. Pflug
a3d6b5caa1 *) changed includes from
#include <dvdread/...> to
    #include "..."

 *) Darwin doesn't have off64_t, stat64, lseek64. Added
    #ifdef SYS_DARWIN
    #define off64_t off_t
    ....
    #endif
    to dvdread.c

 *) Fixed stupid bug in vout_macos.x. On startup, it would
    try to free a non-existant QuickTime Sequence. This could be
    the reasons for (some?) of the crashes at startup.
2001-11-26 22:28:05 +00:00
Christophe Massiot
3a824f8159 Reworked Keith Packard's raw device patch. The name of the raw device
is in the environment variable DVDCSS_RAW_DEVICE.

Untested (as usual :-). Feedback welcome.
2001-11-26 15:56:36 +00:00
Gildas Bazin
b618828621 * Big clean-up to allow compiling every module as plugins.
* Added bytes_swap.h to provide ntoh() and htol() on Win32. With this
     change we don't have to link winsock2 with every plugin anymore. This
     should also give us a slight speed increase.
 * Added #define WIN32_LEAN_AND_MEAN in threads.h to speed-up compilation
     on Win32.
 * Modified ac_downmix_3dn and sse so they compile with the latest gcc for
     Win32.

(PS: the dvdread plugin doesn't compile yet on Win32)
2001-11-25 22:52:21 +00:00
Stéphane Borel
b8ff945d3a Support for libdvdread.
Libdvdread files are in extras/libdvdread. They have not been changed from
those of libdvdread 0.9.2. The changes are in the subdirectory videolan.
They basically consist of a new function in the API that does a readv()
instead fo a read().

The library is statically linked with libdvdcss from extras/libdvdcss, and
the whole is statically linked with the plugin dvdread. Dvdread can only be
compiled as a builtin module for the time being, I think (which means I
haven't tried to compile it as a plugin).

Basically, input_dvdread.c is a copy and paste from input_dvd.c with a few
changes to use libdvdread calls. It is still in very alpha stage, but it
should offer the same features as the current DVD input.

It can be called with either the syntax: "dvdread:/dev/dvd"
or "--input dvdread /dev/dvd". The command line switches (-t, -T, -c, -u)
should work too.
2001-11-25 05:04:38 +00:00
Stéphane Borel
063772292e -fixed a bug in libdvdcss: the key wasn't searched when it had to.
dvdcss_seek : searches a new title key when
	-the flag is DVDCSS_SEEK_KEY,
	-the flag is DVDCSS_SEEK_MPEG, only if method is not "title".

dvdcss_seek with DVDCSS_SEEK_KEY flags does actually the same things as
dvdcss_title (which might eventually be removed).

Thus, the flag DVDCSS_SEEK_KEY (formerly DVDCSS_SEEK_INI) could not be
removed (sorry sam, I've mistaken you by forgetting that)
2001-11-19 15:13:11 +00:00
Christophe Massiot
fc162d4f6a Bumped up version number to 1.0.0 :p. 2001-11-13 11:05:49 +00:00
Sam Hocevar
99722c931a * Damn recursion! Fixed an infinite loop in libdvdcss. 2001-11-13 02:03:46 +00:00
Sam Hocevar
0bb015ee9d * Got rid of DVDCSS_SEEK_INI in libdvdcss. 2001-11-13 01:25:05 +00:00
Sam Hocevar
a264d03210 * Made everything ready for a vlc-0.2.91 / libdvdcss-1.0.0 release.
* Updated ChangeLog and ChangeLog.libdvdcss.
  * Increased vlcs response message length.
  * Removed the i_flags argument to dvdcss_open. Everything is done through
    environment variables now.
2001-11-12 20:16:33 +00:00
Jon Lech Johansen
7c4ea8d0a8 * Fixed a buffer overflow in CSSAuth() 2001-11-11 04:51:10 +00:00
Florian G. Pflug
015b2567df Added a new drawer to the control window to support:
1) Title / Chapter selection
2) Subtitle selection
3) Audiochannel/Language selection
4) Angle selection
2001-11-05 21:24:40 +00:00
Christophe Massiot
e160ea9766 * libdvdcss port to OpenBSD. 2001-11-02 13:30:38 +00:00
Florian G. Pflug
b6fcfff5ba Reimported Intf_Controller, connected "File/Open/File" to Intf_Controller::file:Open. 2001-11-01 21:58:16 +00:00
Christophe Massiot
96e3c332a2 Fixed mistakes in my previous commit. 2001-10-30 23:45:08 +00:00
Christophe Massiot
85762c9e48 New interface for MacOS X, courtesy of Florian G. Pflug. 2001-10-30 10:48:14 +00:00
Eugenio Jarosiewicz
e31174ddfe * Fixed undefined KEY_SIZE compile bug mentioned by Dave Thorup
* Fixed CSS ioctl for Darwin/OSX - still might need tweaking of 'dataLength' fields
* Added ReadTitleKey ioctl for Darwin/OSX
* Minor cleanup
2001-10-18 23:13:46 +00:00
Stéphane Borel
7a174310a0 -defining TRACE_DVDCSS in config.h displays libdvdcss debug message.
-libdvdcss error messages are reported in input_dvd.c.
-vlc verbosity also enables more error messages from libdvdcss.
2001-10-16 16:51:28 +00:00
Stéphane Borel
9a3c67ba11 Removed unnecessary headers added by error.
It should fix libdvdcss compilation issue on non-linux platforms.
2001-10-16 10:46:24 +00:00
Stéphane Borel
beda27837f Use of an environment variable to choose libdvdcss method. 2001-10-14 03:26:20 +00:00
Stéphane Borel
88a154951c New features for libdvdcss: we have three ways now to decode a title key.
1) Crack the title key (the method that was here before). The only change
here is that we search the key for the exact chapter we are seeking with
DVDSetArea (in case the key has changed within a title). It is maybe not a
good idea.

2) Crack the disc key, which allows us to decode instantly all title keys.
I've used an algorithm from Frank Stevenson ; it eats much memory (64MB),
and takes about 15 s at launch time.

3) Decode the disc key with player keys (libcss method). However, you need
licensed player keys at build time for that to work.

To choose between libdvdcss methods, a command line options is supplied:

        vlc --dvdcss <method> where method is one of title, disc, key.

Note that all these changes only work with linux now, since we have to add a
specific ioctl to read title key. I hope that I haven't broken too many things.
2001-10-13 15:34:21 +00:00
Christophe Massiot
bfd9535ddd * Fixed bugs in RPM spec files ;
* Fixed a bug in configure where ix86 machines were improperly detected.
2001-10-11 11:28:42 +00:00
Christophe Massiot
62ba06e09f * Borrowed Mandrakesoft's vlc.spec and libdvdcss.spec ;
* New configure option --with-tuning=[arch], extending --enable-pentiumpro ;
for Pentium, use --with-tuning=pentium, for PowerPC 604 use --with-tuning=604,
and so on.
2001-10-02 13:34:56 +00:00