Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fb: better ordering of pixels within ASMI words
  • Loading branch information
Sebastien Bourdeauducq committed Mar 25, 2013
1 parent fdf7f10 commit 8ee6dab
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions milkymist/framebuffer/__init__.py
Expand Up @@ -13,19 +13,19 @@
_bpp = 32
_bpc = 10
_pixel_layout = [
("b", _bpc),
("g", _bpc),
("r", _bpc),
("g", _bpc),
("b", _bpc),
("pad", _bpp-3*_bpc)
]

_bpc_dac = 8
_dac_layout = [
("hsync", 1),
("vsync", 1),
("b", _bpc_dac),
("r", _bpc_dac),
("g", _bpc_dac),
("r", _bpc_dac)
("b", _bpc_dac)
]

class _FrameInitiator(spi.SingleGenerator):
Expand Down Expand Up @@ -173,7 +173,7 @@ def __init__(self, asmiport, simulation=False):
adrbuffer = AbstractActor(plumbing.Buffer)
dma = dma_asmi.Reader(asmiport)
datbuffer = AbstractActor(plumbing.Buffer)
cast = structuring.Cast(asmiport.hub.dw, packed_pixels)
cast = structuring.Cast(asmiport.hub.dw, packed_pixels, reverse_to=True)
unpack = structuring.Unpack(pack_factor, _pixel_layout)
vtg = VTG()
if simulation:
Expand Down

0 comments on commit 8ee6dab

Please sign in to comment.