pl111.cc (10905:a6ca6831e775) | pl111.cc (11359:b0b976a1ceda) |
---|---|
1/* 2 * Copyright (c) 2010-2012, 2015 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 --- 509 unchanged lines hidden (view full) --- 518 fb.copyIn(dmaBuffer, converter); 519 if (vnc) 520 vnc->setDirty(); 521 522 if (enableCapture) { 523 DPRINTF(PL111, "-- write out frame buffer into bmp\n"); 524 525 if (!pic) | 1/* 2 * Copyright (c) 2010-2012, 2015 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 --- 509 unchanged lines hidden (view full) --- 518 fb.copyIn(dmaBuffer, converter); 519 if (vnc) 520 vnc->setDirty(); 521 522 if (enableCapture) { 523 DPRINTF(PL111, "-- write out frame buffer into bmp\n"); 524 525 if (!pic) |
526 pic = simout.create(csprintf("%s.framebuffer.bmp", sys->name()), true); | 526 pic = simout.create(csprintf("%s.framebuffer.bmp", sys->name()), 527 true); |
527 528 assert(pic); | 528 529 assert(pic); |
529 pic->seekp(0); 530 bmp.write(*pic); | 530 pic->stream()->seekp(0); 531 bmp.write(*pic->stream()); |
531 } 532 533 // schedule the next read based on when the last frame started 534 // and the desired fps (i.e. maxFrameTime), we turn the 535 // argument into a relative number of cycles in the future 536 if (lcdControl.lcden) 537 schedule(readEvent, clockEdge(ticksToCycles(startTime - 538 curTick() + --- 241 unchanged lines hidden --- | 532 } 533 534 // schedule the next read based on when the last frame started 535 // and the desired fps (i.e. maxFrameTime), we turn the 536 // argument into a relative number of cycles in the future 537 if (lcdControl.lcden) 538 schedule(readEvent, clockEdge(ticksToCycles(startTime - 539 curTick() + --- 241 unchanged lines hidden --- |