VQEG / siti-tools

SI TI calculation tools
MIT License
39 stars 7 forks source link

Y4M does not handle > 8bpp content #12

Closed slhck closed 2 years ago

slhck commented 3 years ago

Y4M seems to have issues storing 10-bit or higher content.

The values read out by PyAV seem to be 8-bit.

If we use np.frombuffer(frame.planes[0], np.uint8), it does not work with 10-bit content anyway, since the line size is too large.

if we use frame.to_ndarray(format="gray"), we get an 8 bpp range again.