Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add packet size functions and helpers #167

Merged
merged 20 commits into from
May 22, 2024
Merged

Add packet size functions and helpers #167

merged 20 commits into from
May 22, 2024

Conversation

LightArrowsEXE
Copy link
Member

No description provided.

Also adds a new helper function, `get_file_from_path_or_clip`, that reads the `idx_filepath` if `file=None`.

Furthermore, this also splits the function up into sub-functions for readability, and features some speed-ups.
The previous implementation would run two frameevals—once to set the packet sizes of the individual frame, and again to set scene-based ones. This is wasteful. Instead some code has been duplicated into the second frameeval and the first is skipped if Keyframes are passed.
get_packet_size: Docstring updates

get_packet_size: Rewrite `out_file`'s param's purpose in docstring
@LightArrowsEXE LightArrowsEXE merged commit a22e402 into master May 22, 2024
2 checks passed
@LightArrowsEXE LightArrowsEXE deleted the packets branch May 22, 2024 14:30
LightArrowsEXE added a commit that referenced this pull request Sep 25, 2024
* New function: get_packet_sizes

* flake8

* get_packet_sizes: Add `out_file` param

Also adds a new helper function, `get_file_from_path_or_clip`, that reads the `idx_filepath` if `file=None`.

Furthermore, this also splits the function up into sub-functions for readability, and features some speed-ups.

* flake8, typo

* flake8

* get_packet_sizes: Add Keyframes support

* get_packet_scene_stats: Fix iterable argument is empty error

* _set_scene_stats: Add back-up prop values

* get_packet_sizes: Add additional warning for fallback props

* get_packet_sizes: Param to return list of packet sizes

* get_packet_scene_stats: Minor typing fix

* get_packet_sizes: Add offset parameter

* get_packet_sizes: Reduce total frameevals with scening

The previous implementation would run two frameevals—once to set the packet sizes of the individual frame, and again to set scene-based ones. This is wasteful. Instead some code has been duplicated into the second frameeval and the first is skipped if Keyframes are passed.

* get_packet_sizes: Docstring updates

get_packet_size: Docstring updates

get_packet_size: Rewrite `out_file`'s param's purpose in docstring

* get_packet_sizes: Set packet size to -1 with negative offsets

fix typo oops

* Move packet functions to own submodule

* get_file_from_clip: rewrite old func, add docstring

* get_file_from_clip: Add ballback value

* get_packet_sizes: filepath -> src_file

* get_packet_sizes: get_file_from_path_or_clip -> get_file_from_clip
LightArrowsEXE added a commit that referenced this pull request Sep 25, 2024
* New function: get_packet_sizes

* flake8

* get_packet_sizes: Add `out_file` param

Also adds a new helper function, `get_file_from_path_or_clip`, that reads the `idx_filepath` if `file=None`.

Furthermore, this also splits the function up into sub-functions for readability, and features some speed-ups.

* flake8, typo

* flake8

* get_packet_sizes: Add Keyframes support

* get_packet_scene_stats: Fix iterable argument is empty error

* _set_scene_stats: Add back-up prop values

* get_packet_sizes: Add additional warning for fallback props

* get_packet_sizes: Param to return list of packet sizes

* get_packet_scene_stats: Minor typing fix

* get_packet_sizes: Add offset parameter

* get_packet_sizes: Reduce total frameevals with scening

The previous implementation would run two frameevals—once to set the packet sizes of the individual frame, and again to set scene-based ones. This is wasteful. Instead some code has been duplicated into the second frameeval and the first is skipped if Keyframes are passed.

* get_packet_sizes: Docstring updates

get_packet_size: Docstring updates

get_packet_size: Rewrite `out_file`'s param's purpose in docstring

* get_packet_sizes: Set packet size to -1 with negative offsets

fix typo oops

* Move packet functions to own submodule

* get_file_from_clip: rewrite old func, add docstring

* get_file_from_clip: Add ballback value

* get_packet_sizes: filepath -> src_file

* get_packet_sizes: get_file_from_path_or_clip -> get_file_from_clip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant