Skip to content
This repository has been archived by the owner on Apr 8, 2024. It is now read-only.

Commit

Permalink
Add init method implementations for configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
morozkin committed Jan 19, 2019
1 parent 13e981f commit af00803
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@ @interface FSPConfigurationJpeg ()

@implementation FSPConfigurationJpeg

- (instancetype)init {
return [self initWithUseTrellis:YES
useProgressive:NO
useOptimizeScan:NO
useCompatibleDCScanOption:NO
usePSNRQuantTable:NO];
}

- (instancetype)initWithUseTrellis:(BOOL)useTrellis
useProgressive:(BOOL)useProgressive
useOptimizeScan:(BOOL)useOptimizeScan
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ @interface FSPConfigurationPng()

@implementation FSPConfigurationPng

- (instancetype)init {
return [self initWithUseInterlacing:NO];
}

- (instancetype)initWithUseInterlacing:(BOOL)useInterlacing
{
if (self = [super init]) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ @interface FSPConfigurationWebp()

@implementation FSPConfigurationWebp

- (instancetype)init {
return [self initWithMethod:3 imageHint:FSPConfigurationWebpImageHintDefault];
}

- (instancetype)initWithMethod:(NSInteger)method imageHint:(FSPConfigurationWebpImageHint)imageHint
{
if (self = [super init]) {
Expand Down

0 comments on commit af00803

Please sign in to comment.