1.分离upngj至3rd_party

Signed-off-by: zhoulisheng1 <zhoulisheng1@huawei.com>
This commit is contained in:
zhoulisheng1 2023-04-07 14:09:19 +08:00
parent 72edea3c7e
commit bb700b42f4
4 changed files with 4 additions and 5 deletions

View File

@ -13,7 +13,7 @@
* limitations under the License.
*/
import arkWorker from '@ohos.worker';
import {UPNG} from './src/main/ets/components/imageknife/pngj/UPNG'
import {UPNG} from './src/main/ets/components/3rd_party/upng/UPNG'
export function handler (e) {
var data = e.data;

View File

@ -85,7 +85,7 @@ export * from './src/main/ets/components/imageknife/transform/pixelmap/FitCenter
*/
export * from './src/main/ets/components/imageknife/pngj/Pngj'
export {handler} from './PngWork'
export * from './src/main/ets/components/imageknife/pngj/UPNG'
export * from './src/main/ets/components/3rd_party/upng/UPNG'

View File

@ -20,8 +20,7 @@
*LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
*OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
*SOFTWARE.*/
//const pako = require('pako');
import {deflate} from '../../3rd_party/pako/lib/deflate'
import {deflate} from '../pako/lib/deflate'
var pako = {deflate}
const UZIP = null;

View File

@ -12,7 +12,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import {UPNG} from '../pngj/UPNG';
import {UPNG} from '../../3rd_party/upng/UPNG';
import {PngCallback} from '../pngj/PngCallback';
import image from '@ohos.multimedia.image';
import resourceManager from '@ohos.resourceManager';