The "Video signal type present" information is written to the output
video file when it is created, and later is used by the decoder to
properly decode the compressed video data. The saved attributes
are:
- format type (PAL, NTSC, etc.)
- color primaries (BT709, SMPTE170M, etc.)
- transfer characteristics (BT709, SMPTE170M, etc.)
- color matrix ((BT709, SMPTE170M, etc.)
These modifications allow the client to specify these attributes
and, if specified, makes sure they are written to the output file.
The "Video signal type present" information is written to the output
video file when it is created, and later is used by the decoder to
properly decode the compressed video data. The saved attributes
are:
- format type (PAL, NTSC, etc.)
- color primaries (BT709, SMPTE170M, etc.)
- transfer characteristics (BT709, SMPTE170M, etc.)
- color matrix ((BT709, SMPTE170M, etc.)
These modifications allow the client to specify these attributes
and, if specified, makes sure they are written to the output file.
This adds some spacing to the version struct, so that astyle won't
need to change the file.
This was changed in 02354832cf, both in the earlier codec_ver.h
and in the script that generates it, but a recent change manually
overwrote the spacing.
Since these spaces aren't at the start of lines, astyle doesn't
change it when fixing indentation.
The spacing and alignment is manually fixed up in a few places.
Previously, the variable itself wasn't const (which meant that
it could be set to point to another const string instead).
By declaring it as const, gcc doesn't warn about it being unused,
and we can get rid of a workaround.
This function doesn't return a struct, but fills in a struct via
a provided pointer.
The ABI of returning a struct is different between MSVC and mingw.
This allows using the same function from mingw, even though the DLL
has been built with MSVC.
When the header is used from C instead of C++, an empty parameter
list means that it can take any number of parameters, and can cause
warnings like "function declaration isn’t a prototype" with some
C compilers. Clarify this by explicitly adding void to this function.
If the codec library is loaded dynamically, it may be necessary that
the loaded library actually matches the version that was used when
it was built, to avoid issues due to ABI differences. Therefore add
a public function to allow getting the version of the currently
loaded library.