Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

fb: better ordering of pixels within ASMI words

  • Loading branch information...
commit 8ee6dab4f9eabc63c55485274845a2505211bde6 1 parent fdf7f10
Sébastien Bourdeauducq authored March 25, 2013

Showing 1 changed file with 5 additions and 5 deletions. Show diff stats Hide diff stats

  1. 10  milkymist/framebuffer/__init__.py
10  milkymist/framebuffer/__init__.py
@@ -13,9 +13,9 @@
13 13
 _bpp = 32
14 14
 _bpc = 10
15 15
 _pixel_layout = [
16  
-	("b", _bpc),
17  
-	("g", _bpc),
18 16
 	("r", _bpc),
  17
+	("g", _bpc),
  18
+	("b", _bpc),
19 19
 	("pad", _bpp-3*_bpc)
20 20
 ]
21 21
 
@@ -23,9 +23,9 @@
23 23
 _dac_layout = [
24 24
 	("hsync", 1),
25 25
 	("vsync", 1),
26  
-	("b", _bpc_dac),
  26
+	("r", _bpc_dac),
27 27
 	("g", _bpc_dac),
28  
-	("r", _bpc_dac)
  28
+	("b", _bpc_dac)	
29 29
 ]
30 30
 
31 31
 class _FrameInitiator(spi.SingleGenerator):
@@ -173,7 +173,7 @@ def __init__(self, asmiport, simulation=False):
173 173
 		adrbuffer = AbstractActor(plumbing.Buffer)
174 174
 		dma = dma_asmi.Reader(asmiport)
175 175
 		datbuffer = AbstractActor(plumbing.Buffer)
176  
-		cast = structuring.Cast(asmiport.hub.dw, packed_pixels)
  176
+		cast = structuring.Cast(asmiport.hub.dw, packed_pixels, reverse_to=True)
177 177
 		unpack = structuring.Unpack(pack_factor, _pixel_layout)
178 178
 		vtg = VTG()
179 179
 		if simulation:

0 notes on commit 8ee6dab

Please sign in to comment.
Something went wrong with that request. Please try again.