y5gfunc.source.wobbly.processors.crop¶
crop
¶
Crop processor implementation.
Classes:
| Name | Description |
|---|---|
CropProcessor |
Crop processor implementation |
Attributes:
| Name | Type | Description |
|---|---|---|
core |
|
CropProcessor
¶
Bases: BaseProcessor
Crop processor implementation
Initialize crop processor
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
|
bool
|
Whether this is early crop (True) or final crop (False) |
True
|
Methods:
| Name | Description |
|---|---|
process |
Process crop operation |
Attributes:
| Name | Type | Description |
|---|---|---|
early |
|
|
keys |
|
Source code in y5gfunc/source/wobbly/processors/crop.py
process
¶
process(clip: VideoNode, project: ProjectData, frame_props: FramePropertyMap, frame_mapping: FrameMap, presets: PresetDict) -> tuple[VideoNode, FramePropertyMap, FrameMap]
Process crop operation
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
|
VideoNode
|
Input video clip |
required |
|
ProjectData
|
Project data |
required |
|
FramePropertyMap
|
Frame property mapping |
required |
|
FrameMap
|
Frame number mapping |
required |
|
PresetDict
|
Preset function dictionary |
required |
Returns:
| Type | Description |
|---|---|
tuple[VideoNode, FramePropertyMap, FrameMap]
|
Processed clip, updated frame properties and frame mapping |