mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-16 02:20:07 +00:00
27 lines
989 B
Objective-C
27 lines
989 B
Objective-C
#ifndef DctImageTransform_h
|
|
#define DctImageTransform_h
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
#import <ImageDCT/YuvConversion.h>
|
|
|
|
@interface ImageDCTTable : NSObject
|
|
|
|
- (instancetype _Nonnull)initWithQuality:(NSInteger)quality isChroma:(bool)isChroma;
|
|
- (instancetype _Nullable)initWithData:(NSData * _Nonnull)data;
|
|
|
|
- (NSData * _Nonnull)serializedData;
|
|
|
|
@end
|
|
|
|
@interface ImageDCT : NSObject
|
|
|
|
- (instancetype _Nonnull)initWithTable:(ImageDCTTable * _Nonnull)table;
|
|
|
|
- (void)forwardWithPixels:(uint8_t const * _Nonnull)pixels coefficients:(int16_t * _Nonnull)coefficients width:(NSInteger)width height:(NSInteger)height bytesPerRow:(NSInteger)bytesPerRow __attribute__((objc_direct));
|
|
- (void)inverseWithCoefficients:(int16_t const * _Nonnull)coefficients pixels:(uint8_t * _Nonnull)pixels width:(NSInteger)width height:(NSInteger)height coefficientsPerRow:(NSInteger)coefficientsPerRow bytesPerRow:(NSInteger)bytesPerRow __attribute__((objc_direct));
|
|
|
|
@end
|
|
|
|
#endif /* DctImageTransform_h */
|