PylonAviCompressionOptions.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /*-----------------------------------------------------------------------------
  2. Basler pylon C SDK
  3. Copyright (c) 2012-2021 Basler AG
  4. http://www.baslerweb.com
  5. -----------------------------------------------------------------------------*/
  6. /*!
  7. \file
  8. \brief Contains PylonAviCompressionOptions_t definition.
  9. */
  10. #ifndef INCLUDED_PYLONAVICOMPRESSIONOPTIONS_H_6841242
  11. #define INCLUDED_PYLONAVICOMPRESSIONOPTIONS_H_6841242
  12. #ifdef _MSC_VER
  13. # pragma warning( push )
  14. # pragma warning( disable : 4201 ) // warning C4201: nonstandard extension used : nameless struct/union
  15. #endif
  16. #include <vfw.h>
  17. #ifdef _MSC_VER
  18. # pragma warning( pop )
  19. #endif
  20. #include <pylonc/PylonCDefines.h>
  21. #pragma pack(push, PYLONC_PACKING)
  22. /** \addtogroup pylon pylon Interface
  23. * @{
  24. */
  25. /** \brief Wraps the AVI compression options of the Video for Window API. File PylonAviCompressionOptions.h has to be included.
  26. */
  27. typedef struct tag_PylonAviCompressionOptions_t
  28. {
  29. HWND hParentWindow; /*!< \brief Optional handle to the parent window for the Compression Options dialog box. See the Video for Windows API AviSaveOptions() MSDN documentation. */
  30. _Bool showDialog; /*!< \brief Optionally show Compression Options dialog box. See the Video for Windows API AviSaveOptions() MSDN documentation. */
  31. _Bool userDialogReturnOk; /*!< \brief Is set to true in the call to the CAviWriter::Open() method if the user pressed OK in the dialog. The compression is not set up if cancel has been pressed. */
  32. LONG autoKeyFrameInsertionRate; /*!< \brief Indicates to insert a key frame every nth image when KeyFrameSelection_Auto is used. */
  33. AVICOMPRESSOPTIONS compressionOptions; /*!< \brief The AVICOMPRESSOPTIONS structure needs to be set up with the four character code identifying the codec and the parameter settings of the codec.
  34. For more information, see the MSDN documentation of the Video for Windows API and the documentation of the codec you are using. */
  35. } PylonAviCompressionOptions_t;
  36. /**
  37. * @}
  38. */
  39. #pragma pack(pop, PYLONC_PACKING)
  40. #endif /* INCLUDED_PYLONAVICOMPRESSIONOPTIONS_H_6841242 */