DLPU082C August   2021  – March 2024 DLPC7540

 

  1.   1
  2.   Abstract
  3.   Trademarks
  4. Scope
  5. References
  6. Acronyms
  7. System Boot
    1. 4.1 Data In flash
    2. 4.2 Bootloader Application
    3. 4.3 Main Application
    4. 4.4 Commands Supported by Bootloader and Main Applications
    5. 4.5 Debug Terminal
    6. 4.6 HOST_IRQ/SYSTEM_BUSY
    7. 4.7 Heartbeat
    8. 4.8 Low-Level Fault
  8. System Status
  9. Version
  10. Power Modes
  11. Display Modes
  12. Source Detection and Configuration
  13. 10Internal Sources
    1. 10.1 Test Patterns (TPG)
    2. 10.2 Solid Field (SFG) Color
    3. 10.3 Curtain
  14. 11Display Formatting
  15. 12Image Processing
  16. 13Warping
    1. 13.1 Control Point Table
    2. 13.2 Manual Warp Table
    3. 13.3 Table Constraints
    4. 13.4 Example Warp Table
    5. 13.5 Manual Warping Commands
      1. 13.5.1 CMD_SetManualWarpControlPoints [Command ID: 0x35, Destination: 4]
      2. 13.5.2 CMD_GetManualWarpControlPoints [Command ID: 0x35, Destination: 4]
      3. 13.5.3 CMD_WriteManualWarpTable [Opcode: 0x34, Destination: 4]
      4. 13.5.4 CMD_ReadManualWarpTable [Opcode: 0x34, Destination: 4]
      5. 13.5.5 CMD_ConfigureSmoothWarp [Command ID: 0x38, Destination: 4]
      6. 13.5.6 CMD_ApplyManualWarping [Command ID: 0x36, Destination: 4]
    6. 13.6 Optical (Lens) Distortion Correction
  17. 14Introduction to Blending
    1. 14.1  Blend Map Control Points
    2. 14.2  Blend Map Gain Values
    3. 14.3  Blend Map Offset Value
    4. 14.4  Constraints
    5. 14.5  Manual Blending Commands
      1. 14.5.1 CMD_EnableEdgeBlending [Command ID: 0x2F]
      2. 14.5.2 CMD_SetBlendMapControlPoints [Opcode: 0x2E]
      3. 14.5.3 CMD_ GetBlendMapControlPoints [Command ID: 0x2E]
      4. 14.5.4 CMD_SetBlendMapGainValues [Command ID: 0x2B]
      5. 14.5.5 CMD_ GetBlendMapGainValues [Command ID: 0x2B]
      6. 14.5.6 CMD_ SetBlendMapOffsetValues [Command ID: 0x2D]
      7. 14.5.7 CMD_ GetBlendMapOffsetValues [Command ID: 0x2D]
      8. 14.5.8 CMD_ApplyBlendMap [Command ID: 0x2C]
    6. 14.6  Manual Blending Application Commands
      1. 14.6.1 CMD_SetEdgeBlendingSystemParams [Command ID: 0x3D]
      2. 14.6.2 CMD_GetEdgeBlendingSystemParams [Command ID: 0x3D]
      3. 14.6.3 CMD_SetEdgeBlendingConfiguration [Command ID: 0x3E]
      4. 14.6.4 CMD_GetEdgeBlendingConfiguration [Command ID: 0x3E]
    7. 14.7  Cropping of Input Image for Blending Setup
    8. 14.8  Storing Edge Blend Configuration in EEPROM
    9. 14.9  Storing in EEPROM or Secondary Flash
    10. 14.10 Manual Blending GUI in Control Program
  18. 15Illumination Control
  19. 16Peripherals
    1. 16.1 GPIO
    2. 16.2 PWM
  20. 17Interface Protocol
    1. 17.1 Supported Interfaces
    2. 17.2 I2C Target
    3. 17.3 USB
  21. 18Command Protocol
    1. 18.1 Command Packet
    2. 18.2 Response Packet
    3. 18.3 Destination Details
    4. 18.4 Error Handling and Recovery
    5. 18.5 System Busy - I2C scenarios
      1. 18.5.1 GPIO Implementation
      2. 18.5.2 Short Status Response
    6. 18.6 Support for Variable Data Size
  22. 19Auto-Initialization Batch File
  23. 20Command Descriptions
  24. 21System Commands
    1. 21.1  3D
    2. 21.2  Administrative
    3. 21.3  Autolock
    4. 21.4  Bootloader
    5. 21.5  Calibration
    6. 21.6  Blending
    7. 21.7  Debug Internal
    8. 21.8  Debug
    9. 21.9  General Operation
    10. 21.10 Illumination
    11. 21.11 Image Processing
    12. 21.12 Manual WPC
    13. 21.13 Peripherals
    14. 21.14 Vision
    15. 21.15 Warping
  25.   Revision History

CMD_SetBlendMapControlPoints [Opcode: 0x2E]

This command is used to pass the Horizontal (Hres) and Vertical (Vres) resolution of image and also the Horizontal and vertical control point’s location.

The values of the control point locations must in the range of 0 to (Hres – 1) for the horizontal control points and 0 to (Vres – 1) for the vertical control points.

The following example shows how this command can be used for an image of resolution 1280×1080 and the control points are evenly spaced.

Ideally, more control points are needed in the region where gain or offset change is required, but keep in mind the constraints mentioned before.

Note:

The 31st horizontal control point location is at the center of image horizontally.

Half of control point locations are in left half of image and other half in right half image.

GUID-20230127-SS0I-RBVJ-7JMK-8LSPQ831W1G0-low.png
Table 14-2 Example CMD_SetBlendMapControlPoints Command Packet
Byte Index Value Description
0 0x54 Command packet header (destination 4, response required)
1 OX2E Command opcode
2-3 1280 Horizontal image resolution
4-5 1080 Vertical image resolution
Horizontal Control Points
6-7 0x0000 Horizontal control points location start: H0 = 0
8-9 0x0016 H1 = 22
10-11 0x002A H2 = 42
12-13 0x003F H3 = 63
14-15 0x0054 H4 = 84
16-17 0x0068 H5 = 104
18-19 0x007D H6 = 125
20-21 0x0091 H7 = 145
22-23 0x00A6 H8 = 166
24-25 OX00BB H9 = 187
26-27 0xO0CF H10 = 207
28-29 OX00E4 H11 = 228
30-31 0x00F9 H12 = 248
32-33 0x010D H13 = 269
34-35 0x0122 H14 = 290
36-37 0x0136 H15 = 310
38-39 0x014B H16 = 331
40-41 0x0160 H17 = 352
42-43 0x0174 H18 = 372
44-45 0x0189 H19 = 393
46-47 0x019E H20 = 414
48-49 0x01B2 H21 = 434
50-51 0x01C7 H22 = 455
51-52 0x01DB H23 = 475
53-54 0x01F0 H24 = 496
55-56 0x0205 H25 = 517
57-58 0x0219 H26 = 537
59-60 0x022E H27 = 558
61-62 0x0243 H28 = 579
63-64 0x0257 H29 = 599
65-66 0x0280 H30 = 640
67-68 0x0281 H31 = 641
69-70 0x0295 H32 = 661
71-72 0x02AA H33 = 681
73-74 0x02BE H34 = 682
75-76 0x02D3 H35 = 702
77-78 0x02E8 H36 = 723
79-80 0x02FC H37 = 744
81-82 0x0311 H38 = 764
83-84 0x0326 H39 = 785
85-86 0x033A H40 = 806
87-88 0x034F H41 = 826
89-90 0x0363 H42 = 847
91-92 0x0378 H43 = 867
93-94 0x038D H44 = 888
95-96 0x03A1 H45 = 909
97-98 0x03B6 H46 = 929
99-100 0x03CB H47 = 950
101-102 0x03DF H48 = 971
103-104 0x03FF H49 = 991
105-106 0x0401 H50 = 1023
107-108 0x041D H51 = 1053
109110 0x0432 H52 = 1074
111-112 0x0446 H53 = 1094
113-114 0x045B H54 = 1115
115-116 0x0470 H55 = 1136
117118 0x0484 H56 = 1156
119120 0x0499 H57 = 1177
121-122 0x04AD H58 = 1197
123-124 0x04C2 H59 = 1218
125-126 0x04D7 H60 = 1239
127-128 0x04EB H61 = 1259
129-130 0x04FF H62 = 1279
Vertical Control Points
131-132 0x0000 Vertical control points location start: V0 = 0
133-134 0x0024 V2 = 36
135-136 0x0047 V3 = 71
137-138 0x0069 V4 = 105
139-140 0x008C V5 = 140
141-142 0x00AF V6 = 175
143-144 0xO0D2 V7 = 210
145-146 0x00F5 V8 = 245
147-148 0x0117 V9 = 279
149-150 0x013A V10 = 314
151-152 0x015D V11 = 349
153-154 0x0180 V12 = 384
155-156 0x01A3 V13 = 419
157-158 0x01C5 V14 = 453
159-160 0x01E8 V15 = 488
161-162 0x020B V16 = 523
163-164 0x022E V17 = 588
165-166 0x0251 V18 = 593
167-168 0x0274 V19 = 628
169-170 0x0296 V20 = 662
171-172 0x02B9 V21 = 697
173-174 0x02DC V22 = 732
175-176 0x02FF V23 = 767
177-178 0x0322 V24 = 802
179-180 0x0344 V25 = 836
181-182 0x0367 V26 = 871
183-184 0x038A V27 = 906
185-185 0x03AD V28 = 941
187-186 0x03D0 V29 = 976
189-188 0x03F2 V30 = 1010
191-192 0x0415 V31 = 1045
193-194 0x0437 V31 = 1079