Problem
Parameterized accelerated-codec constructors currently delegate through constructors that install a default vectors format, then immediately replace it with the requested format. This performs redundant initialization and can trigger avoidable side effects.
Proposed change
Have each parameterized constructor call FilterCodec directly and initialize exactly one vectors format with the requested parameters. Preserve every public constructor, codec name, delegate, default, and persisted format.
Apply this narrowly to current main; do not restore the native-buffer implementation reverted by #2597.
Problem
Parameterized accelerated-codec constructors currently delegate through constructors that install a default vectors format, then immediately replace it with the requested format. This performs redundant initialization and can trigger avoidable side effects.
Proposed change
Have each parameterized constructor call
FilterCodecdirectly and initialize exactly one vectors format with the requested parameters. Preserve every public constructor, codec name, delegate, default, and persisted format.Apply this narrowly to current
main; do not restore the native-buffer implementation reverted by #2597.