9/26/2019

proto get enum name from int

message CameraFrameMetaData {

enum ImageType {
    RAW_RGB_888 = 0;
    RAW_BGR_888 = 1;
    JPEG = 2;
  }
}

Then use function: CameraFrameMetaData_ImageType_Name(int)

No comments: