mirror of
https://gitee.com/openharmony-tpc/ImageKnife.git
synced 2026-05-24 17:25:44 +08:00
1.分离upngj至3rd_party
Signed-off-by: zhoulisheng1 <zhoulisheng1@huawei.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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'
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user