itchio / capsule

🎬 Cross-platform hotkey short video capture for games
GNU General Public License v2.0
178 stars 14 forks source link

Support planar video formats #27

Open fasterthanlime opened 7 years ago

fasterthanlime commented 7 years ago

Basically:

So we need to adjust the encoder format struct, see definition here and make the encoder code use it properly.

Also, for OpenGL capture, writevideoformat should take care of the stride vflip trick by itself, see these lines.

In general the encoder code needs a big cleanup but this can be done before or after it independently.