Reference documentation and code samples for the Transcoder V1 API class Google::Cloud::Video::Transcoder::V1::PreprocessingConfig::Color.
Color preprocessing configuration.
Note: This configuration is not supported.
Inherits
Object
Extended By
Google::Protobuf::MessageExts::ClassMethods
Includes
Google::Protobuf::MessageExts
Methods
#brightness
defbrightness()->::Float
Returns
(::Float) — Control brightness of the video. Enter a value between -1 and 1, where -1
is minimum brightness and 1 is maximum brightness. 0 is no change. The
default is 0.
#brightness=
defbrightness=(value)->::Float
Parameter
value (::Float) — Control brightness of the video. Enter a value between -1 and 1, where -1
is minimum brightness and 1 is maximum brightness. 0 is no change. The
default is 0.
Returns
(::Float) — Control brightness of the video. Enter a value between -1 and 1, where -1
is minimum brightness and 1 is maximum brightness. 0 is no change. The
default is 0.
#contrast
defcontrast()->::Float
Returns
(::Float) — Control black and white contrast of the video. Enter a value between -1
and 1, where -1 is minimum contrast and 1 is maximum contrast. 0 is no
change. The default is 0.
#contrast=
defcontrast=(value)->::Float
Parameter
value (::Float) — Control black and white contrast of the video. Enter a value between -1
and 1, where -1 is minimum contrast and 1 is maximum contrast. 0 is no
change. The default is 0.
Returns
(::Float) — Control black and white contrast of the video. Enter a value between -1
and 1, where -1 is minimum contrast and 1 is maximum contrast. 0 is no
change. The default is 0.
#saturation
defsaturation()->::Float
Returns
(::Float) — Control color saturation of the video. Enter a value between -1 and 1,
where -1 is fully desaturated and 1 is maximum saturation. 0 is no
change. The default is 0.
#saturation=
defsaturation=(value)->::Float
Parameter
value (::Float) — Control color saturation of the video. Enter a value between -1 and 1,
where -1 is fully desaturated and 1 is maximum saturation. 0 is no
change. The default is 0.
Returns
(::Float) — Control color saturation of the video. Enter a value between -1 and 1,
where -1 is fully desaturated and 1 is maximum saturation. 0 is no
change. The default is 0.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Transcoder V1 API - Class Google::Cloud::Video::Transcoder::V1::PreprocessingConfig::Color (v2.2.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.2.0 (latest)](/ruby/docs/reference/google-cloud-video-transcoder-v1/latest/Google-Cloud-Video-Transcoder-V1-PreprocessingConfig-Color)\n- [2.1.0](/ruby/docs/reference/google-cloud-video-transcoder-v1/2.1.0/Google-Cloud-Video-Transcoder-V1-PreprocessingConfig-Color)\n- [2.0.1](/ruby/docs/reference/google-cloud-video-transcoder-v1/2.0.1/Google-Cloud-Video-Transcoder-V1-PreprocessingConfig-Color)\n- [1.2.0](/ruby/docs/reference/google-cloud-video-transcoder-v1/1.2.0/Google-Cloud-Video-Transcoder-V1-PreprocessingConfig-Color)\n- [1.1.0](/ruby/docs/reference/google-cloud-video-transcoder-v1/1.1.0/Google-Cloud-Video-Transcoder-V1-PreprocessingConfig-Color)\n- [1.0.1](/ruby/docs/reference/google-cloud-video-transcoder-v1/1.0.1/Google-Cloud-Video-Transcoder-V1-PreprocessingConfig-Color)\n- [0.13.0](/ruby/docs/reference/google-cloud-video-transcoder-v1/0.13.0/Google-Cloud-Video-Transcoder-V1-PreprocessingConfig-Color)\n- [0.12.2](/ruby/docs/reference/google-cloud-video-transcoder-v1/0.12.2/Google-Cloud-Video-Transcoder-V1-PreprocessingConfig-Color)\n- [0.11.0](/ruby/docs/reference/google-cloud-video-transcoder-v1/0.11.0/Google-Cloud-Video-Transcoder-V1-PreprocessingConfig-Color)\n- [0.10.0](/ruby/docs/reference/google-cloud-video-transcoder-v1/0.10.0/Google-Cloud-Video-Transcoder-V1-PreprocessingConfig-Color)\n- [0.9.1](/ruby/docs/reference/google-cloud-video-transcoder-v1/0.9.1/Google-Cloud-Video-Transcoder-V1-PreprocessingConfig-Color)\n- [0.8.0](/ruby/docs/reference/google-cloud-video-transcoder-v1/0.8.0/Google-Cloud-Video-Transcoder-V1-PreprocessingConfig-Color)\n- [0.7.0](/ruby/docs/reference/google-cloud-video-transcoder-v1/0.7.0/Google-Cloud-Video-Transcoder-V1-PreprocessingConfig-Color)\n- [0.6.0](/ruby/docs/reference/google-cloud-video-transcoder-v1/0.6.0/Google-Cloud-Video-Transcoder-V1-PreprocessingConfig-Color)\n- [0.5.0](/ruby/docs/reference/google-cloud-video-transcoder-v1/0.5.0/Google-Cloud-Video-Transcoder-V1-PreprocessingConfig-Color)\n- [0.4.0](/ruby/docs/reference/google-cloud-video-transcoder-v1/0.4.0/Google-Cloud-Video-Transcoder-V1-PreprocessingConfig-Color)\n- [0.3.0](/ruby/docs/reference/google-cloud-video-transcoder-v1/0.3.0/Google-Cloud-Video-Transcoder-V1-PreprocessingConfig-Color)\n- [0.2.2](/ruby/docs/reference/google-cloud-video-transcoder-v1/0.2.2/Google-Cloud-Video-Transcoder-V1-PreprocessingConfig-Color) \nReference documentation and code samples for the Transcoder V1 API class Google::Cloud::Video::Transcoder::V1::PreprocessingConfig::Color.\n\nColor preprocessing configuration.\n\n\n\u003cbr /\u003e\n\n**Note:** This configuration is not supported. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #brightness\n\n def brightness() -\u003e ::Float\n\n**Returns**\n\n- (::Float) --- Control brightness of the video. Enter a value between -1 and 1, where -1 is minimum brightness and 1 is maximum brightness. 0 is no change. The default is 0.\n\n### #brightness=\n\n def brightness=(value) -\u003e ::Float\n\n**Parameter**\n\n- **value** (::Float) --- Control brightness of the video. Enter a value between -1 and 1, where -1 is minimum brightness and 1 is maximum brightness. 0 is no change. The default is 0. \n**Returns**\n\n- (::Float) --- Control brightness of the video. Enter a value between -1 and 1, where -1 is minimum brightness and 1 is maximum brightness. 0 is no change. The default is 0.\n\n### #contrast\n\n def contrast() -\u003e ::Float\n\n**Returns**\n\n- (::Float) --- Control black and white contrast of the video. Enter a value between -1 and 1, where -1 is minimum contrast and 1 is maximum contrast. 0 is no change. The default is 0.\n\n### #contrast=\n\n def contrast=(value) -\u003e ::Float\n\n**Parameter**\n\n- **value** (::Float) --- Control black and white contrast of the video. Enter a value between -1 and 1, where -1 is minimum contrast and 1 is maximum contrast. 0 is no change. The default is 0. \n**Returns**\n\n- (::Float) --- Control black and white contrast of the video. Enter a value between -1 and 1, where -1 is minimum contrast and 1 is maximum contrast. 0 is no change. The default is 0.\n\n### #saturation\n\n def saturation() -\u003e ::Float\n\n**Returns**\n\n- (::Float) --- Control color saturation of the video. Enter a value between -1 and 1, where -1 is fully desaturated and 1 is maximum saturation. 0 is no change. The default is 0.\n\n### #saturation=\n\n def saturation=(value) -\u003e ::Float\n\n**Parameter**\n\n- **value** (::Float) --- Control color saturation of the video. Enter a value between -1 and 1, where -1 is fully desaturated and 1 is maximum saturation. 0 is no change. The default is 0. \n**Returns**\n\n- (::Float) --- Control color saturation of the video. Enter a value between -1 and 1, where -1 is fully desaturated and 1 is maximum saturation. 0 is no change. The default is 0."]]