Rename convert to process

More consistent with its "main" function's name
This commit is contained in:
ISSOtm
2022-03-22 18:42:33 +01:00
committed by Eldred Habert
parent 79adcdb7ea
commit 188027bccc
6 changed files with 7 additions and 6 deletions

View File

@@ -70,10 +70,10 @@ set(rgbfix_src
)
set(rgbgfx_src
"gfx/convert.cpp"
"gfx/main.cpp"
"gfx/pal_packing.cpp"
"gfx/pal_sorting.cpp"
"gfx/process.cpp"
"gfx/proto_palette.cpp"
"gfx/rgba.cpp"
"extern/getopt.c"

View File

@@ -24,7 +24,7 @@
#include "platform.h"
#include "version.h"
#include "gfx/convert.hpp"
#include "gfx/process.hpp"
using namespace std::literals::string_view_literals;

View File

@@ -7,8 +7,8 @@
#include "helpers.h"
#include "gfx/convert.hpp"
#include "gfx/main.hpp"
#include "gfx/process.hpp"
namespace sorting {

View File

@@ -6,7 +6,7 @@
* SPDX-License-Identifier: MIT
*/
#include "gfx/convert.hpp"
#include "gfx/process.hpp"
#include <algorithm>
#include <assert.h>
@@ -687,7 +687,8 @@ static void outputTileData(Png const &png, DefaultInitVec<AttrmapEntry> const &a
for (auto tile : png.visitAsTiles(options.columnMajor)) {
size_t protoPaletteID = iter->protoPaletteID;
// If the tile is fully transparent, default to palette 0
Palette const &palette = palettes[protoPaletteID != AttrmapEntry::transparent ? mappings[protoPaletteID] : 0];
Palette const &palette =
palettes[protoPaletteID != AttrmapEntry::transparent ? mappings[protoPaletteID] : 0];
for (uint32_t y = 0; y < 8; ++y) {
uint16_t bitplanes = TileData::rowBitplanes(tile, palette, y);
output.sputc(bitplanes & 0xFF);