obs-studio/plugins/mac-virtualcam/src/dal-plugin
Mathijs Kadijk 970c284a65 mac-virtualcam: Prevent PTS rounding
All presentation time stamps are rounded to whole seconds during the
conversion from nanoseconds to seconds, because of the immediate cast
to `int64_t`. This results in the same presentation time stamp being
send to consumers for a whole second.

In previews/live streams this isn't super visible as last frame is
often assumed to be the newest and the stream is updated. It's more
problematic when recording since APIs like Apple's AVFoundation don't
allow duplicate presentation time stamps or it can look like frames are
produced in huge bursts once per second.

In this PR `CMTimeMakeWithSeconds` is used instead of `CMTimeMake` to
make sure the conversion is done correctly and simplify the calculation
we have to do a little.
2023-03-09 15:45:48 +01:00
..
CMakeLists.txt mac-virtualcam: Use IOSurface to share output with virtual cameras 2022-06-10 13:36:54 +02:00
CMSampleBufferUtils.h mac-virtualcam: Remove unused CMSampleBuffer utility functions 2022-06-10 13:37:03 +02:00
CMSampleBufferUtils.mm mac-virtualcam: Prevent PTS rounding 2023-03-09 15:45:48 +01:00
Defines.h mac-virtualcam: Fix file mode 2020-12-18 00:11:00 -08:00
Info.plist
Logging.h mac-virtualcam: Fix compiler warnings 2022-05-04 12:09:04 -04:00
OBSDALDevice.h
OBSDALDevice.mm mac-virtualcam: Remove unneeded includes 2021-10-16 15:27:51 -07:00
OBSDALMachClient.h mac-virtualcam: Use IOSurface to share output with virtual cameras 2022-06-10 13:36:54 +02:00
OBSDALMachClient.mm mac-virtualcam: Fix memory access issues for shared IOSurfaces 2023-01-16 12:16:16 -05:00
OBSDALObjectStore.h
OBSDALObjectStore.mm
OBSDALPlugIn.h mac-virtualcam: Remove unneeded includes 2021-10-16 15:27:51 -07:00
OBSDALPlugIn.mm mac-virtualcam: Fix compiler warnings 2023-02-18 15:22:33 -08:00
OBSDALPlugInInterface.h
OBSDALPlugInInterface.mm mac-virtualcam: Fix compiler warnings 2022-05-04 12:09:04 -04:00
OBSDALPlugInMain.mm mac-virtualcam: Fix compiler warnings 2022-05-04 12:09:04 -04:00
OBSDALStream.h mac-virtualcam: Use IOSurface to share output with virtual cameras 2022-06-10 13:36:54 +02:00
OBSDALStream.mm mac-virtualcam: Fix incorrect PTS on Apple Silicon 2023-03-09 15:45:48 +01:00
placeholder.png