QGMP4FrameHWDecoder.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. // QGMP4FrameHWDecoder.h
  2. // Tencent is pleased to support the open source community by making vap available.
  3. //
  4. // Copyright (C) 2020 THL A29 Limited, a Tencent company. All rights reserved.
  5. //
  6. // Licensed under the MIT License (the "License"); you may not use this file except in
  7. // compliance with the License. You may obtain a copy of the License at
  8. //
  9. // http://opensource.org/licenses/MIT
  10. //
  11. // Unless required by applicable law or agreed to in writing, software distributed under the License is
  12. // distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
  13. // either express or implied. See the License for the specific language governing permissions and
  14. // limitations under the License.
  15. #import "QGBaseDecoder.h"
  16. #import "QGMP4HWDFileInfo.h"
  17. #import <UIKit/UIKit.h>
  18. /* 数字跳动的动画类型*/
  19. typedef NS_ENUM(NSInteger, QGMP4HWDErrorCode){
  20. QGMP4HWDErrorCode_FileNotExist = 10000, // 文件不存在
  21. QGMP4HWDErrorCode_InvalidMP4File = 10001, // 非法的mp4文件
  22. QGMP4HWDErrorCode_CanNotGetStreamInfo = 10002, // 无法获取视频流信息
  23. QGMP4HWDErrorCode_CanNotGetStream = 10003, // 无法获取视频流
  24. QGMP4HWDErrorCode_ErrorCreateVTBDesc = 10004, // 创建desc失败
  25. QGMP4HWDErrorCode_ErrorCreateVTBSession = 10005, // 创建session失败
  26. };
  27. @interface UIDevice (HWD)
  28. - (BOOL)hwd_isSimulator;
  29. @end
  30. @interface QGMP4FrameHWDecoder : QGBaseDecoder
  31. + (NSString *)errorDescriptionForCode:(QGMP4HWDErrorCode)errorCode;
  32. @end