Graphics.py revision 12230
15335Shines@cs.fsu.edu# Copyright (c) 2017 ARM Limited
24486Sbinkertn@umich.edu# All rights reserved
34486Sbinkertn@umich.edu#
44486Sbinkertn@umich.edu# The license below extends only to copyright in the software and shall
54486Sbinkertn@umich.edu# not be construed as granting a license to any other intellectual
64486Sbinkertn@umich.edu# property including but not limited to intellectual property relating
74486Sbinkertn@umich.edu# to a hardware implementation of the functionality of the software
84486Sbinkertn@umich.edu# licensed hereunder.  You may use the software subject to the license
94486Sbinkertn@umich.edu# terms below provided that you ensure that this notice is replicated
104486Sbinkertn@umich.edu# unmodified and in its entirety in all distributions of the software,
114486Sbinkertn@umich.edu# modified or unmodified, in source code or in binary form.
124486Sbinkertn@umich.edu#
134486Sbinkertn@umich.edu# Redistribution and use in source and binary forms, with or without
144486Sbinkertn@umich.edu# modification, are permitted provided that the following conditions are
154486Sbinkertn@umich.edu# met: redistributions of source code must retain the above copyright
164486Sbinkertn@umich.edu# notice, this list of conditions and the following disclaimer;
174486Sbinkertn@umich.edu# redistributions in binary form must reproduce the above copyright
184486Sbinkertn@umich.edu# notice, this list of conditions and the following disclaimer in the
194486Sbinkertn@umich.edu# documentation and/or other materials provided with the distribution;
204486Sbinkertn@umich.edu# neither the name of the copyright holders nor the names of its
214486Sbinkertn@umich.edu# contributors may be used to endorse or promote products derived from
224486Sbinkertn@umich.edu# this software without specific prior written permission.
234486Sbinkertn@umich.edu#
244486Sbinkertn@umich.edu# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
254486Sbinkertn@umich.edu# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
264486Sbinkertn@umich.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
274486Sbinkertn@umich.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
284486Sbinkertn@umich.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
296654Snate@binkert.org# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
306654Snate@binkert.org# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
316654Snate@binkert.org# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
323102SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
333102SN/A# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
346654Snate@binkert.org# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
352998SN/A#
364776Sgblack@eecs.umich.edu# Authors: Giacomo Travaglini
374776Sgblack@eecs.umich.edu
386654Snate@binkert.orgfrom m5.SimObject import SimObject
392667SN/Afrom m5.params import *
404776Sgblack@eecs.umich.edu
414776Sgblack@eecs.umich.edu# Image Formats:
426654Snate@binkert.org# Auto option will let gem5 to choose the image format it prefers.
436023Snate@binkert.orgclass ImageFormat(Enum): vals = ['Auto', 'Bitmap', 'Png']
446654Snate@binkert.org