[vlc-commits] [Git][videolan/vlc][3.0.x] dav1d: add dav1d-all-layers flag
Steve Lhomme (@robUx4)
gitlab at videolan.org
Mon Sep 9 06:55:32 UTC 2024
Steve Lhomme pushed to branch 3.0.x at VideoLAN / VLC
Commits:
0490fe53 by Tristan Matthews at 2024-09-09T06:37:09+00:00
dav1d: add dav1d-all-layers flag
This will output all spatial layers if requested, defaults to false (the built-in dav1d
behavior would defaults this to true).
Fix suggested-by Maryla Ustarroz
Fixes #28776
(cherry picked from commit 6ffede3f445586e5d368de936666cabb84f6a16f)
- - - - -
1 changed file:
- modules/codec/dav1d.c
Changes:
=====================================
modules/codec/dav1d.c
=====================================
@@ -53,6 +53,8 @@ static void CloseDecoder(vlc_object_t *);
#define THREAD_FRAMES_LONGTEXT N_( "Max number of threads used for frame decoding, default 0=auto" )
#define THREAD_TILES_TEXT N_("Tiles Threads")
#define THREAD_TILES_LONGTEXT N_( "Max number of threads used for tile decoding, default 0=auto" )
+#define LAYERS_TEXT N_("All Layers")
+#define LAYERS_LONGTEXT N_( "Whether or not to display all spatial layers, default false" )
vlc_module_begin ()
@@ -73,6 +75,7 @@ vlc_module_begin ()
add_integer_with_range("dav1d-thread-tiles", 0, 0, DAV1D_MAX_TILE_THREADS,
THREAD_TILES_TEXT, THREAD_TILES_LONGTEXT, false)
#endif
+ add_bool( "dav1d-all-layers", false, LAYERS_TEXT, LAYERS_LONGTEXT, false)
vlc_module_end ()
/*****************************************************************************
@@ -363,6 +366,7 @@ static int OpenDecoder(vlc_object_t *p_this)
if (p_sys->s.n_frame_threads == 0)
p_sys->s.n_frame_threads = (i_core_count < 16) ? i_core_count : 16;
#endif
+ p_sys->s.all_layers = var_InheritBool( p_this, "dav1d-all-layers" );
p_sys->s.allocator.cookie = dec;
p_sys->s.allocator.alloc_picture_callback = NewPicture;
p_sys->s.allocator.release_picture_callback = FreePicture;
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/0490fe5396ed6eb3a731d40f9fd2af5b07cc220f
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/0490fe5396ed6eb3a731d40f9fd2af5b07cc220f
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list