Steve Lhomme
d2b42e2cd0
doc: libvlc: update minimum CMake to 3.10
Below 3.5 is not supported by current CMake and below 3.10 is mentioned as
removed soon.
5 months ago
Martin Finkel
325511163a
doc/libvlc: early return with help message instead of crash
in case of missing input file
8 months ago
Steve Lhomme
d2dcb5fa56
doc/libvlc: add fill mode aspect ratio in the cycling Aspect Ratio values
2 years ago
Steve Lhomme
6dda4c2425
doc: win32: use proper strings in case the Windows tests are built with UNICODE
11 months ago
Johannes Kauffmann
07a9e3c865
doc: QtGL: make it compile with Qt 6
1 year ago
Johannes Kauffmann
f4a4f9bcc4
doc: QtPlayer: make it compile with Qt 6
1 year ago
Alexandre Janniaux
f030c94478
doc: thumbnailer: rename wait condition variable
wait is a standard symbol from POSIX and using the same identifier is
conflicting on macosx, resulting in build errors:
vlc/doc/libvlc/thumbnailer.c:110:24: error: redefinition of 'wait' as different kind of symbol
static pthread_cond_t wait;
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/wait.h:248:9: note: previous definition is here
pid_t wait(int *) __DARWIN_ALIAS_C(wait);
^
Fixes #28519
2 years ago
Alexandre Janniaux
935e17d3d6
doc: thumbnailer: remove _POSIX_CLOCK_SELECTION
Since e56d967334 , there is no
clock_gettime() call amd there is no need for this POSIX feature to be
enabled.
Refs #28519
2 years ago
Steve Lhomme
1ce31601a4
doc/wx_player: set WS_CLIPCHILDREN on our window
So the display module doesn't have to do it in its own thread.
2 years ago
Steve Lhomme
b29e2911fd
doc/QtPlayer: set WS_CLIPCHILDREN on our window
So the display module doesn't have to do it in its own thread.
It doesn't seem to be on by default in Qt and there's no direct API to set this.
2 years ago
Steve Lhomme
70535e5402
doc/win_player: set WS_CLIPCHILDREN on our window
So the display module doesn't have to do it in its own thread.
2 years ago
Thomas Guillem
a8a57ba8c4
doc: rename vlc-thumb.c
2 years ago
Thomas Guillem
1da6898e2e
doc: fix unused warning in example.c
2 years ago
Pierre Lamot
04ea9e055e
doc: QtGL: implement window resize and mouse callbacks
3 years ago
Pierre Lamot
2ed2509750
doc: d3d11_player: implement mouse support
3 years ago
Pierre Lamot
60078ca975
libvlc: allow user to report mouse events when using libvlc_video_set_output_callbacks
when using libvlc_video_set_output_callbacks, VLC has no native surface to
intercept mouse events (unlike libvlc_media_player_set_xwindow/xid/...). This
patch allows user to send these events manually to VLC. This is useful when
dealing with interactive medias (DVD menus).
3 years ago
Steve Lhomme
4c99f1a44a
include cassert instead of assert.h
cassert is the preferred way in C++. It doesn't contain static_assert
which is otherwise a keyword.
https://stackoverflow.com/a/43011752/1266123
https://en.cppreference.com/w/cpp/header/cassert
https://en.cppreference.com/w/cpp/language/static_assert
3 years ago
Simon Latapie
f7d4afc821
doc: QtPlayer: fix file opening on Windows
Using a raw path from the QFileDialog can lead to wrong native
separators in the provided string.
Using URLs instead of paths should be more cross-platform compliant.
3 years ago
Steve Lhomme
86e598311e
vlc-thumb: fix error handling
If the thumbnail fails, the returned picture is NULL. It is handled that way in
the snapshot() function. But libvlc_picture_retain() doesn't handle NULL
pictures.
3 years ago
Steve Lhomme
246d451260
doc/libvlc: include cstdio/cstdlib
They are the headers that should be used from C++.
+ set the SPDX license so it can be parsed easily.
3 years ago
Steve Lhomme
8c2b60de03
libvlc: always include the libvlc version header from vlc.h
Just like the other libvlc headers.
3 years ago
Ordissimo
76bb0f1316
Fix gtk_player migrate to gtk3
3 years ago
Steve Lhomme
7c64a9d27a
doc: win32: remove window flag that redraws the window
This trick worked to redraw/resize the VLC HWND when the parent changes. But
not all apps can do that.
3 years ago
Rémi Denis-Courmont
815116d80c
Use static assertions to check constant predicates
This is more straightforward than #if/#error/#endif.
4 years ago
Rémi Denis-Courmont
b18a675901
lib: remove useless libvlc_media_new_path() parameter
4 years ago
Rémi Denis-Courmont
5aec19d53f
lib: remove useless libvlc_media_new_location() parameter
4 years ago
Rémi Denis-Courmont
d607bf767f
lib/media_player: pass instance when creating from media
The caller ought to be able to select which instance the player should
be instantiated from.
4 years ago
Rémi Denis-Courmont
cd05f2ff55
lib/media: pass explicit instance to generate thumbnail
4 years ago
Steve Lhomme
ee28019fb9
d3d11_player: only read lParam once
4 years ago
Steve Lhomme
d22c1a2bca
d3d11_player: handle 0 dimensions we report to the app
We could avoid sending 0, or we could avoid the rendering if it's 0.
But being a "simple" sample app, let's use the easiest way.
4 years ago
Alexandre Janniaux
60fcef78ee
doc/libvlc: add appkit_player demo code
The sample code demonstrate how to bind an NSView to a media player to
integrate video playback in a Cocoa application.
4 years ago
Thomas Guillem
6d3b8ada5f
doc: examples: use the Stopped event
From VLC 4.0, Ended or EndReached are sent when the player is stopping,
so listen to the stopped event instead.
4 years ago
Steve Lhomme
6fa58261ff
libvlc: add a callback for the type of the resize callback
This will avoid lengthy variable declarations.
4 years ago
Steve Lhomme
c3d874c989
doc: libvlc: rename callbacks to clarify what they do
4 years ago
Steve Lhomme
553f6091c0
libvlc: add the possibility to flip the rendered textures
Only supported by the D3D11 renderer for now.
4 years ago
Steve Lhomme
e70bb01630
doc: libvlc: add a CMake makefile to build the win32 samples
CMake has good integration with VSCode which makes it as easy as just loading
the folder in VSCode, set the SDK folder and build.
4 years ago
Steve Lhomme
df63adafd9
doc: fix warnings with MSVC in d3d11_player
4 years ago
Steve Lhomme
db6ad1bc86
doc: libvlc: fix type casting
4 years ago
Steve Lhomme
4bad605e3b
doc: libvlc: use _strdup() on Windows samples
strdup() is issuing a deprecated warning with the MS SDK.
4 years ago
Steve Lhomme
491e7440b3
doc: libvlc: fix QtGL shader compilation issue
4 years ago
Romain Roffé
49dc4a6d11
doc: gtk: Fix build with GTK3+
4 years ago
Alexandre Janniaux
df2a9c37cd
doc: libvlc: add minimal example from wiki
The example will be included in the main page of libVLC documentation.
4 years ago
Alexandre Janniaux
b225c6dbc0
doc: QtGl: use nullptr and remove stray comments
4 years ago
Alexandre Janniaux
530cc094d1
doc: QtGl: use std::unique_ptr<>
This improves the documentation by exposing a C++-idiomatic way to
handle the resources without leaking for most users copying this part of
the code to their application.
4 years ago
Alexandre Janniaux
a6ab218963
doc: QtGL: switch to C++14
C++14 is needed to use std::make_unique<> in particular, and is already
a requirement for libvlc anyway.
4 years ago
Hugo Beauzée-Luyssen
e56d967334
doc: thumbnailer: Use new media thumbnailer API
4 years ago
Hugo Beauzée-Luyssen
d3be66ede9
doc: vlc-thumb: Remove trailing whitespace
4 years ago
Hugo Beauzée-Luyssen
3394964816
doc: thumbnailer: Remove deprecated options
4 years ago
Craig Turner
180cc78689
doc: QtGL: fix textures being recreated
QOpenGLFramebufferObject::takeTexture is detaching the current texture
and transfering ownership to the caller, and the texture was never
destroyed afterwards. It was leading to a huge memory consumption and
leak when using the sample app.
From the documentation[^1] in Qt5:
Returns the texture id for the texture attached to this framebuffer
object. The ownership of the texture is transferred to the caller.
If the framebuffer object is currently bound, an implicit release()
will be done. During the next call to bind() a new texture will be
created.
[1]: https://doc.qt.io/qt-5/qopenglframebufferobject.html#takeTexture
Co-authored-by: Alexandre Janniaux <ajanni@videolabs.io>
For the commit message and cleaning the fix mostly.
Fixes #25867
5 years ago
Steve Lhomme
f35b34c0a1
d3d11_player: adjust the swapchain size when resizing
This will provide better quality when expanding the size compared to the
initial size.
5 years ago