001// Automatically generated by the Thrifty compiler; do not edit! 002// Generated on: 2021-05-17T06:20:27.391Z 003// Source: J:\facedb\facedb-service\FaceDb.thrift at 7:1 004package net.gdface.facedb.thrift.client; 005 006import javax.annotation.Generated; 007 008@Generated( 009 value = "com.microsoft.thrifty.gen.ThriftyCodeGenerator", 010 comments = "https://github.com/microsoft/thrifty" 011) 012public enum MatType { 013 NV21(0), 014 015 RGB(1), 016 017 BGR(2), 018 019 RGBA(3), 020 021 GRAY(4); 022 023 public final int value; 024 025 MatType(int value) { 026 this.value = value; 027 } 028 029 public static MatType findByValue(int value) { 030 switch (value) { 031 case 0: return NV21; 032 case 1: return RGB; 033 case 2: return BGR; 034 case 3: return RGBA; 035 case 4: return GRAY; 036 default: return null; 037 } 038 } 039}