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

h265 add docs and tests #371

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from
Draft

Conversation

philipch07
Copy link
Member

Adds docs and updates tests to h265.

CLOUD-30

Copy link

Deploying scuffle-docrs with  Cloudflare Pages  Cloudflare Pages

Latest commit: e22a17e
Status: ✅  Deploy successful!
Preview URL: https://4d079428.scuffle-docrs.pages.dev
Branch Preview URL: https://pr-371.scuffle-docrs.pages.dev

View logs

/// 2 means the stream supports tile based parallel decoding.
///
/// 3 means the stream supports entropy coding sync based parallel decoding.
pub parallelism_type: u8,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps we should create a nutype-enum for this field which has the fields u are talking about but also supports unknowns.

///
/// 3 means the stream supports entropy coding sync based parallel decoding.
pub parallelism_type: u8,
/// The `avg_frame_rate` as a u16.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how does this field work for non-integer framerates

///
/// 1 means the stream has a constant framerate.
///
/// 2 means the representation of each temporal layer in the stream has a constant framerate.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Likewise with the nutype-enum

pub nalus: Vec<Bytes>,
}

#[derive(Debug, Clone, PartialEq, Copy)]
/// Nalu Type
/// The Nalu Type.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be a nutype enum

pub constant_frame_rate: u8,
/// The `num_temporal_layers` as a u8. This is the count of tepmoral layers or `sub-layer`s as defined in ISO/IEC 23008-2.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should make nutype enums

@philipch07 philipch07 force-pushed the pch07/h265-add-docs-and-tests branch 2 times, most recently from a7127b6 to 2bab62b Compare February 26, 2025 18:01
@philipch07 philipch07 force-pushed the pch07/h265-add-docs-and-tests branch from 2bab62b to 262b697 Compare March 1, 2025 00:42
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.

2 participants