Commit Graph

66 Commits

Author SHA1 Message Date
Steve Lhomme 9684ec3a6e vlc_fourcc: remove full range chromas
This is not where the range information should be stored.
2023-10-09 17:40:44 +00:00
Alexandre Janniaux 6b7a57f984 modules: fix typos
Typos found and reworked from codespell.
2022-01-08 15:19:32 +00:00
Lyndon Brown 6f68f89498 plugins: purge use of set_category()
see e967f81f6a.

note, this does **not** affect cat-based module selection items
(of which there are just three in use by the core), since that
mechanism uses subcats not cats.
2021-12-20 09:45:01 +00:00
Steve Lhomme 94e23d51bb filters: use macro to set the typed Open callback for generic video filters 2020-10-13 09:21:31 +02:00
Steve Lhomme f0f5064812 video_filters: use a typed close callback in the operations structure 2020-10-12 15:47:10 +02:00
Steve Lhomme fdd67eb363 motiondetect: release the kept previous picture when the filter is flushed
Also copy the metadata from the source to the output
2020-10-12 15:46:27 +02:00
Alexandre Janniaux a353cdbc12 filters: add an operations structure to set the callbacks
Generate a simple operations structure for filters generating their own filter
callback via VIDEO_FILTER_WRAPPER().

The filter chain sets a mouse handler on video filters that don't have one,
just as before, by using a local version of the ops structure of the filter and
adding the local mouse callback.

Co-authored-by: Steve Lhomme <robux4@ycbcr.xyz>
2020-10-08 10:27:51 +02:00
Steve Lhomme 5363279805 remove the $Id$ in the source code 2019-01-17 12:21:18 +01:00
Romain Vimont ff2901aff3 core: remove global *_sys_t typedefs
Do not declare *_sys_t typedefs globally in vlc_common.h. Instead,
declare them locally in each module that provides a definition.

This paves the way to move C++ definitions into anonymous namespaces in
order to respect C++ ODR.

The picture_resource_t and sout_stream_id_sys_t typedefs will be handled
separately, since they require specific additional changes.

See #18033

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2018-04-30 14:20:50 +02:00
Thomas Guillem e5f4ea4c68 motiondetect: Hold picture instead of copying it 2018-03-09 15:34:47 +01:00
Rémi Denis-Courmont c06e3ed9d9 Remove most nested headers from <vlc_filter.h> 2016-11-25 23:07:43 +02:00
Rémi Denis-Courmont 0c3f29264f video_filters: drop version number from capability
(This fixes the transcode module video filter option in preferences, as
the two was forgotten.)
2016-08-29 17:20:15 +03:00
Tristan Matthews 3181fcc5ea video_filter: motiondetect: use C99 loop declarations 2015-08-31 14:10:38 -04:00
Jean-Baptiste Kempf fef270581f LGPL
Re-license almost all the playback modules to LGPLv2.1+ with
authorization from their respective contributors (230+)

This includes:
 - access, codec, packetizers, demux
 - audio filters, audio mixers, audio output
 - video filters, video chroma, video output
 - text renderers
 - XML parser
 - ARM NEON and SSE2 optimisations (mostly for chromas and filters)

Some modules are not concerned:
 - BDA and DShow access modules because Manol Manolov is AWOL
 - Real RTSP, because it is derived from Xine
 - x264 and t140 because they are encoders only
 - DLL Loader, because it is derived from MPlayer
 - DTS packetizer, because Jon Lech Johansen is AWOL
 - Shine and WMAfixed, because they are derived from Rockbox
 - Real demuxer, as it is derived from MPlayer and Wang Bo is AWOL
 - MPC demuxer, as Yavor Doganov is AWOL
 - Tivo demuxer, because it is derived from an MPlayer fork
 - Playlist demuxer, (WPL and ZPL parts missing), because suheaven is AWOL
 - iOS audio output and video display, because author refuses the license change
 - Equalizer and compressor, because Ronald Wright is AWOL
 - Mono, Headphone and Dolby, because author refuses the license change
 - hqdn3d and yadif, because they are from MPlayer/libavfilter
 - remoteosd, because it derives from RealVNC code
 - MMX optimisations, because Ollie Lho, from SiS, is AWOL
 - Rotate, because it depends on GPL motion

Nota Bene:
 - Some modules depend on GPL-only libraries, a LGPL module does not mean
   that the resulting binary module will be LGPL.
   Libraries affected would include liba52, libdvdcss, libdvdnav, libdvdread,
   faad2, libdca, libmad, libmpeg2, libpostproc, SRC, sid, zvbi and probably others.
2012-11-13 16:25:56 +01:00
Laurent Aimar ea6be11809 Factorized the Filter() function of motiondetect. 2012-01-07 00:58:40 +01:00
Laurent Aimar 76821fb12d Fixed motiondetect packed YUV filter function.
A filter shall not return an input buffer.
It closes #5748.
2012-01-07 00:35:15 +01:00
Pere Orga 9abcaacf83 fix filename self-references
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
2011-12-15 17:09:31 +02:00
Laurent Aimar eb07c34112 Fixed colorthres/erase/extract/gaussianblur/gradient/motionblur/motiondetect/noise/psychedelic/sharpen filters.
input and output picture pitches may not be equal (corruptions or segfaults).
2010-08-11 22:09:58 +02:00
Antoine Cellerier c1848b08af Use %4.4s instead of %4s for fourccs cast to char *. 2010-01-04 23:40:06 +01:00
Laurent Aimar 7d0e62b872 Used picture_NewFromFormat when appropriate. 2009-12-16 22:00:46 +01:00
Rémi Duraffort 51cb4767dc Global headers. 2009-06-30 08:44:04 +02:00
Laurent Aimar 036a6a2e9e Do not uselessly include vlc_vout.h in filters. 2009-05-16 20:22:41 +02:00
Laurent Aimar 724461bdf2 Used VLC_CODEC_* and vlc_fourcc_GetCodec when suitable.
There will be some regressions, I used automatic sed replacement with manual
checks but there was a lot to change.
 It's only the first pass.
2009-05-13 21:18:19 +02:00
Jean-Baptiste Kempf 55bdfd25cc MotionDetect: check for NULLITY at the right place.
Fix CID 234
2008-10-30 18:33:40 +01:00
Rémi Denis-Courmont 0549228196 Remove most stray semi-colons in module descriptions
Those multi-lines are still to be done (it's going to be fun...)
See also 5af4cc854b.
2008-10-29 22:14:26 +02:00
Derk-Jan Hartman 7fa8ead1a2 motiondetect: fix categorization of this module in the advanced prefs. 2008-08-03 03:50:00 +02:00
Laurent Aimar 62c5710135 Fixed motiondetect segfaults. 2008-07-20 12:53:35 +02:00
Laurent Aimar 4b00ff6ec8 Use filter helpers. 2008-07-20 00:53:21 +02:00
Laurent Aimar 5d3c921b10 Use picture helpers (Yield,Release,CopyProperties). 2008-07-18 21:18:36 +02:00
Rémi Duraffort 42bb236284 Remove unnedeeded msg_Error. 2008-06-22 21:41:15 +02:00
Antoine Cellerier 8235fe3222 YUV 422 Packed motion detect (still kind of broken). 2008-06-04 22:05:08 +02:00
Rémi Denis-Courmont 3561b9b28f Plugins: include vlc_common.h directly instead of vlc/vlc.h 2008-05-31 22:10:30 +03:00
Antoine Cellerier b2f6e68bff Validate input chromas here too. Currently only planar yuv is supported
but packed should be easy to implement.
2008-05-31 17:19:41 +02:00
Rémi Denis-Courmont 5e15258c9e A lot of missing const in options lists 2008-05-27 22:16:52 +03:00
Rémi Denis-Courmont 13ae40b0ef Use gettext_noop() consistently 2008-05-21 20:19:25 +03:00
Rémi Denis-Courmont 27d483e9ef Include vlc_plugin.h as needed 2008-05-08 19:20:21 +03:00
Rémi Denis-Courmont 6da90a1716 vlc_mutex_init: remove unused paramter 2008-05-04 14:14:46 +03:00
Rémi Denis-Courmont 5b55ee1bb0 Use vlc_memset/vlc_memcpy 2008-05-03 17:17:30 +03:00
Jean-Baptiste Kempf d8e694951c Don't reinvent max/min for the nth time. 2008-03-08 02:20:00 -08:00
Rémi Denis-Courmont 99fab9089e Don't include config.h from the headers - refs #297.
Missing some cases that I could not test.
Also ffmpeg/chroma.c is locked, so I can but leave it broken.
Fix is for the remaining modules is obvious and the issue is easy to detect.
2008-01-23 21:50:58 +00:00
Rémi Denis-Courmont e40d134c69 Remove _GNU_SOURCE and string.h too 2007-08-20 19:10:23 +00:00
Rémi Denis-Courmont 81c5ac29fa Remove stdlib.h 2007-08-20 19:08:22 +00:00
Antoine Cellerier 348f0ffb5c motiondetect.c: Oops commit. 2007-04-25 19:37:47 +00:00
Antoine Cellerier a90c352334 * motiondetect.c: remove useless include.
* puzzle.c: compile warning fix.
2007-04-25 19:20:43 +00:00
Antoine Cellerier f6b0cce8bf Also use the V plane for motion detection. Remove unused code. 2007-03-31 16:42:14 +00:00
Clément Stenac 80fde19dfe More cleanup 2006-12-24 14:18:21 +00:00
Antoine Cellerier dfc8b3df25 Rewrite motion detect filter. It currently draws a white rectangle arround moving objects (on fixed backgrounds). I still need to add code to make it possible to trigger an action when movement is detected (i.e. a VLM command to start recording). 2006-12-17 17:58:21 +00:00
Derk-Jan Hartman ae6af36087 * motion_detect: use playlist_Control's "lock" argument
* const string fixes 
* make a couple of functions static
2006-12-11 17:22:20 +00:00
Clément Stenac d3fe7f2879 A bit of headers cleanup
* Headers in include must contain the structures and prototypes needed
  by the plugins and should be named vlc_*.
* Headers in include/vlc must contain the structures and prototypes
  needed by external libvlc clients

* Moved and renamed some things in headers. 
   - Removed vlc_cpu.h, vlc_error.h (merged in vlc_common)
   - Removed snapshot.h (merged in vlc_vout.h)
   - Removed vlc_spu.h (merged in vlc_osd.h)
   - Removed intf_eject.h and vlc_interaction.h (merged in vlc_interface)
   - Moved all internal headers to src
   - Merged vlc_video.h and video_output.h and move private things to src
   - Removed vlc/intf.h, vlc/aout.h, vlc/vout.h, vlc/decoder.h and vlc/input.h
     (meta headers for use in modules, and often implying too large 
     dependencies)
* Removed some useless dependencies
* Unexported a bunch of functions and structures used only in src/
  (--> Still some work here)
* Finally made input_thread_t and input_source_t (mostly) private. 
  Added input_GetItem to fetch the input_item of an input_thread
* Cleaned up deprecated entries in vlc_symbols.h and bumped up symbol 
  prefix

This commit has a 99% probability of breaking the build, 0.1% of killing
your cat and 0% of getting you hot chicks.
2006-11-26 14:20:34 +00:00
Christophe Mutricy dc8b128a9f forward port [17012] and make update-po 2006-10-09 22:37:29 +00:00