David Newman
David Newman
Cool. I will try that out.
This didn't work for me. So I cleaned up the code a different way. I have removed settings.cpp/h and atlbase.h from the Windows builds.
An existing CineForm users will have these setup via the registry keys. New users can run with the defaults as they have not disk based database of active metadata changes....
Look at ConvertBYR5ToFrame16s() in frame.c:5473. All the MSBs, then all the LSBs. outB = (uint8_t *)uncompressed_chunk; outB += srcrow * srcwidth * 4 * 3/2; //12-bit outN = outB; outN...
Ultimately bayer is encoded as four difference channels, something like G1+G2, R-G', B-G' and G1-G2, this extracts redundancy and improves compression. I don't remember the resolution setup for BYR4/5 pixels,...
v210 has some additional size limitations -- 96x64 should be the minimal. However I'm not seeing a crash in the VFW decoder. Are you reporting encoding or decoding issue?
Okay, never tested resolutions so low. There must be a lower limit on the thumbnail res (which is input res divide 8 for RGB and 16 for YUV.) The resolutions...
Does CFHD_StopEncoderPool() not work? I my quick test it seems to do what you need. It should finish any work in progress, but no new frames with be started.
Any recommendations? In the sample code this situation doesn't come up as it only queues frames for encoding if there is slots in the queue. if(queuedFrames < POOL_QUEUE_LENGTH) CFHD_EncodeAsyncSample(..), queuedFrames++;...
Does everything work if you crop the source to 2048x1362? Formats like STEREO3D_TYPE_STACKED or STEREO3D_TYPE_FIELDS can't work with odd sizes. STACKED would present both frames in under-over scaled to fit...