Enable 3 encoders by default

This commit is contained in:
Patrick Nicolas
2024-11-02 23:01:07 +01:00
parent 45bb08987b
commit b1676d6707
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ Bitrate of the video, in bit/s. Split among decoders based on size and codecs.
## `encoders`
A list of encoders to use.
Default value: single encoder.
Default value: 3 encoders in order 1/8th, 3/8th and 4/8th of the image.
WiVRn has the ability to split the video in blocks that are processed independently, this may use resources more effectively and reduce latency.
All the provided encoders are put into groups, groups are executed concurrently and items within a group are processed sequentially.
+2 -2
View File
@@ -42,7 +42,7 @@ namespace wivrn
// TODO: size independent bitrate
static const uint64_t default_bitrate = 50'000'000;
// #define WIVRN_SPLIT_ENCODERS 1
#define WIVRN_SPLIT_ENCODERS 1
static bool is_nvidia(vk::PhysicalDevice physical_device)
{
@@ -240,7 +240,7 @@ static std::vector<configuration::encoder> get_encoder_default_settings(wivrn_vk
.codec = base.codec,
},
{
.name = encoder_vaapi,
.name = base.name,
.width = 0.5,
.offset_x = 0.5,
.group = 0,