Ingvar Stepanyan

Results 1089 comments of Ingvar Stepanyan

> And maybe YUV/NV12 code can be refactored to rely on [aws/dcv-color-primitives](https://github.com/aws/dcv-color-primitives) to delegate complexity and maintenance to an external crate. That looks promising.

What's interesting, I thought stopping stream and then changing camera format might help, but `CallbackCamera::stop_stream` itself also hangs: ```rust use nokhwa::pixel_format::RgbFormat; use nokhwa::utils::{RequestedFormat, RequestedFormatType}; use nokhwa::CallbackCamera; fn main() -> anyhow::Result...

> Looks like there's some lock issue in CallbackCamera that doesn't let it process any incoming messages once the stream is open. Yeah I think the problem is here: https://github.com/l1npengtul/nokhwa/blob/12cfe670e89be6486f11efda7fa5b38c87233c4b/src/threaded.rs#L555-L556...

Semi-related question: I see you're using `unsafe impl Send for Camera {}`. Is it definitely safe for all camera backends? I know some device drivers (not sure about webcams) really...

> adding ra-multiplex into the loop is probably going to cause you more trouble than it's worth FWIW for me it's still useful because I tend to keep my laptop...

> Miri isn't a fast interpreter. It's really slow. So I don't think it is actually a good environment to use to run code, I see it as more useful...

> I think a first step would be to create a new codegen backend which doesn't actually do any codegen and just dumps the metadata. That way we should be...

@bjorn3 I've rebased your branch onto master, updated deps and fixed cfg's from `target_env` to `target_os` - you can check it out at https://github.com/RReverser/rust/tree/compile_rustc_for_wasm. Eventually it compiled successfully, but then...

@bjorn3 Oh... maybe it's just been taking so long (especially the compilation part). I've tried `wasmer` with `--backend singlepass` instead now, and it has actually worked! ``` $ ./wasmer run...