mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-09-27 02:43:48 +02:00
Add custom quality factors and quantizer bitrate mode (#448)
* Add custom quality factors and quantizer bitrate mode (closes #327) * Fix quantizer mode fallback and per-frame quantizer edge cases * Clean up quantizer mode tests * Quantizer implementation * Add quality tests * Improve conversion codec error message, make test more lenient * Add quantizer support blog post --------- Co-authored-by: Vanilagy <[email protected]>
This commit is contained in:
@@ -1598,8 +1598,12 @@ const generateDocs = (entryFiles: string[], apiConfigFile: string, dry = false)
|
||||
const isSimpleUnion = resolvedType.isUnion() && resolvedType.types.every(t =>
|
||||
t.flags & (ts.TypeFlags.StringLiteral | ts.TypeFlags.NumberLiteral | ts.TypeFlags.BooleanLiteral | ts.TypeFlags.String | ts.TypeFlags.Number | ts.TypeFlags.Boolean),
|
||||
);
|
||||
// For unions of named types, the properties are documented on the referenced types themselves, so
|
||||
// listing (the intersection of) them here would just be redundant
|
||||
const isUnionOfTypeReferences = ts.isUnionTypeNode(declaration.type)
|
||||
&& declaration.type.types.every(t => ts.isTypeReferenceNode(t));
|
||||
|
||||
if (!isPrimitive && !isSimpleUnion) {
|
||||
if (!isPrimitive && !isSimpleUnion && !isUnionOfTypeReferences) {
|
||||
const typeProperties = typeChecker.getPropertiesOfType(resolvedType);
|
||||
|
||||
typeProperties.forEach((prop) => {
|
||||
|
||||
Reference in New Issue
Block a user