Skip to content

Commit

Permalink
质量评分新增参数
Browse files Browse the repository at this point in the history
  • Loading branch information
lilang authored and jojoliang committed Nov 22, 2022
1 parent 929ab55 commit 49c83ae
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ci_media.go
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,11 @@ type QualityEstimate struct {
Score string `xml:"Score,omitempty"`
}

// QualityEstimate TODO
type QualityEstimateConfig struct {
Rotate string `xml:"Rotate,omitempty"`
}

// MediaResult TODO
type MediaResult struct {
OutputFile struct {
Expand Down Expand Up @@ -633,6 +638,7 @@ type MediaProcessJobOperation struct {
Translation *Translation `xml:"Translation,omitempty"`
WordsGeneralize *WordsGeneralize `xml:"WordsGeneralize,omitempty"`
WordsGeneralizeResult *WordsGeneralizeResult `xml:"WordsGeneralizeResult,omitempty"`
QualityEstimateConfig *QualityEstimateConfig `xml:"QualityEstimateConfig,omitempty"`
}

// CreatePicJobsOptions TODO
Expand Down
3 changes: 3 additions & 0 deletions example/CI/media_process/media_process.go
Original file line number Diff line number Diff line change
Expand Up @@ -1680,6 +1680,9 @@ func InvokeQualityEstimateJob() {
Operation: &cos.MediaProcessJobOperation{
UserData: "This is my QualityEstimate job",
JobLevel: 1,
QualityEstimateConfig: &cos.QualityEstimateConfig{
Rotate: "90", // 只支持0 90 180 270
},
},
QueueId: DescribeQueueRes.QueueList[0].QueueId,
}
Expand Down

0 comments on commit 49c83ae

Please sign in to comment.