include "Tensor.fbs";
namespace MNN;
table TensorConvertInfo {
    source:MNN_DATA_FORMAT;
    dest:MNN_DATA_FORMAT;
}

enum SampleMode : byte {
    BILINEAR=0,
    NEAREST
}
enum BorderMode : byte {
    ZEROS=0,
    CLAMP,
    REFLECTION
}

table GridSample {
    mode:SampleMode;
    paddingMode:BorderMode;
    alignCorners:bool=false;
}

enum ImageFormatType : int {
    RGBA     = 0,
    RGB      = 1,
    BGR      = 2,
    GRAY     = 3,
    BGRA     = 4,
    YCrCb    = 5,
    YUV      = 6,
    HSV      = 7,
    XYZ      = 8,
    BGR555   = 9,
    BGR565   = 10,
    YUV_NV21 = 11,
    YUV_NV12 = 12,
    YUV_I420 = 13,
    HSV_FULL = 14
}

table CvtColorParam {
    sourceFormat:ImageFormatType = RGB;
    destFormat:ImageFormatType = YUV_NV12;
    uvDownMode:int = 0;
}