mirror of
https://github.com/openharmony/third_party_astc-encoder.git
synced 2026-07-19 18:23:37 -04:00
@@ -1,6 +1,6 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
// ----------------------------------------------------------------------------
|
||||
// Copyright 2021 Arm Limited
|
||||
// Copyright 2021-2024 Arm Limited
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||||
// use this file except in compliance with the License. You may obtain a copy
|
||||
@@ -32,10 +32,10 @@
|
||||
#include "astcenc.h"
|
||||
|
||||
#define STB_IMAGE_IMPLEMENTATION
|
||||
#include "stb_image.h"
|
||||
#include "ThirdParty/stb_image.h"
|
||||
|
||||
#define STB_IMAGE_WRITE_IMPLEMENTATION
|
||||
#include "stb_image_write.h"
|
||||
#include "ThirdParty/stb_image_write.h"
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
@@ -79,10 +79,6 @@ int main(int argc, char **argv)
|
||||
// ------------------------------------------------------------------------
|
||||
// Initialize the default configuration for the block size and quality
|
||||
astcenc_config config;
|
||||
config.block_x = block_x;
|
||||
config.block_y = block_y;
|
||||
config.profile = profile;
|
||||
|
||||
astcenc_error status;
|
||||
status = astcenc_config_init(profile, block_x, block_y, block_z, quality, 0, &config);
|
||||
if (status != ASTCENC_SUCCESS)
|
||||
|
||||
Reference in New Issue
Block a user