Skip to content

Commit

Permalink
Update http.md
Browse files Browse the repository at this point in the history
add knee curve
  • Loading branch information
ailike authored Nov 22, 2019
1 parent 4aeecdb commit 3ff80e5
Showing 1 changed file with 68 additions and 0 deletions.
68 changes: 68 additions & 0 deletions E2/protocol/http.md
Original file line number Diff line number Diff line change
Expand Up @@ -991,10 +991,76 @@ If VFR is on, and playback frame is default. e.g. VFR is 120, movie format is 4K
```HTTP
GET /ctrl/stream_setting?index=stream0&split=5
```
### Knee/Slope based curve
It's used for some broadcast case, it could be adjusted by remote controller.

Set the image profile to customized curve 2
```HTTP
GET /ctrl/set?lut=Customized 2
```

#### Gamma
Choose the base curve for your adjustment, options:
- Rec709
- sRGB
- Power of 2

Get infomations
```HTTP
GET /ctrl/cusomized_image_profile?action=get&option=gamma
```

Set base curve to Rec709
```HTTP
GET /ctrl/cusomized_image_profile?action=set&option=gamma&base=0
```

Set base curve to sRGB
```HTTP
GET /ctrl/cusomized_image_profile?action=set&option=gamma&base=1
```

Set base curve to 2^2.2
```HTTP
GET /ctrl/cusomized_image_profile?action=set&option=gamma&base=2&power=22
```

#### Black level
```HTTP
GET /ctrl/cusomized_image_profile?action=get&option=black_level
```

Set level
```HTTP
GET /ctrl/cusomized_image_profile?action=set&option=black_level&enble=1&level=10
```

#### Black gamma
```HTTP
GET /ctrl/cusomized_image_profile?action=get&option=black_gamma
```

Set range and level
```HTTP
GET /ctrl/cusomized_image_profile?action=set&option=black_gamma&enable=1&range=0&level=0
```

#### Knee
```HTTP
GET /ctrl/cusomized_image_profile?action=get&option=knee
```

Set point and slope
```HTTP
GET /ctrl/cusomized_image_profile?action=set&option=knee&enable=1&point=0&slope=10
```

### Manual black level and rgb gain

#### Manual black level adjustment

Run on the raw data, substract the dark current value.

Get status
```HTTP
GET /ctrl/manual_blc?action=get
Expand Down Expand Up @@ -1023,6 +1089,8 @@ Disable
GET /ctrl/manual_blc?action=set&enable=0&rggb=0,0,0,0
```

```
#### Set manual R/G/B gain
Set white balance mode to expert mode first.
```HTTP
Expand Down

0 comments on commit 3ff80e5

Please sign in to comment.