User Tools

Site Tools


http_api |

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
http_api [2024/03/19 17:33]
admin [CameraControl]
http_api [2024/04/05 15:05]
cflintiii [Overlay]
Line 1648: Line 1648:
 //​**chn**// ​ Get the encoder channel number. The default is encoder channel 1. Select between encoder channels. Possible values: 1, 2, 3, or 4. //​**chn**// ​ Get the encoder channel number. The default is encoder channel 1. Select between encoder channels. Possible values: 1, 2, 3, or 4.
  
-**Ambarella Specific** \\ +**//rgn_idx // **//​(Ambarella Specific)// ​Index to map overlay. The region index value can be in the range of 1 to 16 for the system(not per channel), all channels ​. Ambarella provides 16 total color look-up tables for Overlay, rgn_idx signifies which color look-up table(CLUT) ​is in use. 
-**//​rgn_idx//​** ​ Index to map overlay. The region index value can be in the range of 1 to 16. Ambarella provides 16 total color look-up tables for Overlay, rgn_idx signifies which color look-up table is in use.+<​code>​ 
 + TEXT type=text source=”Channel 1” instance=1 rgn_idx=1 
 +      type=text source=”Channel 2” instance=2 rgn_idx=1 
 + 
 +</​code>​ 
 + 
 +The text will be correct on each individual channel as while using the (rgn_idx) at 1\\ 
 +When changing the color of the text on the OVERLAY using the same rgn_idx=1 the last command issued will override both channels, the text will still be different but the color will be the same because they are using the same shared rgn_idx 
 + 
 +<​code>​ 
 + PNG type=png source=”/​opt/​config/​images/​image.png” instance=1 rgn_idx=2 
 +     ​type=png source=”/​opt/​config/​images/​image.png” instance=2 rgn_idx=2 
 + 
 +</​code>​ 
 + 
 +PNG will work in the same way but you would only want to do this for 2 of the same PNG\\ 
 +Using different PNGs would cause colors to go wonky (CLUT is now different at the rgn_idx) 
 + 
 +This is because we write the entire CLUT at the rgn_idx with each overlay cmd
  
-**Qualcomm and HiSilicon** \\ +//**rgn_idx ** (//Qualcomm and DCK//)// Index to map overlay.The region index value can be in the range of 0 to 128, per channel.
-//​**rgn_idx**// ​ Index to map overlay.The region index value can be in the range of 0 to 128, per channel.+
  
 //​**​type**// ​ Type of overlay to be used possible values: text or png. //​**​type**// ​ Type of overlay to be used possible values: text or png.
Line 9876: Line 9893:
 JSON formatted table with values below JSON formatted table with values below
  
-//​**ret**// ​ Custom return code of the HTTP POST request. 0 on success, -1 on failure.+//​**ret**// ​ Custom return code of the HTTP GET request. 0 on success, -1 on failure.
  
 //​**interface**// ​ TEXT, //​**interface**// ​ TEXT,
Line 9893: Line 9910:
  
 ---- ----
 +
  
 ==== GetCronJobs ==== ==== GetCronJobs ====
Line 9910: Line 9928:
 JSON formatted table with values below JSON formatted table with values below
  
-//​**ret**// ​ Custom return code of the HTTP POST request. 0 on success, -1 on failure.+//​**ret**// ​ Custom return code of the HTTP GET request. 0 on success, -1 on failure.
  
 **//​enable//​** ​ INTEGER, **//​enable//​** ​ INTEGER,
Line 9933: Line 9951:
  
 ---- ----
 +
  
 ==== GetNFSMount ==== ==== GetNFSMount ====
Line 9950: Line 9969:
 JSON formatted table with values below JSON formatted table with values below
  
-//​**ret**// ​ Custom return code of the HTTP POST request. 0 on success, -1 on failure.+//​**ret**// ​ Custom return code of the HTTP GET request. 0 on success, -1 on failure.
  
 **//​mounted//​** ​ TEXT, **//​mounted//​** ​ TEXT,
  
 ---- ----
 +
  
 ==== aspect_info ==== ==== aspect_info ====
Line 9973: Line 9993:
 JSON formatted table with values below JSON formatted table with values below
  
-//​**ret**// ​ Custom return code of the HTTP POST request. 0 on success, -1 on failure.+//​**ret**// ​ Custom return code of the HTTP GET request. 0 on success, -1 on failure.
  
 //​**numerator**// ​ INTEGER, //​**numerator**// ​ INTEGER,
Line 9980: Line 10000:
  
 ---- ----
 +
  
 ==== boardinfo ==== ==== boardinfo ====
Line 9997: Line 10018:
 JSON formatted table with values below JSON formatted table with values below
  
-//​**ret**// ​ Custom return code of the HTTP POST request. 0 on success, -1 on failure.+//​**ret**// ​ Custom return code of the HTTP GET request. 0 on success, -1 on failure.
  
 //​**logo_enable**// ​ TEXT, //​**logo_enable**// ​ TEXT,
Line 10016: Line 10037:
  
 ---- ----
 +
  
 ==== cam_state ==== ==== cam_state ====
Line 10033: Line 10055:
 JSON formatted table with values below JSON formatted table with values below
  
-//​**ret**// ​ Custom return code of the HTTP POST request. 0 on success, -1 on failure.+//​**ret**// ​ Custom return code of the HTTP GET request. 0 on success, -1 on failure.
  
 //​**preset**// ​ TEXT, //​**preset**// ​ TEXT,
Line 10046: Line 10068:
  
 ---- ----
 +
  
 ==== camera ==== ==== camera ====
Line 10064: Line 10087:
 JSON formatted table with values below JSON formatted table with values below
  
-//​**ret**// ​ Custom return code of the HTTP POST request. 0 on success, -1 on failure.+//​**ret**// ​ Custom return code of the HTTP GET request. 0 on success, -1 on failure.
  
 //​**zoom_direct_value**// ​ INTEGER. //​**zoom_direct_value**// ​ INTEGER.
Line 10159: Line 10182:
  
 ---- ----
 +
  
 ==== camera_exposure ==== ==== camera_exposure ====
Line 10177: Line 10201:
 JSON formatted table with values below JSON formatted table with values below
  
-//​**ret**// ​ Custom return code of the HTTP POST request. 0 on success, -1 on failure.+//​**ret**// ​ Custom return code of the HTTP GET request. 0 on success, -1 on failure.
  
 //​**ae_mode**// ​ TEXT, //​**ae_mode**// ​ TEXT,
Line 10210: Line 10234:
  
 ---- ----
 +
  
 ==== camera_monitor_mode ==== ==== camera_monitor_mode ====
Line 10228: Line 10253:
 JSON formatted table with values below JSON formatted table with values below
  
-//​**ret**// ​ Custom return code of the HTTP POST request. 0 on success, -1 on failure.+//​**ret**// ​ Custom return code of the HTTP GET request. 0 on success, -1 on failure.
  
 //​**modes**// ​ TEXT. //​**modes**// ​ TEXT.
Line 10235: Line 10260:
  
 ---- ----
 +
  
 ==== dec ==== ==== dec ====
Line 10253: Line 10279:
 JSON formatted table with values below JSON formatted table with values below
  
-//​**ret**// ​ Custom return code of the HTTP POST request. 0 on success, -1 on failure.+//​**ret**// ​ Custom return code of the HTTP GET request. 0 on success, -1 on failure.
  
 //​**preset**// ​ TEXT. //​**preset**// ​ TEXT.
Line 10292: Line 10318:
  
 ---- ----
 +
  
 ==== download ==== ==== download ====
Line 10312: Line 10339:
 JSON formatted table with values below JSON formatted table with values below
  
-//​**ret**// ​ Custom return code of the HTTP POST request. 0 on success, -1 on failure.+//​**ret**// ​ Custom return code of the HTTP GET request. 0 on success, -1 on failure.
  
 //​**FileName**// ​ TEXT. //​**FileName**// ​ TEXT.
Line 10321: Line 10348:
  
 ---- ----
 +
  
 ==== drs_tamarisk_settings ==== ==== drs_tamarisk_settings ====
Line 10339: Line 10367:
 JSON formatted table with values below JSON formatted table with values below
  
-//​**ret**// ​ Custom return code of the HTTP POST request. 0 on success, -1 on failure.+//​**ret**// ​ Custom return code of the HTTP GET request. 0 on success, -1 on failure.
  
 //​**color_pallette**// ​ TEXT. //​**color_pallette**// ​ TEXT.
Line 10348: Line 10376:
  
 ---- ----
 +
  
 ==== enc ==== ==== enc ====
Line 10366: Line 10395:
 JSON formatted table with values below JSON formatted table with values below
  
-//​**ret**// ​ Custom return code of the HTTP POST request. 0 on success, -1 on failure.+//​**ret**// ​ Custom return code of the HTTP GET request. 0 on success, -1 on failure.
  
 //​**preset**// ​ TEXT, //​**preset**// ​ TEXT,
Line 10563: Line 10592:
  
 ---- ----
 +
  
 ==== filepicker ==== ==== filepicker ====
http_api.txt · Last modified: 2024/04/05 15:35 by anthony