hdlcd.cc (9648:f10eb34e3e38) | hdlcd.cc (9939:735d73e394d3) |
---|---|
1/* 2 * Copyright (c) 2010-2013 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 58 unchanged lines hidden (view full) --- 67 frameReadStartTime(0), 68 dmaStartAddr(0), dmaCurAddr(0), dmaMaxAddr(0), dmaPendingNum(0), 69 frameUnderrun(false), virtualDisplayBuffer(NULL), pixelBufferSize(0), 70 pixelIndex(0), doUpdateParams(false), frameUnderway(false), 71 dmaBytesInFlight(0), 72 startFrameEvent(this), endFrameEvent(this), renderPixelEvent(this), 73 fillPixelBufferEvent(this), intEvent(this), 74 dmaDoneEventAll(MAX_OUTSTANDING_DMA_REQ_CAPACITY, this), | 1/* 2 * Copyright (c) 2010-2013 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 58 unchanged lines hidden (view full) --- 67 frameReadStartTime(0), 68 dmaStartAddr(0), dmaCurAddr(0), dmaMaxAddr(0), dmaPendingNum(0), 69 frameUnderrun(false), virtualDisplayBuffer(NULL), pixelBufferSize(0), 70 pixelIndex(0), doUpdateParams(false), frameUnderway(false), 71 dmaBytesInFlight(0), 72 startFrameEvent(this), endFrameEvent(this), renderPixelEvent(this), 73 fillPixelBufferEvent(this), intEvent(this), 74 dmaDoneEventAll(MAX_OUTSTANDING_DMA_REQ_CAPACITY, this), |
75 dmaDoneEventFree(MAX_OUTSTANDING_DMA_REQ_CAPACITY) | 75 dmaDoneEventFree(MAX_OUTSTANDING_DMA_REQ_CAPACITY), 76 enableCapture(p->enable_capture) |
76{ 77 pioSize = 0xFFFF; 78 79 for (int i = 0; i < MAX_OUTSTANDING_DMA_REQ_CAPACITY; ++i) 80 dmaDoneEventFree[i] = &dmaDoneEventAll[i]; 81 82 if (vnc) 83 vnc->setFramebufferAddr(NULL); --- 471 unchanged lines hidden (view full) --- 555 assert(pixelBufferSize == 0); 556 assert(dmaPendingNum == 0); 557 assert(dmaBytesInFlight == 0); 558 assert(dmaDoneEventFree.size() == dmaDoneEventAll.size()); 559 560 if (vnc) 561 vnc->setDirty(); 562 | 77{ 78 pioSize = 0xFFFF; 79 80 for (int i = 0; i < MAX_OUTSTANDING_DMA_REQ_CAPACITY; ++i) 81 dmaDoneEventFree[i] = &dmaDoneEventAll[i]; 82 83 if (vnc) 84 vnc->setFramebufferAddr(NULL); --- 471 unchanged lines hidden (view full) --- 556 assert(pixelBufferSize == 0); 557 assert(dmaPendingNum == 0); 558 assert(dmaBytesInFlight == 0); 559 assert(dmaDoneEventFree.size() == dmaDoneEventAll.size()); 560 561 if (vnc) 562 vnc->setDirty(); 563 |
563 if (!pic) 564 pic = simout.create(csprintf("%s.framebuffer.bmp", sys->name()), true); | 564 if (enableCapture) { 565 if (!pic) 566 pic = simout.create(csprintf("%s.framebuffer.bmp", sys->name()), true); |
565 | 567 |
566 assert(bmp); 567 assert(pic); 568 pic->seekp(0); 569 bmp->write(pic); | 568 assert(bmp); 569 assert(pic); 570 pic->seekp(0); 571 bmp->write(pic); 572 } |
570 571 // start the next frame 572 frameUnderway = false; 573 startFrame(); 574} 575 576void 577HDLcd::dmaDone(DmaDoneEvent *event) --- 279 unchanged lines hidden --- | 573 574 // start the next frame 575 frameUnderway = false; 576 startFrame(); 577} 578 579void 580HDLcd::dmaDone(DmaDoneEvent *event) --- 279 unchanged lines hidden --- |