TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
G3D::ImageFormat::BayerAlgorithm Class Reference

#include <ImageFormat.h>

Public Types

enum  Value { NEAREST, BILINEAR, MHC, BEST = MHC }
 

Public Member Functions

 G3D_DECLARE_ENUM_CLASS_METHODS (BayerAlgorithm)
 

Static Private Member Functions

static const char * toString (int i, Value &v)
 

Private Attributes

Value value
 

Detailed Description

For use with ImageFormat::convert.

Member Enumeration Documentation

Enumerator
NEAREST 
BILINEAR 
MHC 
BEST 
479  {
480  NEAREST,
481  BILINEAR,
482  MHC,
483  BEST = MHC
484  };
Definition: ImageFormat.h:483
Definition: ImageFormat.h:480
Definition: ImageFormat.h:482
Definition: ImageFormat.h:481

Member Function Documentation

G3D::ImageFormat::BayerAlgorithm::G3D_DECLARE_ENUM_CLASS_METHODS ( BayerAlgorithm  )
static const char* G3D::ImageFormat::BayerAlgorithm::toString ( int  i,
Value v 
)
inlinestaticprivate
486  {
487  static const char* str[] = {"NEAREST", "BILINEAR", "MHC", "BEST", NULL};
488  static const Value val[] = {NEAREST, BILINEAR, MHC, BEST};
489  const char* s = str[i];
490  if (s) {
491  v = val[i];
492  }
493  return s;
494  }
Definition: ImageFormat.h:483
arena_t NULL
Definition: jemalloc_internal.h:624
Definition: ImageFormat.h:480
Definition: ImageFormat.h:482
Definition: ImageFormat.h:481

Member Data Documentation

Value G3D::ImageFormat::BayerAlgorithm::value
private

The documentation for this class was generated from the following file: