| VIDEO Block BYR2RGB Module Description |
Module Overview:
Interpolation controls for Bayer CCD Video Data to RGB for creating a programmable bayer filter. This takes raw Bayer Sensor Data and produces an RGB image.
Bayer Filter |
| BYR2RGB Module Register Summary | Register Name | Base Address | POR |
| BYR2RGB_MODE | 0xFFF80400 | 0x00000000 |
| BYR2RGB_PIX_START | 0xFFF80404 | 0x00000000 |
| BYR2RGB_RED_WEIGHTS | 0xFFF80408 | 0x00000000 |
| BYR2RGB_BLUE_WEIGHTS | 0xFFF8040C | 0x00000000 |
| BYR2RGB_GREEN_WEIGHTS | 0xFFF80410 | 0x00000000 |
| BYR2RGB_MODE Register: | Mode: Normal | Address: 0xFFF80400 | POR: 0x00000000 | |
| Register Overview: Testing Modes, pixel shift in filter. | ||||
| Bit | 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| Mne | BOSHF | |||||||||||||||
| Bit | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Mne | BESHF | ROSHF | TEST | |||||||||||||
| Bit(s) | Mne | Access | Name | Field Description |
| 31:18 | RSV | Reserved | Reserved | Reserved |
| 17:16 | BOSHF | R/W | BODD_SHFT | Number of pixels to shift when applying the convolutional filter for the odd line starting in blue. |
| 15:10 | RSV | Reserved | Reserved | Reserved |
| 9:8 | BESHF | R/W | BEVN_SHFT | Number of pixels to shift when applying the convolutional filter for the even line starting in blue. |
| 7:4 | RSV | Reserved | Reserved | Reserved |
| 3:1 | ROSHF | R/W | RODD_SHFT | Number of pixels to shift when applying the convolutional filter for the odd line starting in red. |
| 0 | TEST | R/W | TEST |
The Bayer filter is in test mode which changes the data for testing edges of the filter.
Internal: This field is for testing mode only. |
| BYR2RGB_PIX_START Register: | Mode: Normal | Address: 0xFFF80404 | POR: 0x00000000 | |
| Register Overview: Controls for Bayer Mode | ||||
| Bit | 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| Mne | ||||||||||||||||
| Bit | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Mne | ODD | EVEN | ||||||||||||||
| Bit(s) | Mne | Access | Name | Field Description |
| 31:4 | RSV | Reserved | Reserved | Reserved |
| 3:2 | ODD | R/W | ODD_ST |
Starting pixel color for odd lines 0 = B 1 = R 2 = G |
| 1:0 | EVEN | R/W | EVEN |
Starting pixel color for even lines 0 = B 1 = R 2 = G |
| BYR2RGB_RED_WEIGHTS Register: | Mode: Normal | Address: 0xFFF80408 | POR: 0x00000000 | |
| Register Overview: Configuration of red weights to apply to the raw captured pixel that are red. | ||||
| Bit | 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| Mne | EVNR0 | EVNR2 | ||||||||||||||
| Bit | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Mne | ODDR0 | ODDR2 | ||||||||||||||
| Bit(s) | Mne | Access | Name | Field Description |
| 31:24 | EVNR0 | R/W | EVN_R0 | The interger weight to apply (multiply) to the R0 of the even row of the raw captured data. |
| 23:16 | EVNR2 | R/W | EVN_R1 | The interger weight to apply (multiply) to the R1 of the even row of the raw captured data. |
| 15:8 | ODDR0 | R/W | ODD_R0 | The interger weight to apply (multiply) to the R0 of the odd row of the raw captured data. |
| 7:0 | ODDR2 | R/W | ODD_R1 | The interger weight to apply (multiply) to the R1 of the even row of the raw captured data. |
| BYR2RGB_BLUE_WEIGHTS Register: | Mode: Normal | Address: 0xFFF8040C | POR: 0x00000000 | |
| Register Overview: Configuration of red weights to apply to the raw captured pixel that are red. | ||||
| Bit | 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| Mne | EVNB0 | EVNB1 | ||||||||||||||
| Bit | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Mne | ODDB0 | ODDB1 | ||||||||||||||
| Bit(s) | Mne | Access | Name | Field Description |
| 31:24 | EVNB0 | R/W | EVN_B0 | The interger weight to apply (multiply) to the B0 of the even row of the raw captured data. |
| 23:16 | EVNB1 | R/W | EVN_B1 | The interger weight to apply (multiply) to the B1 of the even row of the raw captured data. |
| 15:8 | ODDB0 | R/W | ODD_B0 | The interger weight to apply (multiply) to the B0 of the odd row of the raw captured data. |
| 7:0 | ODDB1 | R/W | ODD_B1 | The interger weight to apply (multiply) to the R1 of the even row of the raw captured data. |
| BYR2RGB_GREEN_WEIGHTS Register: | Mode: Normal | Address: 0xFFF80410 | POR: 0x00000000 | |
| Register Overview: Configuration of green weights to apply to the raw captured pixel that are green. | ||||
| Bit | 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| Mne | ||||||||||||||||
| Bit | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Mne | BGRN | RGRN | ||||||||||||||
| Bit(s) | Mne | Access | Name | Field Description |
| 31:16 | RSV | R/W | Reserved | Reserved for future use. |
| 15:8 | BGRN | R/W | B_GREEN | The interger weight to apply (multiply) to the G of the blue start row of the raw captured data. |
| 7:0 | RGRN | R/W | R_GREEN | The interger weight to apply (multiply) to the G of the red start row of the raw captured data. |