Skip to content

Commit

Permalink
source: set full range flag when the ranges indicate such
Browse files Browse the repository at this point in the history
  • Loading branch information
fzwoch committed Jun 9, 2022
1 parent 9087961 commit 9783363
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions source.go
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,12 @@ func source_loop(h *teleportSource) {
default:
h.frame.format = C.VIDEO_FORMAT_I420
}

if i.image_header.ColorRangeMin == [3]float32{0, 0, 0} && i.image_header.ColorRangeMax == [3]float32{1, 1, 1} {
h.frame.full_range = true
} else {
h.frame.full_range = false
}
default:
h.images = h.images[1:]
continue
Expand Down

0 comments on commit 9783363

Please sign in to comment.