mirror of https://bitbucket.org/ausocean/av.git
Fixing some more syntax errors
This commit is contained in:
parent
740e03c0d6
commit
b2c7eced99
|
@ -535,25 +535,25 @@ func (r *revid) setupInputForRaspivid() error {
|
||||||
|
|
||||||
switch r.config.QuantizationMode {
|
switch r.config.QuantizationMode {
|
||||||
case QuantizationOn:
|
case QuantizationOn:
|
||||||
quantizationFlag := "-qp"
|
quantizationFlag = "-qp"
|
||||||
quantizationValue := r.config.Quantization
|
quantizationValue = r.config.Quantization
|
||||||
case QuantizationOff:
|
case QuantizationOff:
|
||||||
quantizationFlag := ""
|
quantizationFlag = ""
|
||||||
quantizationValue := ""
|
quantizationValue = ""
|
||||||
}
|
}
|
||||||
|
|
||||||
switch r.config.HorizontalFlip {
|
switch r.config.HorizontalFlip {
|
||||||
case Yes:
|
case Yes:
|
||||||
horizontalFlipFlag := "-hf"
|
horizontalFlipFlag = "-hf"
|
||||||
case No:
|
case No:
|
||||||
horizontalFlipFlag := ""
|
horizontalFlipFlag = ""
|
||||||
}
|
}
|
||||||
|
|
||||||
switch r.config.VerticalFlip {
|
switch r.config.VerticalFlip {
|
||||||
case Yes:
|
case Yes:
|
||||||
verticalFlipFlag := "-vf"
|
verticalFlipFlag = "-vf"
|
||||||
case No:
|
case No:
|
||||||
verticalFlipFlag := ""
|
verticalFlipFlag = ""
|
||||||
}
|
}
|
||||||
|
|
||||||
r.cmd = exec.Command("raspivid",
|
r.cmd = exec.Command("raspivid",
|
||||||
|
|
Loading…
Reference in New Issue