VapxProcessor.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. // Tencent is pleased to support the open source community by making vap available.
  2. //
  3. // Copyright (C) 2020 THL A29 Limited, a Tencent company. All rights reserved.
  4. //
  5. // Licensed under the MIT License (the "License"); you may not use this file except in
  6. // compliance with the License. You may obtain a copy of the License at
  7. //
  8. // http://opensource.org/licenses/MIT
  9. //
  10. // Unless required by applicable law or agreed to in writing, software distributed under the License is
  11. // distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
  12. // either express or implied. See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. #import <Foundation/Foundation.h>
  15. #import "VapxFileHelper.h"
  16. #import "VapMergeInfoView.h"
  17. typedef void (^processorCompletionBlock)(BOOL success, NSString *output, NSError* error);
  18. typedef void (^processorProgressBlock)(CGFloat progress);
  19. @interface VapxProcessor : NSObject
  20. @property (nonatomic, strong) VapxFileHelper *fileHelper;
  21. @property (nonatomic, assign) NSInteger version;
  22. @property (nonatomic, assign) NSInteger fps;
  23. @property (nonatomic, assign) NSInteger bitrates;
  24. @property (nonatomic, assign) CGFloat alphaScale;
  25. @property (nonatomic, strong) NSString *audioPath;
  26. @property (nonatomic, assign) NSEdgeInsets layoutPadding;
  27. @property (nonatomic, assign) BOOL classicMode;
  28. @property (nonatomic, strong) NSArray<VapMergeInfoView*> *mergeInfoViews;
  29. - (void)process:(processorProgressBlock)progress onCompletion:(processorCompletionBlock)block;
  30. @end