tshino / softcam

A library to make a virtual webcam on Windows
MIT License
117 stars 31 forks source link

Different Video Formats? #50

Open teoAlivanoglou opened 8 months ago

teoAlivanoglou commented 8 months ago

Hello. I understand that currently you can only use BGR24 format. It would be great if you could expand to ABGR32 (or a different layout) and or any YUV format. Other than that, it's a great wrapper.

Edit: Is it possible to choose between Progressive and Interlaced?

tshino commented 8 months ago

Thank you for the suggestion. I think it is possible technically. Probably I would make a few new APIs to add this feature.

ank-007 commented 8 months ago

if possible, please add support to JPEG format also, great project btw ;)

teoAlivanoglou commented 8 months ago

if possible, please add support to JPEG format also, great project btw ;)

I doubt it's possible (or at least viable). Even YUV is a bit of a stretch as you would need to write converters for these formats (as long as you want to stay dependency free).

These, however, should be much more realistic expectations:

https://github.com/tshino/softcam/blob/bc0323470a737b9c098b286daf3d77551617cd2d/src/baseclasses/amvideo.cpp#L20-L38