AVDI420Frame Class Reference
Inherits from | NSObject |
---|---|
Declared in | AVDI420Frame.h AVDI420Frame.mm |
+ CreateFrame:uvAddress:width:height:widthDst:heightDst:
创建一个I420Frame
+ (AVDI420Frame *)CreateFrame:(uint8_t *)yAddress uvAddress:(uint8_t *)uvAddress width:(int)width height:(int)height widthDst:(int)widthDst heightDst:(int)heightDst
Parameters
yAddress |
yAddress |
---|---|
uvAddress |
uvAddress |
width |
采集到的宽 |
height |
采集到的高 |
widthDst |
有效宽 |
heightDst |
有效高 |
Return Value
AVDI420Frame;
Discussion
创建一个I420Frame
Declared In
AVDI420Frame.h
– getChromeSize
获取拉伸之后的size
- (int)getChromeSize
Return Value
size
Discussion
获取拉伸之后的size
Declared In
AVDI420Frame.h
– Stretch:heightDst:interpolate:crop:
拉伸i420Frame
- (AVDI420Frame *)Stretch:(int)widthDst heightDst:(int)heightDst interpolate:(BOOL)interpolate crop:(BOOL)crop
Parameters
widthDst |
目标宽 |
---|---|
heightDst |
目标高 |
interpolate |
interpolate |
crop |
crop |
Return Value
i420
Discussion
拉伸i420Frame
Declared In
AVDI420Frame.h