• 9599阅读
  • 8回复

APlayer如何设置影片成2D转换3D模式与3D转换2D模式 [复制链接]

上一主题 下一主题
离线w182291185
 

只看楼主 倒序阅读 使用道具 楼主  发表于: 2014-04-21
目前很多软件已经有了这个3D与2D的互转功能。不知道APlayer可不可有这个功能?希望能有!
离线aplayer

只看该作者 沙发  发表于: 2014-04-21
你说的转换是3D播放功能还是把2D片源转换为3D?
如果是2D片源3D化,目前业界还没有很好的这种技术,都是效果很差的伪3D,当然 APlayer 也支持这种转换;
还有,如果是红蓝方式播放3D片源的话,APlayer也有支持;APlayer  关于3D播放的参数如下:

308 - Image 3D enable             int        R/W            color 3D enable! 1-enable, 0-disable, default 0
309 - Image 3D okay                int        R                check the color 3D mode is okay, 1-okay, 0-not okay.
310 - Image 3D show                int        R/W            color 3D effect show, default 1
311 - Image 3D color                int        R/W            color 3D color, 1:R/GB,2:GB/R,3:RG/B,4:B/RG,5:G/RB,6:RB/G,7:R/G,8:G/R,9:G/B,10:B/G,11:R/B,12:B/R, default 1
312 - Image 3D mode               int        R/W            color 3D mode, 0-virtual(2d to 3d), 1-left/right, 2-top/bottom, default 0





离线w182291185

只看该作者 板凳  发表于: 2014-04-23
回 aplayer 的帖子
aplayer:你说的转换是3D播放功能还是把2D片源转换为3D?如果是2D片源3D化,目前业界还没有很好的这种技术,都是效果很差的伪3D,当然 APlayer 也支持这种转换;
还有,如果是红蓝方式播放3D片源的话,APla .. (2014-04-21 20:12) 

按照你提供的参数调用后·我发现没有成功·请问是否有先决条件的存在,就是调用这个类参数的时候·是不是还要必须调用一个某参数?
离线aplayer

只看该作者 地板  发表于: 2014-04-23
回 w182291185 的帖子
w182291185:按照你提供的参数调用后·我发现没有成功·请问是否有先决条件的存在,就是调用这个类参数的时候·是不是还要必须调用一个某参数? (2014-04-23 10:29) 

需要在 Open 之前先 SetConfig(308, L"1") 激活 3D 功能
然后 Open 之后, 需要用 SetConfig(310, L"1") 显示 3D 效果.
离线w182291185

只看该作者 4楼 发表于: 2014-04-25
回 aplayer 的帖子
aplayer:需要在 Open 之前先 SetConfig(308, L"1") 激活 3D 功能
然后 Open 之后, 需要用 SetConfig(310, L"1") 显示 3D 效果. (2014-04-23 21:11) 

你好·我这边还碰到一个问题·如果使用308激活3D功能后。305的画质增强功能就失效了·不能用·请问改如何解决了?
离线aplayer

只看该作者 5楼 发表于: 2014-04-26
回 w182291185 的帖子
w182291185:你好·我这边还碰到一个问题·如果使用308激活3D功能后。305的画质增强功能就失效了·不能用·请问改如何解决了? (2014-04-25 12:06) 

确实,目前还没有支持在3D模式开启画质增强,后续会实现该需求,谢谢您的实验。
离线fhx123

只看该作者 6楼 发表于: 2020-02-02
@aplayer  
{
308 - Image 3D enable             int        R/W            color 3D enable! 1-enable, 0-disable, default 0
309 - Image 3D okay                int        R                check the color 3D mode is okay, 1-okay, 0-not okay.
310 - Image 3D show                int        R/W            color 3D effect show, default 1
311 - Image 3D color                int        R/W            color 3D color, 1:R/GB,2:GB/R,3:RG/B,4:B/RG,5:G/RB,6:RB/G,7:R/G,8:G/R,9:G/B,10:B/G,11:R/B,12:B/R, default 1
312 - Image 3D mode               int        R/W            color 3D mode, 0-virtual(2d to 3d), 1-left/right, 2-top/bottom, default 0
//CHM
308 - Image 3D enable                int      R/W         激活分色 3D 播放模式,1-激活, 0-不激活,默认0,Open 之前调用
309 - Image 3D okay                  int      R           查询分色 3D 模式是否已激活,1-激活, 0-未激活。
310 - Image 3D show                  int      R/W         是否显示分色 3D 效果,1-显示,0-不显示,默认 1
311 - Image 3D mode                  int      R/W         分色模式,1-虚拟(2D转3D),2-左右,3-上下,默认 1
312 - Image 3D color                 int      R/W         分色颜色,以匹配不同的 3D 眼镜,1:红青,2:青红,3:黄蓝,4:蓝黄,5:绿紫,6:紫绿,7:红绿,8:绿红,9:绿蓝,10:蓝绿,11:红蓝,12:蓝红, 默认 1
}
1、以上设置信息跟chm里的不同;
2、以下是我代码,测试播放 阿凡达 3D没有任何效果。

  if dlgOpen.Execute(Handle) then
  begin
    APlayer.SetConfig(308,'1'); //激活分色 3D 播放模式,1-激活, 0-不激活,默认0,Open 之前调用
    APlayer.Open(dlgOpen.FileName);
    APlayer.SetConfig(310,'1'); //是否显示分色 3D 效果,1-显示,0-不显示,默认 1
    APlayer.SetConfig(311,'2'); //分色模式,1-虚拟(2D转3D),2-左右,3-上下,默认 1
  end;
本帖提到的人: @aplayer
离线aplayer

只看该作者 7楼 发表于: 2020-02-04
回 fhx123 的帖子
fhx123:@aplayer  
{
308 - Image 3D enable             int        R/W            color 3D enable! .. (2020-02-02 03:40) 

310,311 参数设置的太早,要等 OpenSucceeded  事件之后再设置
离线fhx123

只看该作者 8楼 发表于: 2020-02-11
研究了很久,最关键的是激活分色前,一定要关闭硬件加速,AP默认是启用硬件加速的,这个冲突折腾了很久。
快速回复
限100 字节
如果您在写长篇帖子又不马上发表,建议存为草稿
 
上一个 下一个