FishPlayControl.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. //
  2. // FishPlayControl.h
  3. // FunSDKDemo
  4. //
  5. // Created by XM on 2018/11/21.
  6. // Copyright © 2018年 XM. All rights reserved.
  7. //
  8. /*****
  9. *
  10. * 鱼眼视频预览视图控制器
  11. *
  12. *****/
  13. #import <Foundation/Foundation.h>
  14. #import "VRGLViewController.h"
  15. #import "HardVRViewController.h"
  16. #import "UILabelOutLined.h"
  17. #import "VRFunctionView.h"
  18. @interface FishPlayControl : NSObject <VRFunctionViewDelegate>
  19. {
  20. VRGLViewController *softV;//鱼眼软解播放画面,(绝大部分设备都是软解)
  21. HardVRViewController *hardV; //鱼眼硬解播放画面
  22. int Hardandsofts;//鱼眼解码模式 4:软解 3:硬解
  23. int Hardmodels;//鱼眼画面模式
  24. int shapeType; //吸顶模式还是壁挂模式
  25. BOOL isFeyeYuv;//是否是鱼眼预览
  26. short centerOffsetX; //鱼眼偏移量参数
  27. short centerOffsetY;
  28. short imageWidth; //语言宽高参数
  29. short imageHeight;
  30. short imgradius; //鱼眼半径参数
  31. UILabelOutLined *timeLab;
  32. UILabelOutLined *nameLab;
  33. UIButton *VRFunction; //鱼眼显示形状功能 functionView 的button
  34. VRFunctionView *functionView; //鱼眼显示形状功能view
  35. }
  36. #pragma mark 取出初始化成功的硬解或者软解控制器,传递给上层设置为childCiewController
  37. - (GLKViewController *)getFeyeViewController ;
  38. #pragma mark 初始化鱼眼播放界面
  39. -(void)createFeye:(int)type frameSize:(CGRect)frame;
  40. #pragma mark 根据鱼眼模式刷新界面
  41. - (void)refreshSoftModel:(int)Hardandsoft model:(int)Hardmodel;
  42. #pragma mark 接收到视频数据传递给底层处理显示画面
  43. -(void)PushData:(int)width height:(int)height YUVData:(unsigned char *)pData;
  44. #pragma mark 鱼眼软解,设置宽高中心偏移量半径等等参数
  45. -(void)centerOffSetX:(short)OffSetx offY:(short)OffSetY radius:(short)radius width:(short)width height:(short)height ;
  46. #pragma mark 设置鱼眼视频预览的时间
  47. - (void)setTimeLabelText:(NSString*)time;
  48. @end