imgwriter.cc (12230:48021d6b51eb) imgwriter.cc (12334:e0ab29a34764)
1/*
2 * Copyright (c) 2017 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

--- 24 unchanged lines hidden (view full) ---

33 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
34 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
35 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
36 *
37 * Authors: Giacomo Travaglini
38 */
39
40#include "base/imgwriter.hh"
1/*
2 * Copyright (c) 2017 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

--- 24 unchanged lines hidden (view full) ---

33 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
34 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
35 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
36 *
37 * Authors: Giacomo Travaglini
38 */
39
40#include "base/imgwriter.hh"
41#include "base/bmpwriter.hh"
42#include "base/misc.hh"
43
41
42#include "base/bmpwriter.hh"
43#include "base/logging.hh"
44#include "config/use_png.hh"
45
46#if USE_PNG
47#include "base/pngwriter.hh"
44#include "config/use_png.hh"
45
46#if USE_PNG
47#include "base/pngwriter.hh"
48
48#endif
49
50std::unique_ptr<ImgWriter>
51createImgWriter(Enums::ImageFormat type, const FrameBuffer *fb)
52{
53 switch (type) {
54 case Enums::Auto:
55 // The Auto option allows gem5 to choose automatically the

--- 17 unchanged lines hidden ---
49#endif
50
51std::unique_ptr<ImgWriter>
52createImgWriter(Enums::ImageFormat type, const FrameBuffer *fb)
53{
54 switch (type) {
55 case Enums::Auto:
56 // The Auto option allows gem5 to choose automatically the

--- 17 unchanged lines hidden ---