- Posts: 1
- Joined: Mon Feb 10, 2020 2:05 am
- Real Name: Soichiro Iwai
We have a sample application called "CaptureStills" which may be useful for what you are trying to do. In this sample application, incoming video frames are stored as .png images.
These files are encoded and saved to disck in the ImageWriter::WriteBgra32VideoFrameToPNG() method, located in ImageWriterWin.cpp
The CreateEncoder function is responsible for converting this image file. To save the image file as a .tiff file instead of a .png file, change the following code:
- Code: Select all
CreateEncoder(GUID_ContainerFormatPng, NULL, &bitmapEncoder)
- Code: Select all
CreateEncoder(GUID_ContainerFormatTiff, NULL, &bitmapEncoder)
Here is Microsoft's documentation of this container format for reference.
https://docs.microsoft.com/en-us/window ... ateencoder
Let me know how you go.