fluttercandies / flutter_image_compress

flutter image compress
MIT License
633 stars 214 forks source link

Android uses compressWithList flash back image format JPEG size 611.4 KB #219

Open Cedar1012 opened 2 years ago

Cedar1012 commented 2 years ago

I/ViewRootImpl@b550be7[MainActivity]: Relayout returned: old=(0,0,1080,2340) new=(0,0,1080,2340) req=(1080,2340)0 dur=10 res=0x1 s={true -5476376648227145264} ch=false fn=3 I/ViewRootImpl@b550be7[MainActivity]: updateBoundsLayer: t = android.view.SurfaceControl$Transaction@54f3638 sc = Surface(name=Bounds for - com.jinengmao.xinmanman/com.jinengmao.xinmanman.MainActivity@0)/@0xc8f5611 frame = 3 I/ViewRootImpl@b550be7[MainActivity]: mWNT: t = android.view.SurfaceControl$Transaction@54f3638 fN = 3 android.view.ViewRootImpl.prepareSurfaces:2770 android.view.ViewRootImpl.performTraversals:4016 android.view.ViewRootImpl.doTraversal:2911 I/ViewRootImpl@b550be7[MainActivity]: mWNT: merge t to BBQ W/Glide: Failed to find GeneratedAppGlideModule. You should include an annotationProcessor compile dependency on com.github.bumptech.glide:compiler in your application and a @GlideModule annotated AppGlideModule implementation or LibraryGlideModules will be silently ignored W/Glide: Failed to find GeneratedAppGlideModule. You should include an annotationProcessor compile dependency on com.github.bumptech.glide:compiler in your application and a @GlideModule annotated AppGlideModule implementation or LibraryGlideModules will be silently ignored W/Glide: Failed to find GeneratedAppGlideModule. You should include an annotationProcessor compile dependency on com.github.bumptech.glide:compiler in your application and a @GlideModule annotated AppGlideModule implementation or LibraryGlideModules will be silently ignored W/Glide: Failed to find GeneratedAppGlideModule. You should include an annotationProcessor compile dependency on com.github.bumptech.glide:compiler in your application and a @GlideModule annotated AppGlideModule implementation or LibraryGlideModules will be silently ignored W/Glide: Failed to find GeneratedAppGlideModule. You should include an annotationProcessor compile dependency on com.github.bumptech.glide:compiler in your application and a @GlideModule annotated AppGlideModule implementation or LibraryGlideModules will be silently ignored W/Glide: Failed to find GeneratedAppGlideModule. You should include an annotationProcessor compile dependency on com.github.bumptech.glide:compiler in your application and a @GlideModule annotated AppGlideModule implementation or LibraryGlideModules will be silently ignored W/Glide: Failed to find GeneratedAppGlideModule. You should include an annotationProcessor compile dependency on com.github.bumptech.glide:compiler in your application and a @GlideModule annotated AppGlideModule implementation or LibraryGlideModules will be silently ignored I/ViewRootImpl@b550be7[MainActivity]: ViewPostIme pointer 0 I/ViewRootImpl@b550be7[MainActivity]: ViewPostIme pointer 1 I/ViewRootImpl@b550be7[MainActivity]: ViewPostIme pointer 0 I/ViewRootImpl@b550be7[MainActivity]: ViewPostIme pointer 1 I/ViewRootImpl@b550be7[MainActivity]: ViewPostIme pointer 0 I/ViewRootImpl@b550be7[MainActivity]: ViewPostIme pointer 1 I/ViewRootImpl@b550be7[MainActivity]: ViewPostIme pointer 0 I/ViewRootImpl@b550be7[MainActivity]: ViewPostIme pointer 1 I/DecorView: notifyKeepScreenOnChanged: keepScreenOn=false I/ViewRootImpl@b550be7[MainActivity]: Relayout returned: old=(0,0,1080,2340) new=(0,0,1080,2340) req=(1080,2340)0 dur=9 res=0x1 s={true -5476376648227145264} ch=false fn=3 I/ViewRootImpl@b550be7[MainActivity]: updateBoundsLayer: t = android.view.SurfaceControl$Transaction@54f3638 sc = Surface(name=Bounds for - com.jinengmao.xinmanman/com.jinengmao.xinmanman.MainActivity@0)/@0xc8f5611 frame = 3 I/ViewRootImpl@b550be7[MainActivity]: mWNT: t = android.view.SurfaceControl$Transaction@54f3638 fN = 3 android.view.ViewRootImpl.prepareSurfaces:2770 android.view.ViewRootImpl.performTraversals:4016 android.view.ViewRootImpl.doTraversal:2911 I/ViewRootImpl@b550be7[MainActivity]: mWNT: merge t to BBQ D/PhoneWindow: forceLight changed to false [com.jinengmao.xinmanman/com.jinengmao.xinmanman.MainActivity] from com.android.internal.policy.PhoneWindow.updateForceLightNavigationBar:4319 com.android.internal.policy.PhoneWindow.setNavigationBarColor:4011 io.flutter.plugin.platform.PlatformPlugin.setSystemChromeSystemUIOverlayStyle:428 io.flutter.plugin.platform.PlatformPlugin.access$700:30 io.flutter.plugin.platform.PlatformPlugin$1.setSystemUiOverlayStyle:108 I/DecorView: notifyKeepScreenOnChanged: keepScreenOn=false I/ViewRootImpl@b550be7[MainActivity]: Relayout returned: old=(0,0,1080,2340) new=(0,0,1080,2340) req=(1080,2340)0 dur=6 res=0x1 s={true -5476376648227145264} ch=false fn=3 I/ViewRootImpl@b550be7[MainActivity]: updateBoundsLayer: t = android.view.SurfaceControl$Transaction@54f3638 sc = Surface(name=Bounds for - com.jinengmao.xinmanman/com.jinengmao.xinmanman.MainActivity@0)/@0xc8f5611 frame = 3 I/ViewRootImpl@b550be7[MainActivity]: mWNT: t = android.view.SurfaceControl$Transaction@54f3638 fN = 3 android.view.ViewRootImpl.prepareSurfaces:2770 android.view.ViewRootImpl.performTraversals:4016 android.view.ViewRootImpl.doTraversal:2911 I/ViewRootImpl@b550be7[MainActivity]: mWNT: merge t to BBQ D/MPEG4Writer: PreAllocation enabled D/MediaCodecList: codecHandlesFormat: no format, so no extra checks I/CCodec: state->set(ALLOCATING) I/CCodec: allocate(c2.qti.heic.encoder) I/Codec2Client: Available Codec2 services: "default" "default0" "software" I/CCodec: setting up 'default' as default (vendor) store I/CCodec: Created component [c2.qti.heic.encoder] I/CCodec: state->set(ALLOCATED) D/CCodecConfig: read media type: image/vnd.android.heic D/ReflectedParamUpdater: ignored struct field coding.gop.values D/ReflectedParamUpdater: extent() != 1 for single value type: output.buffers.pool-ids.values D/ReflectedParamUpdater: extent() != 1 for single value type: vendor.qti-ext-enc-temporal-layer-bitrate.layerBitrates D/ReflectedParamUpdater: ignored struct field coding.qp.values D/CCodecConfig: ignoring local param raw.color (0xc2001809) as it is already supported I/CCodecConfig: query failed after returning 24 values (BAD_INDEX) D/CCodecConfig: c2 config diff is Dict { c2::u32 algo.bitrate-mode.value = 7 c2::u32 algo.complexity.value = 100 c2::i32 algo.priority.value = 0 c2::u32 algo.quality.value = 100 c2::float algo.rate.value = 30 c2::u32 algo.secure-mode.value = 0 c2::u32 coded.bitrate.value = 20000000 c2::float coded.frame-rate.value = 30 c2::u32 coded.pl.level = 0 c2::u32 coded.pl.profile = 24576 c2::u32 coded.tile-layout.columns = 1 c2::u32 coded.tile-layout.order = 0 c2::u32 coded.tile-layout.rows = 1 c2::u32 coded.tile-layout.tile.height = 512 c2::u32 coded.tile-layout.tile.width = 512 c2::u32 coded.vui.color.matrix = 255 c2::u32 coded.vui.color.primaries = 0 c2::u32 coded.vui.color.range = 0 c2::u32 coded.vui.color.transfer = 255 c2::u32 coding.request-sync-frame.value = 0 c2::i64 coding.sync-frame-interval.value = 0 Buffer coding.temporal-layering = { 00000000: 10 00 00 00 07 20 01 52 00 00 00 00 00 00 00 00 ..... .R........ } c2::u32 default.color.matrix = 0 c2::u32 default.color. W/ColorUtils: expected specified color aspects (0:0:255:255) W/VideoCapabilities: Unsupported mime image/vnd.android.heic I/CCodec: state->set(RELEASING) I/CCodec: [c2.qti.heic.encoder] release(1) D/MediaCodecList: codecHandlesFormat: no format, so no extra checks I/CCodec: state->set(RELEASED) D/MediaCodecList: codecHandlesFormat: no format, so no extra checks I/hw-BpHwBinder: onLastStrongRef automatically unlinking death recipients D/MediaCodecList: codecHandlesFormat: no format, so no extra checks I/MediaCodec: Codec shutdown complete I/CCodec: state->set(ALLOCATING) I/CCodec: allocate(c2.qti.hevc.encoder) I/CCodec: setting up 'default' as default (vendor) store I/CCodec: Created component [c2.qti.hevc.encoder] I/CCodec: state->set(ALLOCATED) D/CCodecConfig: read media type: video/hevc D/ReflectedParamUpdater: extent() != 1 for single value type: output.buffers.pool-ids.values D/ReflectedParamUpdater: extent() != 1 for single value type: vendor.qti-ext-enc-temporal-layer-bitrate.layerBitrates D/ReflectedParamUpdater: ignored struct field coding.qp.values D/ReflectedParamUpdater: ignored struct field coding.gop.values D/ReflectedParamUpdater: extent() != 1 for single value type: vendor.qti-ext-enc-info-metadata-cvp.reserved D/CCodecConfig: ignoring local param raw.color (0xc2001809) as it is already supported I/CCodecConfig: query failed after returning 25 values (BAD_INDEX) D/CCodecConfig: c2 config diff is Dict { c2::u32 algo.bitrate-mode.value = 3 c2::u32 algo.complexity.value = 100 c2::i32 algo.priority.value = 0 c2::u32 algo.quality.value = 90 c2::float algo.rate.value = 30 c2::u32 algo.secure-mode.value = 0 c2::u32 coded.bitrate.value = 20000000 c2::float coded.frame-rate.value = 30 c2::u32 coded.pl.level = 0 c2::u32 coded.pl.profile = 24576 c2::u32 coded.vui.color.matrix = 255 c2::u32 coded.vui.color.primaries = 0 c2::u32 coded.vui.color.range = 0 c2::u32 coded.vui.color.transfer = 255 c2::u32 coding.intra-refresh.mode = 0 c2::float coding.intra-refresh.period = 0 c2::u32 coding.request-sync-frame.value = 0 c2::i64 coding.sync-frame-interval.value = 1000000 Buffer coding.temporal-layering = { 00000000: 10 00 00 00 07 20 01 52 00 00 00 00 00 00 00 00 ..... .R........ } c2::u32 default.color.matrix = 0 c2::u32 default.color.primaries = 0 c2::u32 default.color.range = 0 c2::u32 default.color.transfer = 0 c2::u32 input.delay.value = 0 W/ColorUtils: expected specified color aspects (0:0:255:255) D/HeifEncoder: Setting bitrate mode to constant bitrate I/MediaCodec: MediaCodec will operate in async mode D/CodecSeeding: Seed: codec c2.qti.hevc.encoder, mediatype video/hevc, overrideable 1 D/CodecProperties: setTuningValue(vq-target-bpp,0) D/CodecProperties: setTuningValue(vq-target-bpp-1080p,1.50) D/CodecProperties: setTuningValue(vq-target-bpp-720p,1.80) D/CodecProperties: setTuningValue(vq-target-bpp-540p,2.10) D/CodecProperties: setTuningValue(vq-target-bpp-480p,2.30) D/CodecProperties: setTuningValue(vq-target-bpp-320x240,0) D/CodecProperties: setTuningValue(vq-target-qpmax,-1) D/CodecProperties: setTuningValue(vq-target-qpmax-1080p,45) D/CodecProperties: setTuningValue(vq-target-qpmax-720p,44) D/CodecProperties: setTuningValue(vq-target-qpmax-540p,43) D/CodecProperties: setTuningValue(vq-target-qpmax-480p,42) D/CodecProperties: setTuningValue(vq-bitrate-phaseout,1.75) D/CodecProperties: setTuningValue(vq-boost-missing-qp,0.20) D/CodecProperties: setFeatureValue(intra-refresh,0) D/CodecProperties: setFeatureValue(qp-bounds,0) D/CodecProperties: setFeatureValue(_vq_eligible.device,1) D/CodecProperties: setFeatureValue(_quality.target,1) D/CodecSeeding: Seed: codec c2.qti.hevc.encoder, mediatype video/hevc, overrideable 0 D/VQApply: minquality: applies only to VBR encoding D/MediaCodec: shapeMediaFormat: deltas(0): AMessage(what = 0x00000000) = { } D/CCodec: [c2.qti.hevc.encoder] buffers are bound to CCodec for this session I/CCodec: appPid(31489) width(512) height(512) I/CCodec: app-name: com.jinengmao.xinmanman I/CCodec: Set content adaptive mode (0) I/CCodec: VideoController::setValues() isSet [0] W/CCodec: can't get ro.hardware.chipname I/CCodec: set values for [taro] D/CCodecConfig: no c2 equivalents for color-format D/CCodecConfig: no c2 equivalents for capture-rate D/CCodecConfig: no c2 equivalents for flags D/CCodecConfig: no c2 equivalents for encoder D/CCodecConfig: c2 config diff is c2::u32 algo.bitrate-mode.value = 1 c2::u32 coded.bitrate.value = 1575135 c2::float coded.frame-rate.value = 6 c2::i64 coding.sync-frame-interval.value = 0 c2::u32 raw.pixel-format.value = 34 c2::u32 raw.size.height = 512 c2::u32 raw.size.width = 512 W/ColorUtils: expected specified color aspects (0:0:255:255) W/Codec2Client: query -- param skipped: index = 3254781982. D/CCodec: setup formats input: AMessage(what = 0x00000000) = { int32_t android._color-format = 2130708361 Rect crop(0, 0, 511, 511) int32_t color-standard = 130816 int32_t color-range = 0 int32_t color-transfer = 65791 int32_t width = 512 int32_t android._dataspace = 12648448 int32_t feature-secure-playback = 0 int32_t frame-rate = 6 int32_t height = 512 int32_t intra-refresh-period = 0 string mime = "video/raw" int32_t prepend-sps-pps-to-idr-frames = 0 int32_t priority = 0 Buffer hdr-static-info = { 00000000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00000010: 00 00 00 00 00 00 00 00 00 ......... } int64_t android._C2MemoryUsage = 4503599631631104 int32_t color-format = 2130708361 } D/CCodec: setup formats output: AMessage(what = 0x00000000) = { int32_t bitrate = 1575135 int32_t bitrate-mode = 2 Rect crop(0, 0, 511, 511) int32_t width = 512 int32_t color-standard = 130816 int32_t color-range = 0 int32_t color-transfer = 65791 int32_t feature-secure-playback = 0 int32_t frame-rate = 6 Buffer hdr10-plus-info = { 00000000: 00 . } int32_t height = 512 int32_t intra-refresh-period = 0 int32_t max-bitrate = 1575135 string mime = "video/hevc" int32_t prepend-sps-pps-to-idr-frames = 0 int32_t priority = 0 int32_t profile = 1 } I/CCodecConfig: query failed after returning 26 values (BAD_INDEX) D/CCodec: input format changed to AMessage(what = 0x00000000) = { int32_t android._color-format = 2130708361 Rect crop(0, 0, 511, 511) int32_t color-standard = 3 int32_t color-range = 2 int32_t color-transfer = 3 int32_t width = 512 int32_t android._dataspace = 281214976 int32_t feature-secure-playback = 0 int32_t frame-rate = 6 int32_t height = 512 int32_t intra-refresh-period = 0 string mime = "video/raw" int32_t prepend-sps-pps-to-idr-frames = 0 int32_t priority = 0 Buffer hdr-static-info = { 00000000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00000010: 00 00 00 00 00 00 00 00 00 ......... } int64_t android._C2MemoryUsage = 4503599631631104 int32_t color-format = 2130708361 } D/CCodec: ISConfig timeLapse 180fps as 6fps D/MediaCodec: keep callback message for reclaim I/CCodec: state->set(STARTING) W/Codec2Client: query -- param skipped: index = 1342179345. W/Codec2Client: query -- param skipped: index = 2415921170. W/Codec2Client: query -- param skipped: index = 1610614798. D/CCodecBufferChannel: [c2.qti.hevc.encoder#456] Query input allocators returned 0 params => BAD_INDEX (6) D/CCodecBufferChannel: [c2.qti.hevc.encoder#456] Using basic input block pool with poolID 1 => got 1 - OK (0) D/CCodecBufferChannel: [c2.qti.hevc.encoder#456] Query output allocators returned 0 params => BAD_INDEX (6) I/CCodecBufferChannel: [c2.qti.hevc.encoder#456] Created output block pool with allocatorID 16 => poolID 10311 - OK D/CCodecBufferChannel: [c2.qti.hevc.encoder#456] Configured output block pool ids 10311 => OK I/CCodec: state->set(RUNNING) I/MediaCodec: setCodecState state(0), called in 6 A/libc: Fatal signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 0xb4000071d81d258c in tid 32131 (pool-12-thread-), pid 31489 (ngmao.xinmanman) Disconnected from the target VM, address: 'localhost:60742', transport: 'socket'