38#ifndef __BASE_IMGWRITER_HH__
39#define __BASE_IMGWRITER_HH__
46#include "enums/ImageFormat.hh"
65 virtual void write(std::ostream &out)
const = 0;
90std::unique_ptr<ImgWriter>
Internal gem5 representation of a frame buffer.
ImgWriter(const FrameBuffer *_fb)
virtual const char * getImgExtension() const =0
virtual void write(std::ostream &out) const =0
Write the frame buffer data into the provided ostream.
Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved.
std::unique_ptr< ImgWriter > createImgWriter(enums::ImageFormat type, const FrameBuffer *fb)
Factory Function which allocates a ImgWriter object and returns a smart pointer to it.