diff options
author | XANTRONIX Development | 2022-03-11 12:38:56 -0500 |
---|---|---|
committer | XANTRONIX Development | 2022-03-11 12:38:56 -0500 |
commit | 5007578cacbc64d4b9854d1cfde857c00647eb35 (patch) | |
tree | a3b78f8c8ce0f565a01bec0e2e97fa3fa3b7b261 /src | |
parent | fc164c60cd7d582784827de9a7560cba46fa13e2 (diff) | |
download | xas-5007578cacbc64d4b9854d1cfde857c00647eb35.tar.gz xas-5007578cacbc64d4b9854d1cfde857c00647eb35.tar.bz2 xas-5007578cacbc64d4b9854d1cfde857c00647eb35.zip |
Improve stereo image separation
Diffstat (limited to 'src')
-rw-r--r-- | src/spatial.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/spatial.c b/src/spatial.c index b764a03..c79b8e8 100644 --- a/src/spatial.c +++ b/src/spatial.c @@ -270,11 +270,19 @@ ssize_t scene_fill(xas_spatial_scene *scene, value_r = sample_scale(src[i], obj->distance_r); if (!within_cone(obj->point, cone_l)) { - value_l /= 3.0f; + if (within_cone(obj->point, cone_r)) { + value_l /= 8.0f; + } else { + value_l /= 3.0f; + } } if (!within_cone(obj->point, cone_r)) { - value_r /= 3.0f; + if (within_cone(obj->point, cone_l)) { + value_r /= 8.0f; + } else { + value_r /= 3.0f; + } } if (buffer->index == buffer->size) { |