diff options
author | Vladimir Chtchetkine <vchtchetkine@google.com> | 2011-09-17 07:22:41 -0700 |
---|---|---|
committer | Vladimir Chtchetkine <vchtchetkine@google.com> | 2011-09-17 07:22:41 -0700 |
commit | d6362e54b7b116a42d45a1ef499ff180548c7674 (patch) | |
tree | e9107e575dbe39b5e1651ee8eaf39a608b038161 /disas.h | |
parent | 916106df33bcbceceb81b582a331915f487ea21e (diff) | |
download | external_qemu-d6362e54b7b116a42d45a1ef499ff180548c7674.zip external_qemu-d6362e54b7b116a42d45a1ef499ff180548c7674.tar.gz external_qemu-d6362e54b7b116a42d45a1ef499ff180548c7674.tar.bz2 |
Refactor the converters to make them more manageable
The current conversion implementation was laking flexibility as far as adding support
for new formats was concerned. In particular, adding support for each new format meant
adding four converter routines: new format <--> RGB, new format <--> YUV. This was not
scalable, so had to be rewritten.
The new conversion implementation consists of four generic converters between different
flavors og RGB/YUV formats, and array of descriptors for each supported format. Each
descriptor contains information that is sufficient for the converter routines to perform
its job. So, adding new format is just creating a new descriptor for that format, and
adding it to the array of supported descriptors.
Change-Id: Ica107d14fa03fa8f41eb9192f2c023a97f54b62c
Diffstat (limited to 'disas.h')
0 files changed, 0 insertions, 0 deletions