[vlc-commits] [Git][videolan/vlc][master] dav1d: add dav1d-all-layers flag

Felix Paul Kühne (@fkuehne) gitlab at videolan.org
Fri Sep 6 16:54:37 UTC 2024



Felix Paul Kühne pushed to branch master at VideoLAN / VLC


Commits:
6ffede3f by Tristan Matthews at 2024-09-06T16:41:23+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

- - - - -


1 changed file:

- modules/codec/dav1d.c


Changes:

=====================================
modules/codec/dav1d.c
=====================================
@@ -74,6 +74,7 @@ vlc_module_begin ()
     add_integer_with_range("dav1d-thread-tiles", 0, 0, DAV1D_MAX_TILE_THREADS,
                 THREAD_TILES_TEXT, THREAD_TILES_LONGTEXT)
 #endif
+    add_bool( "dav1d-all-layers", false, "Display all spatial layers", NULL )
 vlc_module_end ()
 
 /*****************************************************************************
@@ -465,6 +466,7 @@ static int OpenDecoder(vlc_object_t *p_this)
     if (p_sys->s.n_frame_threads == 0)
         p_sys->s.n_frame_threads = __MAX(1, vlc_GetCPUCount());
 #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/6ffede3f445586e5d368de936666cabb84f6a16f

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/6ffede3f445586e5d368de936666cabb84f6a16f
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