Tencent / vap

VAP是企鹅电竞开发,用于播放特效动画的实现方案。具有高压缩率、硬件解码等优点。同时支持 iOS,Android,Web 平台。
Other
3.84k stars 515 forks source link

iOS端展示效果有色差,并且动效的范围明显有缩小 #348

Open demoker opened 9 months ago

demoker commented 9 months ago
  1. 设计同学给到的动效素材在Android端展示正常,但是在iOS端展示效果微弱,表现为:色彩较淡,范围缩小一点。根据表象本人分析应该是因为透明通道盖在了原图上面,但是尝试设置blendMode为QGHWDTextureBlendMode_AlphaRight,不生效,素材添加到demo中也是一样的效果
  2. 运行环境:iOS 3.日志 2023-10-16 14:52:13.952647+0800 QGVAPlayerDemo[38569:10460063] <2> UIView+VAP.m(303):-[UIView(VAP) p_playHWDMP4:fps:blendMode:repeatCount:delegate:] [kQGVAPModuleCommon] - try to display mp4:/private/var/containers/Bundle/Application/A8E06FD1-05E1-413F-9ABD-6BF0F81EA906/QGVAPlayerDemo.app/Resource/vap_game_card_bg_ssr.mp4 blendMode:1 fps:0 repeatCount:-1 2023-10-16 14:52:13.954547+0800 QGVAPlayerDemo[38569:10460063] <5> QGVAPConfigManager.m(173):-[QGVAPConfigManager parseConfigDictinary:] [kQGVAPModuleCommon] - has no sourcesArr:{ info = { aFrame = ( 454, 0, 450, 640 ); f = 75; fps = 25; h = 640; isVapx = 0; orien = 0; rgbFrame = ( 0, 0, 450, 640 ); v = 2; videoH = 640; videoW = 912; w = 450; }; } 2023-10-16 14:52:17.088375+0800 QGVAPlayerDemo[38569:10460063] <2> QGMP4FrameHWDecoder.m(386):-[QGMP4FrameHWDecoder initPPSnSPS] [kQGVAPModuleCommon] - initPPSnSPS 2023-10-16 14:52:17.139508+0800 QGVAPlayerDemo[38569:10460063] <3> QGVAPMetalView.m(111):-[QGVAPMetalView display:mergeInfos:] [kQGVAPModuleCommon] - update drawablesize :NSSize: {675, 960} 2023-10-16 14:52:20.647185+0800 QGVAPlayerDemo[38569:10463021] <5> QGMP4Parser.m(540):-[QGMP4ParserProxy readPacketOfSample:] [kQGVAPModuleCommon] - readPacketOfSample beyond bounds!:75 > 74 2023-10-16 14:52:20.895348+0800 QGVAPlayerDemo[38569:10460063] <2> UIView+VAP.m(516):-[UIView(VAP) decoderDidFinishDecode:] [kQGVAPModuleCommon] - decoderDidFinishDecode. 2023-10-16 14:52:20.895490+0800 QGVAPlayerDemo[38569:10460063] <2> UIView+VAP.m(155):-[UIView(VAP) hwd_didFinishDisplay] [kQGVAPModuleCommon] - hwd didFinishDisplay 2023-10-16 14:52:20.895586+0800 QGVAPlayerDemo[38569:10460063] <2> UIView+VAP.m(165):-[UIView(VAP) hwd_didFinishDisplay] [kQGVAPModuleCommon] - continue to display. currentCount:-1 2023-10-16 14:52:20.895658+0800 QGVAPlayerDemo[38569:10460063] <2> UIView+VAP.m(303):-[UIView(VAP) p_playHWDMP4:fps:blendMode:repeatCount:delegate:] [kQGVAPModuleCommon] - try to display mp4:/private/var/containers/Bundle/Application/A8E06FD1-05E1-413F-9ABD-6BF0F81EA906/QGVAPlayerDemo.app/Resource/vap_game_card_bg_ssr.mp4 blendMode:1 fps:20 repeatCount:-1 2023-10-16 14:52:20.896880+0800 QGVAPlayerDemo[38569:10460063] <5> QGVAPConfigManager.m(173):-[QGVAPConfigManager parseConfigDictinary:] [kQGVAPModuleCommon] - has no sourcesArr:{ info = { aFrame = ( 454, 0, 450, 640 ); f = 75; fps = 25; h = 640; isVapx = 0; orien = 0; rgbFrame = ( 0, 0, 450, 640 ); v = 2; videoH = 640; videoW = 912; w = 450; }; } 2023-10-16 14:52:24.588172+0800 QGVAPlayerDemo[38569:10460063] <2> QGMP4FrameHWDecoder.m(386):-[QGMP4FrameHWDecoder initPPSnSPS] [kQGVAPModuleCommon] - initPPSnSPS

素材原件如下:

https://github.com/Tencent/vap/assets/10993817/3fee5f76-c2fd-43f8-a713-0a5156c590c7

@hexleo