大家好!
请问一下dm365支持视频的缩放的功能吗?现在要想用dm365 编一个720p的264的编码,然后以任意分辨率(小于720p的分辨率)输出到电视上,是不是要用到resizer的功能呀?
IMP_MODE_SINGLE_SHOT、IMP_MODE_CONTINUOUS 两种模式到底是是什么意思,有什么区别呀?
谢谢!
CrazyQin:
回复 VampireDaVinci:
现在用dmai下的resize demo程序(dvsdk_2_10_01_18\dmai_1_21_00_10\packages\ti\sdo\dmai\apps\video_loopback_resize),运行时出现了以下信息
rsz_dev.users:0
davinci_resizer davinci_resizer.2: RSZ_G_CONFIG:0:1:108
davinci_previewer davinci_previewer.2: ipipe_set_preview_config
davinci_previewer davinci_previewer.2: ipipe_set_preview_config
vpfe ccdc capture vpfe ccdc capture.1: IMP chained
vpfe ccdc capture vpfe ccdc capture.1: Resizer present
vpfe ccdc capture vpfe ccdc capture.1: hpitch = 720, vpitch = 576, bpp = 1
vpfe ccdc capture vpfe ccdc capture.1: hpitch = 720, vpitch = 576, bpp = 1
Starting ccdc_config_ycbcr…<7>
starting ccdc_reset…<7>
End of ccdc_reset…<7>
Starting ccdc_setwin…<7>ipipe_set_resizer, resizer – A enabled
DavinciDisplay DavinciDisplay.1: Before finishing with S_FMT:
layer.pix_fmt.bytesperline = 736,
layer.pix_fmt.width = 720,
layer.pix_fmt.height = 576,
layer.pix_fmt.sizeimage =635904
DavinciDisplay DavinciDisplay.1: pixfmt->width = 720,
layer->layer_info.config.line_length= 736
rsz_dev.users:1//这个是我在内核加的打印,由于这个值不等于 0 导致了下面错误信息的打印
davinci_resizer davinci_resizer.2:
mode doesn't allow multiple instances //这个是内核中的打印
@10,493,095us: [+7 T:0x4001fd40] ti.sdo.dmai – [Resize] Failed to open /dev/davinci_resizer
Failed to create resize job
请问哪里出现问题了?导致了Resize_create 创建失败?我在bootagrs已经配置成 CONTS模式,我也试配置成sigle shot mode,但是程序仍然运行不起来,只是提示的错误信息不一样("Operation mode doesn't match with current hw mode")。
bootargs=console=ttyS0,115200n8 noinitrd rw ip=192.168.2.42:255.255.255.0:192.168.2.1 root=/dev/nfs nfsroot=192.168.2.67:/home/qinjian/nfs/solo/fs,nolock mem=80M video=davincifb:vid0=OFF:vid1=OFF:osd0=720x576x16,4050K dm365_imp.oper_mode=0 davinci_capture.device_type=4 "
binbin xu:
回复 CrazyQin:
我也遇到了同样的问题,求帮忙分享一下?
davinci_resizer davinci_resizer.2: Operation mode doesn't match with current hw mode
vren init ok
Failed to create resize job
exit from video render thread begin
i2c_adapter i2c-0: TVP7002 – clocks per line detected = 216
End of querystd function.
vpfe ccdc capture vpfe ccdc capture.1: hpitch = 1280, vpitch = 720, bpp = 1
vpfe ccdc capture vpfe ccdc capture.1: hpitch = 1280, vpitch = 720, bpp = 1
Starting ccdc_config_ycbcr…<7>
starting ccdc_reset…<7>
End of ccdc_reset…<7>
Starting ccdc_setwin…<7>ipipe_set_resizer, resizer – A enabled
video encode buffer size = 1382400
venc init ok
writer init ok
LYJ:
回复 binbin xu:
这边人水平不行,还是去ti e2e官网问吧