File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -544,6 +544,8 @@ static inline const char *video_get_ctrl_name(uint32_t id)
544
544
return "Test Pattern" ;
545
545
case VIDEO_CID_LINK_FREQ :
546
546
return "Link Frequency" ;
547
+ case VIDEO_CID_DIGITAL_GAIN :
548
+ return "Digital Gain" ;
547
549
default :
548
550
return NULL ;
549
551
}
Original file line number Diff line number Diff line change @@ -349,7 +349,10 @@ enum video_camera_orientation {
349
349
*/
350
350
#define VIDEO_CID_IMAGE_SOURCE_CLASS_BASE 0x009e0900
351
351
352
- /** Analogue gain control. */
352
+ /** Analogue gain is gain affecting all colour components in the pixel
353
+ * matrix. The gain operation is performed in the analogue domain
354
+ * before A/D conversion.
355
+ */
353
356
#define VIDEO_CID_ANALOGUE_GAIN (VIDEO_CID_IMAGE_SOURCE_CLASS_BASE + 3)
354
357
355
358
/**
@@ -371,6 +374,14 @@ enum video_camera_orientation {
371
374
/** Selection of the type of test pattern to represent */
372
375
#define VIDEO_CID_TEST_PATTERN (VIDEO_CID_IMAGE_PROC_CLASS_BASE + 3)
373
376
377
+ /** Digital gain is the value by which all colour components
378
+ * are multiplied by. Typically the digital gain applied is the
379
+ * control value divided by e.g. 0x100, meaning that to get no
380
+ * digital gain the control value needs to be 0x100. The no-gain
381
+ * configuration is also typically the default.
382
+ */
383
+ #define VIDEO_CID_DIGITAL_GAIN (VIDEO_CID_IMAGE_PROC_CLASS_BASE + 5)
384
+
374
385
/**
375
386
* @}
376
387
*/
You can’t perform that action at this time.
0 commit comments