修复:

1.增加转码页面中的枚举类型
This commit is contained in:
bluesea 2024-03-07 13:39:09 +08:00
parent a4b31f69d3
commit c097a26995
3 changed files with 14 additions and 11 deletions

View File

@ -37,4 +37,8 @@ enum CCTransformParameterType : Int
case bitRate = 3 //
case formatVideoEncoding = 4//
case horizontalDialogueAdjustment = 5//
case hsbs_3D = 6 //hsbs
case fsbs_3D = 7 //fsbs
case hou_3d = 8 //hou
case fou_3D = 9 //fou
}

View File

@ -204,11 +204,7 @@ class VRPhotoTransformController: BaseController {
func setSpatialParametersListData() {
let popData = [
(type:CCTransformParameterType.format3D,title:"3D 格式",name:"3D HSBS")/*,
(type:CCTransformParameterType.resolution,title:"分辨率",name:"1080P"),
(type:CCTransformParameterType.bitRate,title:"比特率",name:"最佳"),
(type:CCTransformParameterType.formatVideoEncoding,title:"视频编码格式",name:"H.265"),
(type:CCTransformParameterType.horizontalDialogueAdjustment,title:"水平视差调整",name:"0")*/]
(type:CCTransformParameterType.hsbs_3D,title:"3D 格式",name:"3D HSBS")]
mTabView?.setSpatialParametersData(data: popData)
}
@ -251,6 +247,8 @@ class VRPhotoTransformController: BaseController {
case .format3D:
print("3D 格式")
case .hsbs_3D ,.fsbs_3D,.hou_3d,.fou_3D:
print("3D 格式")
/*
3D HSBS
3D FSBS
@ -262,25 +260,25 @@ class VRPhotoTransformController: BaseController {
print("3D HSBS半宽左右格式")
let popData = [
(type:CCTransformParameterType.format3D,title:"3D 格式",name:"3D HSBS")]
(type:CCTransformParameterType.hsbs_3D,title:"3D 格式",name:"3D HSBS")]
mTabView?.setSpatialParametersData(data: popData)
}
let action2 = UIAlertAction(title: "3D FSBS全宽左右格式" , style: .default) { [self] (action:UIAlertAction) in
print("3D FSBS全宽左右格式")
let popData = [
(type:CCTransformParameterType.format3D,title:"3D 格式",name:"3D FSBS")]
(type:CCTransformParameterType.fsbs_3D,title:"3D 格式",name:"3D FSBS")]
mTabView?.setSpatialParametersData(data: popData)
}
let action3 = UIAlertAction(title: "3D HOU半高上下格式" , style: .default) { [self] (action:UIAlertAction) in
print("3D HOU半高上下格式")
let popData = [
(type:CCTransformParameterType.format3D,title:"3D 格式",name:"3D HOU")]
(type:CCTransformParameterType.hou_3d,title:"3D 格式",name:"3D HOU")]
mTabView?.setSpatialParametersData(data: popData)
}
let action4 = UIAlertAction(title: "3D FOU全高上下格式" , style: .default) { [self] (action:UIAlertAction) in
print("3D FOU全高上下格式")
let popData = [
(type:CCTransformParameterType.format3D,title:"3D 格式",name:"3D FOU")]
(type:CCTransformParameterType.fou_3D,title:"3D 格式",name:"3D FOU")]
mTabView?.setSpatialParametersData(data: popData)
}

View File

@ -404,7 +404,8 @@ class VRVideoTransformController: BaseController {
switch model.type {
case .format3D:
print("3D 格式")
case .hsbs_3D ,.fsbs_3D,.hou_3d,.fou_3D:
print("3D 格式")
/*
3D HSBS
3D FSBS