This website is being translated through machine translation by a third-party service. Basler does not warrant the accuracy, reliability or timeliness of any information translated by this system and will not accept liability for loss or damage incurred as a result. Content that has not yet been translated appears in English. Switch to English version
CanAddWithoutConversion(EPixelType pixelType, uint32_t width, uint32_t height, size_t paddingX, EImageOrientation orientation) Can be used to check whether the given image is added to the AVI file without prior conversion when Add() is called.
virtual bool
CanAddWithoutConversion(const IImage & image) Can be used to check whether the given image is added to the AVI file without prior conversion when Add() is called.
virtual size_t
GetCountOfAddedImages() const Provides access to the number of images that have been added to the AVI file.
virtual size_t
GetImageDataBytesWritten() const Provides access to the number of image data bytes written to the AVI file.
This method is synchronized using the lock provided by GetLock().
Converts the image to the correct format if required.
The image is automatically converted to the format passed when opening the file if needed. The image is also converted if the stride of the passed image is not aligned to 4 byte. The image is also converted if the orientation of the passed image does mot match the value passed when opening the AVI file.
If more control over the conversion is required, the CImageFormatConverter class can be used to convert other images with a CPylonBitmapImage object as target. The CPylonBitmapImage object can then be added to the AVI file.
Can be used to check whether the given image is added to the AVI file without prior conversion when Add() is called.
Parameters:
pixelType The pixel type of the image to save.
width The number of pixels in a row of the image to save.
height The number of rows of the image to save.
paddingX The number of extra data bytes at the end of each row.
orientation The vertical orientation of the image data in the AVI file.
Return: Returns true if the image is added to the AVI stream without prior conversion when Add() is called. Returns false if the image is automatically converted when Add() is called. Returns false if the image cannot be added at all. See the preconditions of Add() for more information.
Return: Returns true if the image is added to the AVI stream without prior conversion when Add() is called. Returns false if the image is automatically converted when Add() is called. Returns false if the image cannot be added at all. See the preconditions of Add() for more information.
Provides access to the number of image data bytes written to the AVI file.
Return: Returns the number of image data bytes that have been written to the AVI file. Returns 0 if no AVI File has been written yet. This size does not include the sizes of the AVI file header and AVI file index.
Error Safety:
Does not throw C++ exceptions.
This value is updated with each call to AviWriter::Add().
Depending on the used image format and codec, about 5 KB of header information and padding bytes are written to the AVI file. Furthermore, 24 additional bytes are needed per image for chunk header and index entry data.