Llimage libtest

From Second Life Wiki
Revision as of 00:29, 9 March 2011 by Merov Linden (talk | contribs) (First deaft)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Introduction

Looking into <jira>STORM-746</jira>, we realized we needed an applet to quickly and reliably test JPEG2000 compression/decompression strategies. We also realized that we could use such an applet to run texture compression/decompression tests as part of the set of integration tests we're running when building the viewer.

So, instead of doing a quick independent hack, we decided to build an llimage_libtest applet that can be run as part of the test suite.

Objectives

  • Allow on-going test of texture compression/decompression code without having to launch the viewer
  • Allow consistent compression/decompression performance measurements
  • Allow quick test of alternative compress/decompress strategies and techniques
  • Allow simple j2c/jpg image conversion

Quick Spec

  • Add llimage_libtest as part of the integration test suite: indra/integration_tests/llimage_libtest/llimage_libtest.cpp
  • Command line only executable (no display window after decompression)
  • Accept a variety of arguments on the command line
  • Read jpeg or png images and output j2c
  • Read j2c images and output a jpeg or png
  • Output image properties: size, components, histograms and other stats
  • Output compress/decompress performances

Command Line Syntax

TODO

Links

  • <jira>STORM-987</jira>