libnx  v4.2.0
Data Structures | Enumerations
types.h File Reference

Definitions for Android-related types and enumerations. More...

#include "../types.h"

Go to the source code of this file.

Data Structures

struct  NativeHandle
 

Enumerations

enum  {
  PIXEL_FORMAT_RGBA_8888 = 1U,
  PIXEL_FORMAT_RGBX_8888 = 2U,
  PIXEL_FORMAT_RGB_888 = 3U,
  PIXEL_FORMAT_RGB_565 = 4U,
  PIXEL_FORMAT_BGRA_8888 = 5U,
  PIXEL_FORMAT_RGBA_5551 = 6U,
  PIXEL_FORMAT_RGBA_4444 = 7U,
  PIXEL_FORMAT_YCRCB_420_SP = 17U,
  PIXEL_FORMAT_RAW16 = 32U,
  PIXEL_FORMAT_BLOB = 33U,
  PIXEL_FORMAT_IMPLEMENTATION_DEFINED = 34U,
  PIXEL_FORMAT_YCBCR_420_888 = 35U,
  PIXEL_FORMAT_Y8 = 0x20203859U,
  PIXEL_FORMAT_Y16 = 0x20363159U,
  PIXEL_FORMAT_YV12 = 0x32315659U
}
 
enum  {
  GRALLOC_USAGE_SW_READ_NEVER = 0x00000000U,
  GRALLOC_USAGE_SW_READ_RARELY = 0x00000002U,
  GRALLOC_USAGE_SW_READ_OFTEN = 0x00000003U,
  GRALLOC_USAGE_SW_READ_MASK = 0x0000000FU,
  GRALLOC_USAGE_SW_WRITE_NEVER = 0x00000000U,
  GRALLOC_USAGE_SW_WRITE_RARELY = 0x00000020U,
  GRALLOC_USAGE_SW_WRITE_OFTEN = 0x00000030U,
  GRALLOC_USAGE_SW_WRITE_MASK = 0x000000F0U,
  GRALLOC_USAGE_HW_TEXTURE = 0x00000100U,
  GRALLOC_USAGE_HW_RENDER = 0x00000200U,
  GRALLOC_USAGE_HW_2D = 0x00000400U,
  GRALLOC_USAGE_HW_COMPOSER = 0x00000800U,
  GRALLOC_USAGE_HW_FB = 0x00001000U,
  GRALLOC_USAGE_EXTERNAL_DISP = 0x00002000U,
  GRALLOC_USAGE_PROTECTED = 0x00004000U,
  GRALLOC_USAGE_CURSOR = 0x00008000U,
  GRALLOC_USAGE_HW_VIDEO_ENCODER = 0x00010000U,
  GRALLOC_USAGE_HW_CAMERA_WRITE = 0x00020000U,
  GRALLOC_USAGE_HW_CAMERA_READ = 0x00040000U,
  GRALLOC_USAGE_HW_CAMERA_ZSL = 0x00060000U,
  GRALLOC_USAGE_HW_CAMERA_MASK = 0x00060000U,
  GRALLOC_USAGE_HW_MASK = 0x00071F00U,
  GRALLOC_USAGE_RENDERSCRIPT = 0x00100000U
}
 
enum  {
  NATIVE_WINDOW_WIDTH = 0,
  NATIVE_WINDOW_HEIGHT = 1,
  NATIVE_WINDOW_FORMAT = 2
}
 
enum  { NATIVE_WINDOW_API_CPU = 2 }
 
enum  {
  HAL_TRANSFORM_FLIP_H = 0x01,
  HAL_TRANSFORM_FLIP_V = 0x02,
  HAL_TRANSFORM_ROT_90 = 0x04,
  HAL_TRANSFORM_ROT_180 = 0x03,
  HAL_TRANSFORM_ROT_270 = 0x07
}
 Transformation definitions. More...
 
enum  {
  NATIVE_WINDOW_TRANSFORM_FLIP_H = HAL_TRANSFORM_FLIP_H,
  NATIVE_WINDOW_TRANSFORM_FLIP_V = HAL_TRANSFORM_FLIP_V,
  NATIVE_WINDOW_TRANSFORM_ROT_90 = HAL_TRANSFORM_ROT_90,
  NATIVE_WINDOW_TRANSFORM_ROT_180 = HAL_TRANSFORM_ROT_180,
  NATIVE_WINDOW_TRANSFORM_ROT_270 = HAL_TRANSFORM_ROT_270
}
 

Detailed Description

Definitions for Android-related types and enumerations.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum

Transformation definitions.

IMPORTANT NOTE: HAL_TRANSFORM_ROT_90 is applied CLOCKWISE and AFTER HAL_TRANSFORM_FLIP_{H|V}.