|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
Variables | |
| str | TZ = "America/Los_Angeles" |
Video clips on a run's timeline: listing, matching, and serving. Run: cd webviewer && .venv/bin/python -m pytest backend/test_video.py -q
| bytes backend.test_video.box | ( | bytes | kind, |
| bytes | payload ) |
Definition at line 19 of file test_video.py.
Referenced by mp4(), test_duration_none_for_unfinished_or_foreign_files(), test_frame_period_from_the_video_track(), and trak().
| backend.test_video.client | ( | rec_dir, | |
| monkeypatch ) |
Definition at line 225 of file test_video.py.
References epoch().
| float backend.test_video.epoch | ( | y, | |
| mo, | |||
| d, | |||
| h, | |||
| mi, | |||
| s ) |
Definition at line 33 of file test_video.py.
Referenced by client(), test_a_timing_file_that_does_not_parse_falls_back_to_the_name(), test_gateway_clock_offset_is_taken_off_so_clips_sit_on_the_daq_clock(), test_no_measured_offset_means_the_clocks_are_taken_as_equal(), test_overlap_keeps_partial_clips_and_drops_outside_ones(), test_record_starts_at_its_name_save_ends_at_its_name(), and test_timing_file_places_the_clip_exactly_and_spans_its_gap().
| bytes backend.test_video.mp4 | ( | float | seconds, |
| int | version = 0, | ||
| int | scale = 1000, | ||
| bytes | tail = b"" ) |
A file with just enough mp4 for a duration: ftyp, moov/mvhd, then some 'mdat'.
Definition at line 23 of file test_video.py.
References box().
Referenced by put(), test_clip_refuses_anything_not_listed(), test_clip_served_with_range(), test_duration_from_mvhd_v0_and_v1(), test_duration_none_for_unfinished_or_foreign_files(), test_frame_period_from_the_video_track(), and test_listing_skips_what_is_not_a_finished_clip().
| None backend.test_video.put | ( | rec_dir, | |
| str | folder, | ||
| str | stream, | ||
| float | seconds ) |
Definition at line 46 of file test_video.py.
References mp4().
Referenced by test_a_timing_file_that_does_not_parse_falls_back_to_the_name(), test_approximate_clip_serves_one_piece(), test_clip_is_not_stored_by_a_shared_cache(), test_clip_refuses_anything_not_listed(), test_folder_name_is_read_in_the_gateway_zone_not_utc(), test_gateway_clock_offset_is_taken_off_so_clips_sit_on_the_daq_clock(), test_listing_skips_what_is_not_a_finished_clip(), test_no_measured_offset_means_the_clocks_are_taken_as_equal(), test_overlap_keeps_partial_clips_and_drops_outside_ones(), test_record_starts_at_its_name_save_ends_at_its_name(), test_run_video_lists_overlapping_clips(), and test_timing_file_places_the_clip_exactly_and_spans_its_gap().
| None backend.test_video.put_timing | ( | rec_dir, | |
| folder, | |||
| stream, | |||
| timing ) |
Definition at line 135 of file test_video.py.
Referenced by test_gateway_clock_offset_is_taken_off_so_clips_sit_on_the_daq_clock(), test_no_measured_offset_means_the_clocks_are_taken_as_equal(), and test_timing_file_places_the_clip_exactly_and_spans_its_gap().
| backend.test_video.rec_dir | ( | tmp_path, | |
| monkeypatch ) |
Definition at line 38 of file test_video.py.
| backend.test_video.test_a_timing_file_that_does_not_parse_falls_back_to_the_name | ( | rec_dir, | |
| bad ) |
Definition at line 193 of file test_video.py.
| backend.test_video.test_approximate_clip_serves_one_piece | ( | rec_dir | ) |
Definition at line 201 of file test_video.py.
References put().
| backend.test_video.test_clip_is_not_stored_by_a_shared_cache | ( | client, | |
| rec_dir ) |
Definition at line 273 of file test_video.py.
| backend.test_video.test_clip_refuses_anything_not_listed | ( | client, | |
| rec_dir, | |||
| path ) |
Definition at line 294 of file test_video.py.
| backend.test_video.test_clip_served_with_range | ( | client, | |
| rec_dir ) |
Definition at line 260 of file test_video.py.
References mp4().
| backend.test_video.test_duration_from_mvhd_v0_and_v1 | ( | tmp_path | ) |
Definition at line 54 of file test_video.py.
References mp4().
| backend.test_video.test_duration_none_for_unfinished_or_foreign_files | ( | tmp_path | ) |
Definition at line 61 of file test_video.py.
| backend.test_video.test_folder_name_is_read_in_the_gateway_zone_not_utc | ( | rec_dir | ) |
Definition at line 106 of file test_video.py.
References put().
| backend.test_video.test_frame_period_from_the_video_track | ( | tmp_path | ) |
Definition at line 78 of file test_video.py.
| backend.test_video.test_gateway_clock_offset_is_taken_off_so_clips_sit_on_the_daq_clock | ( | rec_dir | ) |
Definition at line 157 of file test_video.py.
References epoch(), put(), and put_timing().
| backend.test_video.test_listing_skips_what_is_not_a_finished_clip | ( | rec_dir | ) |
Definition at line 113 of file test_video.py.
| backend.test_video.test_no_measured_offset_means_the_clocks_are_taken_as_equal | ( | rec_dir | ) |
Definition at line 175 of file test_video.py.
References epoch(), put(), and put_timing().
| backend.test_video.test_no_mount_means_no_clips | ( | monkeypatch, | |
| tmp_path ) |
Definition at line 125 of file test_video.py.
| backend.test_video.test_overlap_keeps_partial_clips_and_drops_outside_ones | ( | rec_dir | ) |
Definition at line 210 of file test_video.py.
| backend.test_video.test_record_starts_at_its_name_save_ends_at_its_name | ( | rec_dir | ) |
Definition at line 94 of file test_video.py.
| backend.test_video.test_run_video_lists_overlapping_clips | ( | client, | |
| rec_dir ) |
Definition at line 237 of file test_video.py.
References put().
| backend.test_video.test_run_video_unindexed_is_409 | ( | client | ) |
Definition at line 255 of file test_video.py.
| backend.test_video.test_run_video_without_mount_says_unavailable | ( | client, | |
| monkeypatch ) |
Definition at line 249 of file test_video.py.
| backend.test_video.test_timing_file_places_the_clip_exactly_and_spans_its_gap | ( | rec_dir | ) |
Definition at line 139 of file test_video.py.
References epoch(), put(), and put_timing().
| bytes backend.test_video.trak | ( | bytes | handler, |
| int | scale, | ||
| int | dur, | ||
| int | samples ) |
Definition at line 70 of file test_video.py.
References box().
Referenced by test_frame_period_from_the_video_track().
| str backend.test_video.TZ = "America/Los_Angeles" |
Definition at line 16 of file test_video.py.