VR视频流的预测、通信和计算持续时间优化(Matlab代码实现)

           目录

💥1 概述

📚2 运行结果

🎉3 参考文献

👨‍💻4 Matlab代码


💥1 概述

随着网络技术的飞速发展,流媒体类型的新型娱乐方式应运而生,与此同时,随着三维图形软硬件技术的进步,虚拟现实(VR)技术也逐渐成为当今最火热的技术之一。本文旨在VR视频流的预测、通信和计算持续时间优化。

📚2 运行结果

 

 

 

 

🎉3 参考文献

[1]吴长昊,王健,方丽华,郭庆稳.基于预测机制的云媒体网络自适应视频流选择算法[J].计算机应用研究,2016,33(11):3426-3429+3434.

👨‍💻4 Matlab代码

主函数部分代码:

clc;clear;

T_cc_max = 0.2:0.05:50;
Number_T_cc_max = length(T_cc_max);
recp_T = 1./T_cc_max;
tau = 0.1;
T_seg = 1;
T_ps = 1;


%% The solution comes from formula (19) in the paper
t_obw = max(T_ps - T_cc_max, tau);

t_cc = min(T_cc_max,T_ps - tau);

boundary_x = 1./(T_ps - tau)*ones(5,1);

boundary_y = linspace(min(t_obw),max(t_cc),5); 


clear figure

plot(recp_T,t_obw,'-b*','MarkerSize',8,'LineWidth',2);hold on;
plot(recp_T,t_cc,'-g^','MarkerSize',8,'LineWidth',2);hold on;
plot(boundary_x,boundary_y,'--r','LineWidth',2);hold on;
set(gca,'xlim',[min(recp_T),max(recp_T)],'xtick',[min(recp_T) 1:1:max(recp_T)]);hold on;
set(gca,'ylim',[min(min(t_obw)),max(max(t_cc))],'ytick',[min(min(t_obw)) 0.2:0.2:1 ] );hold on;
set(gca,'FontSize',20,'Fontname', 'Times New Roman');hold on;grid on;


legend('legend_2C_obw');hold on;
legend_fig2b = legend('$t_{\mathrm{obw}}^{*}$','$t_{\mathrm{cc}}^{*}$','$\displaystyle T_{\mathrm{cc}}^{\max} = T_{\mathrm{ps}} - \tau $','FontName','Times New Roman','Fontsize',22);
legend_fig2b.Interpreter = 'latex';
set(legend_fig2b,'Box','off');

text(1/(T_seg - tau)+ 0.5, max(t_cc) - 0.1,'Resource-limited region','FontName','Times New Roman','Fontsize',20,'FontWeight','bold');hold on; %
text(1/(T_seg - tau)+ 0.5,min(t_obw)+0.1,'Prediction-limited region','FontName','Times New Roman','Fontsize',20,'FontWeight','bold');hold on;

xlabel('xtolatex');
xtolatex = xlabel('$\displaystyle 1/T_{\mathrm{cc}}^{\max}$(1/seconds)','Fontsize',20);
xtolatex.Interpreter = 'latex';
ylabel('Duration(seconds)','FontName','Times New Roman','Fontsize',20);

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值