Commit Graph

37 Commits

Author SHA1 Message Date
Steve Lhomme a6caa96f1d filter_picture: pass only the chroma to GetPackedRgbIndexes()
We don't need anything else anymore.
2023-10-01 09:21:32 +00:00
Steve Lhomme eaf149b7f8 vlc_fourcc: remove read-only VLC_CODEC_RGB32
It's never used as such. Only 4 masks existed and they have been replaced with
VLC_CODEC_BGRX, VLC_CODEC_XRGB, VLC_CODEC_XBGR and VLC_CODEC_RGBX.
2023-09-29 17:29:52 +02:00
Steve Lhomme 92d89bc3b3 vlc_fourcc: remove read-only VLC_CODEC_RGB24M
It's never used as such. Only 2 masks existed and they have been replaced with
VLC_CODEC_RGB24 and VLC_CODEC_BGR24.
2023-09-29 15:09:23 +00:00
Steve Lhomme 37f2201757 sepia: handle RGB24/BGR24 like RGB24M
GetPackedRgbIndexes() will provide the proper masks.
2023-09-24 19:57:38 +00:00
Steve Lhomme 0127ad54f9 vlc_fourcc: rename VLC_CODEC_RGB24 to VLC_CODEC_RGB24M
To signify it uses a mask, and to leave room for a real VLC_CODEC_RGB24 without
a mask.
2023-09-24 19:57:38 +00:00
Steve Lhomme 782a1312f7 video/sepia: handle RGB+x sources 2023-09-24 19:57:38 +00:00
Steve Lhomme 6b06568d49 video/sepia: handle RGB+a sources 2023-09-24 19:57:38 +00:00
Steve Lhomme 7c28374fc4 filter_picture: get the alpha RGB index when there is one
Set -1 if there isn't one.
2023-09-07 11:26:19 +00:00
Steve Lhomme 91402fdde0 modules: include vlc_configuration.h when using config_ChainParse() 2023-05-06 06:56: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
Romain Vimont 3716a7da5b config: remove remaining "advanced" flags
The config "advanced" flag was unused and has been removed by
6a7a137f7b.

It has been removed from many add_*() macros, but not all. Remove it
from the remaining macros.
2021-06-06 08:42:50 +00:00
Lyndon Brown 02ef32e647 remove some useless option longtexts
longtext should add something of value, otherwise results in useless
tooltips and a waste of translator time.

in the ball case, feedback was that the longtext was better than the
existing shorttext.
2021-05-12 05:44:11 +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 f5a493f7f4 video_filter: remove filter function declaration
The declaration is already generated by the helper macros.
2020-10-13 09:21:30 +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 82832bd506 video_filter: use a video filter wrapper to generate boilerplate code 2020-10-12 15:21:39 +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
Lyndon Brown 464e2d4403 sepia: fix lack of Y adjustment
The SIMD accelerated PlanarI420 implementation contained mistakes that
meant that actually Y was being written untouched.

Signed-off-by: Thomas Guillem <thomas@gllm.fr>
2019-03-20 15:31:28 +01: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
Rémi Denis-Courmont 72bfe44f98 Include <stdatomic.h> or <atomic> directly where applicable 2017-12-19 19:34:56 +02: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 7d54a3ab14 video_filter: sepia: cosmetics 2015-08-31 14:10:39 -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
Rémi Denis-Courmont 52ef346590 sepia: use atomic variable instead of spin lock 2012-11-08 23:54:17 +02:00
Rémi Denis-Courmont a865ced488 sepia: clobber XMM registers correctly 2012-10-13 16:22:43 +03:00
Rémi Denis-Courmont edfb6e4ad2 Check for SSE2 at build-time if possible 2012-08-04 16:37:42 +03:00
Rafaël Carré 3172a979cc Remove vlc_memset 2012-07-02 13:10:56 +02:00
Rafaël Carré 364cb74d30 Sepia8ySSE2(): remove forward declaration
make the function static inline
don't compile it at all if we can't compile SSE2
2011-09-13 18:33:43 -04:00
Martin Briza 400622e880 Fix sepia video filter in PackedYUV
SSE function used in PackedYUV plane was bad, removed
copying data using Memcpy8BMMX was slower than vlc_memset -> changed
Sepia8ySSE4_1 changed to Sepia8ySSE2, due to some changes I made to speed it up and clean
Minor changes in indentation and comments

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2011-06-30 01:33:35 +02:00
Rémi Denis-Courmont 231b08e802 Remove dummy plugin config item parameter 2011-05-13 23:20:55 +03:00
Martin Briza 972c39b6e8 Sepia filter ASM optimization
Added functions to improve YUV performance, still needs a bit of work on RGB

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2011-04-09 20:03:50 +02:00
Martin Briza 23e6f1bf8e Sepia improve by being done in YUV
Bring major speed up for most videos

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2011-04-09 20:03:50 +02:00
Jean-Baptiste Kempf b33c3bc1e7 Sepia: cleanups
Remove tabs, trailing spaces, and write-only variables
2011-03-27 13:02:52 +02:00
Branko Kokanovic 5c3dd0a324 video filter refactor (trying to reuse functions)
Signed-off-by: Laurent Aimar <fenrir@videolan.org>
2011-01-04 20:07:56 +01:00
Branko Kokanovic 5907d722c9 Sepia video filter
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
2010-12-11 03:04:55 +02:00