vlc/vlc-bizon.git
6 years agoFix adjust compilation on non-SSE machines master
Martin Briza [Tue, 16 Aug 2011 18:22:22 +0000 (20:22 +0200)]
Fix adjust compilation on non-SSE machines

Forgot compatibility checks

6 years agoAdded assembly (SSE2, SSE4.1) processing functions to adjust filter
Martin Briza [Tue, 16 Aug 2011 14:43:45 +0000 (16:43 +0200)]
Added assembly (SSE2, SSE4.1) processing functions to adjust filter

6 years agoSplit adjust filter in two source files
Martin Briza [Tue, 16 Aug 2011 14:38:07 +0000 (16:38 +0200)]
Split adjust filter in two source files

Preparation for adding assembly hue/saturation processing functions

Two new function pointers in p_sys to clipping and non-clipping U and V channel processing cycle

6 years agoRevert "Separate hue and saturation processing function from adjust filter"
Martin Briza [Tue, 16 Aug 2011 14:27:13 +0000 (16:27 +0200)]
Revert "Separate hue and saturation processing function from adjust filter"

This reverts commit c8f693dd80a44c2a9f42ba5f9d2143672a4aa842.

6 years agoSeparate hue and saturation processing function from adjust filter
Martin Briza [Sun, 14 Aug 2011 23:41:15 +0000 (01:41 +0200)]
Separate hue and saturation processing function from adjust filter

as a preparation for further changes to the module regarding assembly processing functions

added void (* pf_process_sat_hue)() function in filter_sys_t of the module pointing to a function processing saturation and hue of the filter.

6 years agoClean modules up to prepare for better patches
Martin Briza [Fri, 12 Aug 2011 13:06:10 +0000 (15:06 +0200)]
Clean modules up to prepare for better patches

Reverting previously made changes

6 years agoMerge with vlc-devel
Martin Briza [Fri, 12 Aug 2011 12:23:45 +0000 (14:23 +0200)]
Merge with vlc-devel

6 years agoVLCKit: fixed compilation with Xcode4
Felix Paul Kühne [Fri, 12 Aug 2011 11:00:13 +0000 (13:00 +0200)]
VLCKit: fixed compilation with Xcode4

To support Xcode4, we require the 10.6 SDK now, which can be easily reverted when using Xcode3.2 an appropriate SDK.

Note that this project file format now requires Xcode 3.2 or later

6 years agocompilation fix
Felix Paul Kühne [Fri, 12 Aug 2011 10:33:30 +0000 (12:33 +0200)]
compilation fix

6 years agoaout: do not check for PTS discontinuity in packetizer
Rémi Denis-Courmont [Thu, 11 Aug 2011 20:19:07 +0000 (23:19 +0300)]
aout: do not check for PTS discontinuity in packetizer

Continuity of the two FIFOs is maintained, as is consistency with the
input date. PTS discontinuity only seems to occur due to rounding
errors in the filters. It should be better not to drop samples, but
simply fix the buffer PTS and length.

Ideally, resamplers would use date_Increment() so they do not introduce
rounding errors. But first the block disconuity flag should be checked
for correctness during filtering, so that resamplers can reset the date
in case of hole.

6 years agoaout: fix time reporting for packet-based outputs
Rémi Denis-Courmont [Thu, 11 Aug 2011 20:14:13 +0000 (23:14 +0300)]
aout: fix time reporting for packet-based outputs

6 years agoWin32 installer: don't ask for uninstall when you are in Silent mode
Jean-Baptiste Kempf [Thu, 11 Aug 2011 16:44:55 +0000 (18:44 +0200)]
Win32 installer: don't ask for uninstall when you are in Silent mode

6 years agoPulseAudio: improve resampling formula
Rémi Denis-Courmont [Thu, 11 Aug 2011 15:09:16 +0000 (18:09 +0300)]
PulseAudio: improve resampling formula

...for good this time (yeah right).

6 years agocontrib: build lua as PIC
Rémi Denis-Courmont [Thu, 11 Aug 2011 12:50:12 +0000 (15:50 +0300)]
contrib: build lua as PIC

6 years agocontrib: lame is not used directly
Rémi Denis-Courmont [Tue, 9 Aug 2011 06:40:40 +0000 (09:40 +0300)]
contrib: lame is not used directly

6 years agoPulseAudio: simplify and fix mainloop reference counting
Rémi Denis-Courmont [Thu, 11 Aug 2011 13:43:45 +0000 (16:43 +0300)]
PulseAudio: simplify and fix mainloop reference counting

(Logic for more than one reference was inverted)

6 years agoPulseAudio: missing lock
Rémi Denis-Courmont [Thu, 11 Aug 2011 13:35:12 +0000 (16:35 +0300)]
PulseAudio: missing lock

6 years agoUse a private dbus connection in the inhibit and telepathy modules
Mirsal Ennaime [Thu, 11 Aug 2011 09:38:18 +0000 (11:38 +0200)]
Use a private dbus connection in the inhibit and telepathy modules

libdbus has multiple thread-safety issues and using private connections
(ie: not shared with other vlc modules) helps avoiding some of them.

6 years agomacosx: added 'obsolute' macros for removed settings
Felix Paul Kühne [Wed, 10 Aug 2011 20:38:27 +0000 (22:38 +0200)]
macosx: added 'obsolute' macros for removed settings

thx to j-b for the reminder

6 years agoPulseAudio: don't print an error when latency returns no data
Rémi Denis-Courmont [Wed, 10 Aug 2011 19:44:16 +0000 (22:44 +0300)]
PulseAudio: don't print an error when latency returns no data

This happens almost all the time, and is unfortunately normal behavior.

6 years agoaout: disable recycling for the time being
Rémi Denis-Courmont [Wed, 10 Aug 2011 19:40:44 +0000 (22:40 +0300)]
aout: disable recycling for the time being

6 years agoPulseAudio: dead code
Rémi Denis-Courmont [Wed, 10 Aug 2011 19:31:37 +0000 (22:31 +0300)]
PulseAudio: dead code

6 years agodecoder: flush aout at end
Rémi Denis-Courmont [Wed, 10 Aug 2011 19:31:00 +0000 (22:31 +0300)]
decoder: flush aout at end

6 years agoPulseAudio: destroy context like stream
Rémi Denis-Courmont [Wed, 10 Aug 2011 19:27:23 +0000 (22:27 +0300)]
PulseAudio: destroy context like stream

6 years agoPulseAudio: clear all stream callbacks before disconnection
Rémi Denis-Courmont [Wed, 10 Aug 2011 19:24:43 +0000 (22:24 +0300)]
PulseAudio: clear all stream callbacks before disconnection

This should fix the infrequent assertions failures at exit.

6 years agoaout: recycle output and pipeline if possible
Rémi Denis-Courmont [Wed, 10 Aug 2011 16:48:44 +0000 (19:48 +0300)]
aout: recycle output and pipeline if possible

The decoder thread drains the output at end of stream. So there is
always an underflow between consequent audio inputs.
Thus this does not provide gap-less audio as is.

6 years agomacosx: fail the video output if Quartz Extreme isn't supported, removed specific...
Felix Paul Kühne [Wed, 10 Aug 2011 14:43:37 +0000 (16:43 +0200)]
macosx: fail the video output if Quartz Extreme isn't supported, removed specific options, which are now handled by the core

QE is supported on virtually any Mac is running 10.5+ except for broken Hackintoshes

6 years agomacosx: implemented the 'autoscale' feature and fixed some resizing bugs
Felix Paul Kühne [Wed, 10 Aug 2011 14:25:13 +0000 (16:25 +0200)]
macosx: implemented the 'autoscale' feature and fixed some resizing bugs

6 years agovout_macosx: factorize objc selectors
Felix Paul Kühne [Wed, 10 Aug 2011 13:38:36 +0000 (15:38 +0200)]
vout_macosx: factorize objc selectors

no functional change

6 years agoaout: introduce aout_Destroy()
Rémi Denis-Courmont [Wed, 10 Aug 2011 16:14:00 +0000 (19:14 +0300)]
aout: introduce aout_Destroy()

6 years agoaout_PacketNext: fix inverted logic
Rémi Denis-Courmont [Wed, 10 Aug 2011 15:37:06 +0000 (18:37 +0300)]
aout_PacketNext: fix inverted logic

6 years agoaout: allocate input from input.c, simplify
Rémi Denis-Courmont [Wed, 10 Aug 2011 15:19:41 +0000 (18:19 +0300)]
aout: allocate input from input.c, simplify

6 years agoaout: move replay gain handling to dec and mixer
Rémi Denis-Courmont [Wed, 10 Aug 2011 15:02:24 +0000 (18:02 +0300)]
aout: move replay gain handling to dec and mixer

This had no relations with the audio input anymore. In particular,
there is no need to reinitialize this when the input is restarted.

6 years agoRemove aout-rate
Rémi Denis-Courmont [Wed, 10 Aug 2011 14:38:48 +0000 (17:38 +0300)]
Remove aout-rate

I assume this breaks with S/PDIF. And I do not see much use for this.

6 years agomacosx: redesigned info panel to HUD
Felix Paul Kühne [Wed, 10 Aug 2011 00:59:46 +0000 (02:59 +0200)]
macosx: redesigned info panel to HUD

removed the broken fps display and added a field for EncodedBy

fixes #4710

6 years agomacosx: fixed fspanel
Felix Paul Kühne [Tue, 9 Aug 2011 23:11:44 +0000 (01:11 +0200)]
macosx: fixed fspanel

6 years agomacosx: retain window level across a fullscreen session
Felix Paul Kühne [Tue, 9 Aug 2011 21:47:38 +0000 (23:47 +0200)]
macosx: retain window level across a fullscreen session

6 years agoaout: create object variables when the object is created
Rémi Denis-Courmont [Tue, 9 Aug 2011 19:54:36 +0000 (22:54 +0300)]
aout: create object variables when the object is created

This ensures that the variables will be available as soon as the aout
is externally visible, and that there value will persist across inputs.

This also saves a bunch of lookup at each new input.

6 years agoaout: remove redumdant variable creation for replay gain
Rémi Denis-Courmont [Tue, 9 Aug 2011 19:19:15 +0000 (22:19 +0300)]
aout: remove redumdant variable creation for replay gain

Those variables are inherited and they have no callbacks.

6 years agolibsamplerate resampling filter
Rémi Denis-Courmont [Tue, 9 Aug 2011 16:22:38 +0000 (19:22 +0300)]
libsamplerate resampling filter

6 years agoaout: delete input callbacks when input is deleted
Rémi Denis-Courmont [Tue, 9 Aug 2011 15:52:49 +0000 (18:52 +0300)]
aout: delete input callbacks when input is deleted

6 years agoaout: use atomic variable for replay gain
Rémi Denis-Courmont [Tue, 9 Aug 2011 15:48:57 +0000 (18:48 +0300)]
aout: use atomic variable for replay gain

6 years agoAdd helpers to store floats into vlc_atomic_t
Rémi Denis-Courmont [Tue, 9 Aug 2011 15:48:13 +0000 (18:48 +0300)]
Add helpers to store floats into vlc_atomic_t

(Lets assume that uintptr_t is big enough, i.e. 32-bits).

6 years agoaout: clean up replay gain callback
Rémi Denis-Courmont [Tue, 9 Aug 2011 15:39:36 +0000 (18:39 +0300)]
aout: clean up replay gain callback

 - get the mode string directly from the callback (new) variable value,
 - reduce locking scope,
 - fix read overflow: do not apply peak protection in "max" mode.

6 years agoFix warnings
Rémi Denis-Courmont [Tue, 9 Aug 2011 15:13:26 +0000 (18:13 +0300)]
Fix warnings

6 years agoaout: use atomic ops for (deferred) restart
Rémi Denis-Courmont [Tue, 9 Aug 2011 15:11:07 +0000 (18:11 +0300)]
aout: use atomic ops for (deferred) restart

6 years agocontribs: revert unintended change in previous commit
Felix Paul Kühne [Tue, 9 Aug 2011 15:33:31 +0000 (17:33 +0200)]
contribs: revert unintended change in previous commit

6 years agomacosx: re-implemented VLCVoutView and removed dead or outdated code
Felix Paul Kühne [Tue, 9 Aug 2011 15:30:58 +0000 (17:30 +0200)]
macosx: re-implemented VLCVoutView and removed dead or outdated code

6 years agoaout: do not use aout_owner() from input
Rémi Denis-Courmont [Tue, 9 Aug 2011 15:40:15 +0000 (18:40 +0300)]
aout: do not use aout_owner() from input

6 years agoCleanup tree and vars callbacks
Rémi Denis-Courmont [Tue, 9 Aug 2011 14:59:31 +0000 (17:59 +0300)]
Cleanup tree and vars callbacks

6 years agomacosx: fixed compilation warnings
Felix Paul Kühne [Tue, 9 Aug 2011 14:19:11 +0000 (16:19 +0200)]
macosx: fixed compilation warnings

6 years agostream_out_std: simplify / factorize
Rafaël Carré [Tue, 9 Aug 2011 04:40:27 +0000 (00:40 -0400)]
stream_out_std: simplify / factorize

split out some functions from Open()
move static functions
sout_stream_id_t -> define struct as empty and use the pointer to store sout_input_t

functional change:
do not force asfh mux if user specified another one but only warn him (like for upd/ts)

6 years agodbus: prefer char[][] to *char[]
Rafaël Carré [Tue, 9 Aug 2011 01:49:08 +0000 (21:49 -0400)]
dbus: prefer char[][] to *char[]

makes data smaller:
 no need to store pointers to each item of the array

char *x[] = { "a", "b", "c" };
memory looks like => "a" "b" "c" (&x) &a &b &c

char x[][2] = { "a", "b", "c" };
memory looks like => (&x) "a" "b" "c"

6 years agofix double free introduced by me in [7d84269bff]
Rafaël Carré [Tue, 9 Aug 2011 00:48:58 +0000 (20:48 -0400)]
fix double free introduced by me in [7d84269bff]

6 years agomacosx: move VLCFSPanel from VLCControls to VLCMainWindow since its the only class...
Felix Paul Kühne [Mon, 8 Aug 2011 22:19:10 +0000 (00:19 +0200)]
macosx: move VLCFSPanel from VLCControls to VLCMainWindow since its the only class which should know about it

6 years agoContribs: add projectM
Jean-Baptiste Kempf [Mon, 8 Aug 2011 22:02:31 +0000 (00:02 +0200)]
Contribs: add projectM

6 years agoContribs: add glew
Jean-Baptiste Kempf [Mon, 8 Aug 2011 21:45:04 +0000 (23:45 +0200)]
Contribs: add glew

6 years agomacosx: implemented float-on-top
Felix Paul Kühne [Mon, 8 Aug 2011 21:35:39 +0000 (23:35 +0200)]
macosx: implemented float-on-top

6 years agoContribs: add Goom
Jean-Baptiste Kempf [Mon, 8 Aug 2011 21:23:48 +0000 (23:23 +0200)]
Contribs: add Goom

6 years agoContribs: add lame
Jean-Baptiste Kempf [Mon, 8 Aug 2011 20:57:46 +0000 (22:57 +0200)]
Contribs: add lame

6 years agoAoutInputsMarkToRestart: de-inline and rename
Rémi Denis-Courmont [Mon, 8 Aug 2011 20:56:07 +0000 (23:56 +0300)]
AoutInputsMarkToRestart: de-inline and rename

6 years agoWarn about dangling variable callbacks
Rémi Denis-Courmont [Mon, 8 Aug 2011 20:50:53 +0000 (23:50 +0300)]
Warn about dangling variable callbacks

6 years agoaout: move input format to aout_owner
Rémi Denis-Courmont [Mon, 8 Aug 2011 20:27:52 +0000 (23:27 +0300)]
aout: move input format to aout_owner

6 years agoContribs: update modplug to 0.8.8.4
Jean-Baptiste Kempf [Mon, 8 Aug 2011 20:47:07 +0000 (22:47 +0200)]
Contribs: update modplug to 0.8.8.4

6 years agomacosx: prepared fullscreen support and clean-up
Felix Paul Kühne [Mon, 8 Aug 2011 19:01:31 +0000 (21:01 +0200)]
macosx: prepared fullscreen support and clean-up

6 years agovout_macosx: implemented support for resize, zoom, etc. events
Felix Paul Kühne [Mon, 8 Aug 2011 18:52:43 +0000 (20:52 +0200)]
vout_macosx: implemented support for resize, zoom, etc. events

6 years agomacosx: updated applescript binding to current API
Felix Paul Kühne [Mon, 8 Aug 2011 18:48:36 +0000 (20:48 +0200)]
macosx: updated applescript binding to current API

6 years agoQt: plugins dialog, fix keyevents
Jean-Baptiste Kempf [Mon, 8 Aug 2011 18:27:55 +0000 (20:27 +0200)]
Qt: plugins dialog, fix keyevents

Close #5167

6 years agoi18n: remove deleted file
Pierre Ynard [Mon, 8 Aug 2011 17:52:16 +0000 (19:52 +0200)]
i18n: remove deleted file

6 years agoXCB: fallback to SHM with promiscuous permissions on attach error
Rémi Denis-Courmont [Mon, 8 Aug 2011 16:07:45 +0000 (19:07 +0300)]
XCB: fallback to SHM with promiscuous permissions on attach error

Some X servers cannot borrow VLC user privileges to attach to its
shared memory segments. This fallback should fix MIT-SHM with those
X servers. However other users will be able to snoop on the decoded
video frames.

6 years agoXCB: make CheckError() return the actual error code
Rémi Denis-Courmont [Mon, 8 Aug 2011 15:49:02 +0000 (18:49 +0300)]
XCB: make CheckError() return the actual error code

6 years agocontrib: remove redumdant/duplicate SDL_image target dependencies
Rémi Denis-Courmont [Thu, 4 Aug 2011 07:55:54 +0000 (10:55 +0300)]
contrib: remove redumdant/duplicate SDL_image target dependencies

6 years agocontrib: SDL is not useful alone, only as a dependency
Rémi Denis-Courmont [Thu, 4 Aug 2011 07:54:43 +0000 (10:54 +0300)]
contrib: SDL is not useful alone, only as a dependency

The SDL audio output is gone. The SDL video output is not very useful
and it won't quite work with most SDL video plugins disabled.

SDL is mainly a dependency for SDL_image.

6 years agocontrib: libjpeg is not useful of its own, only a dependency
Rémi Denis-Courmont [Thu, 4 Aug 2011 07:53:47 +0000 (10:53 +0300)]
contrib: libjpeg is not useful of its own, only a dependency

6 years agocontrib: force PIC for CMake stuff
Rémi Denis-Courmont [Mon, 8 Aug 2011 15:31:30 +0000 (18:31 +0300)]
contrib: force PIC for CMake stuff

6 years agocontrib: add HOSTVARS_PIC to force PIC build (for CMake)
Rémi Denis-Courmont [Mon, 8 Aug 2011 15:31:10 +0000 (18:31 +0300)]
contrib: add HOSTVARS_PIC to force PIC build (for CMake)

6 years agocontrib: mpcdec: do not clobber our precious CFLAGS
Rémi Denis-Courmont [Mon, 8 Aug 2011 15:31:04 +0000 (18:31 +0300)]
contrib: mpcdec: do not clobber our precious CFLAGS

6 years agoReplace AOUT_FMT_NON_LINEAR with AOUT_FMT_SPDIF and AOUT_FMT_LINEAR
Rémi Denis-Courmont [Mon, 8 Aug 2011 15:22:38 +0000 (18:22 +0300)]
Replace AOUT_FMT_NON_LINEAR with AOUT_FMT_SPDIF and AOUT_FMT_LINEAR

As things stand, we have a format that is neither S/PDIF nor linear,
so change the macros to remove the confusion.

6 years agomono downmix: manually selected so zero priority
Rémi Denis-Courmont [Mon, 8 Aug 2011 15:17:31 +0000 (18:17 +0300)]
mono downmix: manually selected so zero priority

This plugin modifies the output format. It caused a busy loop
and broke libmad on fixed-point architectures (fixes #5151).

6 years agoIgnore the vlc binaries
Rémi Denis-Courmont [Mon, 8 Aug 2011 15:09:19 +0000 (18:09 +0300)]
Ignore the vlc binaries

6 years agoRemove useless trivial audio mixer
Rémi Denis-Courmont [Mon, 8 Aug 2011 15:04:14 +0000 (18:04 +0300)]
Remove useless trivial audio mixer

6 years agoaout: lack of software mixer is non fatal
Rémi Denis-Courmont [Mon, 8 Aug 2011 15:02:18 +0000 (18:02 +0300)]
aout: lack of software mixer is non fatal

6 years agoQt4: fix enum switch warning
Rémi Denis-Courmont [Mon, 8 Aug 2011 08:56:16 +0000 (11:56 +0300)]
Qt4: fix enum switch warning

6 years agoQt4: fix DEBUG_LAYOUT warning
Rémi Denis-Courmont [Mon, 8 Aug 2011 14:52:52 +0000 (17:52 +0300)]
Qt4: fix DEBUG_LAYOUT warning

6 years agoPulseAudio: include <math.h> (fixes #5170)
Rémi Denis-Courmont [Mon, 8 Aug 2011 14:52:14 +0000 (17:52 +0300)]
PulseAudio: include <math.h> (fixes #5170)

6 years agohttp out: Do not look for removed variables
Rémi Denis-Courmont [Mon, 8 Aug 2011 14:45:59 +0000 (17:45 +0300)]
http out: Do not look for removed variables

6 years agoHLS (httplive.c): fix Peek() function
F. Yhuel [Thu, 4 Aug 2011 14:33:43 +0000 (16:33 +0200)]
HLS (httplive.c): fix Peek() function

The new Peek() function now allocates a block (p_sys->peeked) if the
required size (i_peek) is greater than the size of the playback
segment, and then do a copy of one (or several) segment's data block(s) in it.
In the end, p_sys->peeked might be the concatenation of several segment's data
blocks, but usually it will be NULL.

Signed-off-by: Jean-Paul Saman <jean-paul.saman@m2x.nl>
6 years agompeg_audio: comment unused variable
Rafaël Carré [Mon, 8 Aug 2011 05:36:59 +0000 (01:36 -0400)]
mpeg_audio: comment unused variable

6 years agodbus: remove unused variable
Rafaël Carré [Mon, 8 Aug 2011 00:06:21 +0000 (20:06 -0400)]
dbus: remove unused variable

6 years agodbus: move static const tables in the C file
Rafaël Carré [Mon, 8 Aug 2011 00:05:27 +0000 (20:05 -0400)]
dbus: move static const tables in the C file

remove useless prototype
inline vlc identity in the only use case

6 years agodbus: allocate pollfd array on the stack
Rafaël Carré [Mon, 8 Aug 2011 00:02:53 +0000 (20:02 -0400)]
dbus: allocate pollfd array on the stack

fix memleak when thread is cancelled

6 years agoxspf demux: merge header in C file
Rafaël Carré [Sun, 7 Aug 2011 23:53:40 +0000 (19:53 -0400)]
xspf demux: merge header in C file

remove FREE_ATT, use do { ... } while(0) for FREE_VALUE
use static const tables for xml handlers
use their size to match handlers with tags
replace {SIMPLE,COMPLEX,UNKNOWN}_CONTENT with a bool

6 years agoplaylist tree: fix potential memleak
Rafaël Carré [Sun, 7 Aug 2011 23:23:40 +0000 (19:23 -0400)]
playlist tree: fix potential memleak

also remove one level of indentation

6 years agoplaylist: remove dead code
Rafaël Carré [Sun, 7 Aug 2011 23:22:49 +0000 (19:22 -0400)]
playlist: remove dead code

6 years agoxspf demux: fix memleak
Rafaël Carré [Sun, 7 Aug 2011 23:22:24 +0000 (19:22 -0400)]
xspf demux: fix memleak

6 years agoplaylist preparser: fix input_item_t refcounting
Rafaël Carré [Sun, 7 Aug 2011 21:14:55 +0000 (17:14 -0400)]
playlist preparser: fix input_item_t refcounting

6 years agoContribs: Update Freetype and libass
Jean-Baptiste Kempf [Sun, 7 Aug 2011 13:10:03 +0000 (15:10 +0200)]
Contribs: Update Freetype and libass

Cf CVE-2011-0226

6 years agoOld contribs: update of freetype and libass
Jean-Baptiste Kempf [Sun, 7 Aug 2011 13:02:06 +0000 (15:02 +0200)]
Old contribs: update of freetype and libass

Cf CVE-2011-0226

6 years agooss: build fix
Pierre Ynard [Sun, 7 Aug 2011 13:04:00 +0000 (15:04 +0200)]
oss: build fix

6 years agoWinCE: compile fix
Rémi Denis-Courmont [Sun, 7 Aug 2011 08:58:50 +0000 (11:58 +0300)]
WinCE: compile fix