类 VideoBlock.Builder
java.lang.Object
io.agentscope.core.message.VideoBlock.Builder
- 封闭类:
VideoBlock
Builder for constructing VideoBlock instances.
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明build()Builds a new VideoBlock with the configured source.Sets the frames per second (FPS) of the video.Sets the maximum number of frames to capture from the video.Sets the maximum pixel threshold for input video frames.Sets the minimum pixel threshold for input video frames.Sets the source for the video content.totalPixels(Integer totalPixels) Sets the total pixels of all frames extracted from the video (single image pixels × total frames).
-
构造器详细资料
-
Builder
public Builder()
-
-
方法详细资料
-
source
Sets the source for the video content.- 参数:
source- The video source (URL or Base64)- 返回:
- This builder for chaining
-
fps
Sets the frames per second (FPS) of the video.- 参数:
fps- The frames per second value- 返回:
- This builder for chaining
-
maxFrames
Sets the maximum number of frames to capture from the video.- 参数:
maxFrames- The maximum number of frames- 返回:
- This builder for chaining
-
minPixels
Sets the minimum pixel threshold for input video frames.- 参数:
minPixels- The minimum pixel threshold- 返回:
- This builder for chaining
-
maxPixels
Sets the maximum pixel threshold for input video frames.- 参数:
maxPixels- The maximum pixel threshold- 返回:
- This builder for chaining
-
totalPixels
Sets the total pixels of all frames extracted from the video (single image pixels × total frames).- 参数:
totalPixels- The total pixels- 返回:
- This builder for chaining
-
build
Builds a new VideoBlock with the configured source.- 返回:
- A new VideoBlock instance
-