// // SBQueueAction.h // Subler // // Created by Damiano Galassi on 12/03/14. // // #import @class SBQueueItem; @class MP42Metadata; NS_ASSUME_NONNULL_BEGIN /** * SBQueue actions protocol, actions can be run by * the queue's items. */ @protocol SBQueueActionProtocol - (void)runAction:(SBQueueItem *)item; @property (nonatomic, readonly) NSString *localizedDescription; @end /** * An actions that search in the item source directory for additionals srt subtitles */ @interface SBQueueSubtitlesAction : NSObject @end /** * An actions that organize the item tracks' groups. */ @interface SBQueueOrganizeGroupsAction : NSObject @end /** * An actions that fix the item tracks' fallbacks. */ @interface SBQueueFixFallbacksAction : NSObject @end /** * An actions that remove the tracks names. */ @interface SBQueueClearTrackNameAction : NSObject @end /** * An actions that set unknown language tracks to preferred one. */ @interface SBQueueSetLanguageAction : NSObject - (instancetype)initWithLanguage:(NSString *)language; @end /** * An actions that set the video track color space. */ typedef NS_ENUM(NSUInteger, SBQueueColorSpaceActionTag) { SBQueueColorSpaceActionTagNone = 1, SBQueueColorSpaceActionTagRec601PAL, SBQueueColorSpaceActionTagRec601SMPTEC, SBQueueColorSpaceActionTagRec709, SBQueueColorSpaceActionTagRec2020 }; @interface SBQueueColorSpaceAction : NSObject - (instancetype)initWithTag:(uint16_t)tag; - (instancetype)initWithColorPrimaries:(uint16_t)colorPrimaries transferCharacteristics:(uint16_t)transferCharacteristics matrixCoefficients:(uint16_t)matrixCoefficients; @end NS_ASSUME_NONNULL_END