yta-video-frame-time 0.0.9__py3-none-any.whl → 0.0.10__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of yta-video-frame-time might be problematic. Click here for more details.

@@ -354,7 +354,7 @@ class _T:
354
354
  variation.
355
355
 
356
356
  The formula:
357
- - `int(t * fps)`
357
+ - `int(round(t * fps))`
358
358
  """
359
359
  t = (
360
360
  self.truncated(t)
@@ -542,7 +542,7 @@ class _Pts:
542
542
  variation.
543
543
 
544
544
  The formula:
545
- - `int((pts * time_base) * fps)`
545
+ - `int(round((pts * time_base) * fps))`
546
546
  """
547
547
  return self._t_handler.t.to_index(
548
548
  self.to_t(pts, do_truncate = None),
@@ -758,9 +758,9 @@ def frame_t_to_index(
758
758
  also provided 'fps'.
759
759
 
760
760
  The formula:
761
- - `int(t * fps)`
761
+ - `int(round(t * fps))`
762
762
  """
763
- return int(parse_fraction(t) * fps)
763
+ return int(round(t * fps))
764
764
 
765
765
  def frame_index_to_t(
766
766
  index: int,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: yta-video-frame-time
3
- Version: 0.0.9
3
+ Version: 0.0.10
4
4
  Summary: Youtube Autonomous Video Frame Time Module
5
5
  Author: danialcala94
6
6
  Author-email: danielalcalavalera@gmail.com
@@ -0,0 +1,6 @@
1
+ yta_video_frame_time/__init__.py,sha256=-YOa7lOKdiA3FwDEHHU1tHobnmhjFpTaVLfJQLZqoMI,22252
2
+ yta_video_frame_time/t_fraction.py,sha256=lH-rDL2ydoEZhrkgjNMiJpzL5dCy7FanLbTae79Pw1c,24045
3
+ yta_video_frame_time-0.0.10.dist-info/LICENSE,sha256=6kbiFSfobTZ7beWiKnHpN902HgBx-Jzgcme0SvKqhKY,1091
4
+ yta_video_frame_time-0.0.10.dist-info/METADATA,sha256=hgO8QXAVfX-fmkQhERaMb5TEQMKhSygpOj8z9c76doE,516
5
+ yta_video_frame_time-0.0.10.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
6
+ yta_video_frame_time-0.0.10.dist-info/RECORD,,
@@ -1,6 +0,0 @@
1
- yta_video_frame_time/__init__.py,sha256=-YOa7lOKdiA3FwDEHHU1tHobnmhjFpTaVLfJQLZqoMI,22252
2
- yta_video_frame_time/t_fraction.py,sha256=vfLF1R-4PYfP9ItNxbCBM14ck9UBxRpfFy_idsb5ESo,24033
3
- yta_video_frame_time-0.0.9.dist-info/LICENSE,sha256=6kbiFSfobTZ7beWiKnHpN902HgBx-Jzgcme0SvKqhKY,1091
4
- yta_video_frame_time-0.0.9.dist-info/METADATA,sha256=Qwj6QcsZRcSZRURvdB3DHdiyEg3otcOROVwoVje4wG4,515
5
- yta_video_frame_time-0.0.9.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
6
- yta_video_frame_time-0.0.9.dist-info/RECORD,,