Gnash  0.8.10
Enumerations | Functions
VaapiImageFormat.h File Reference
#include "dsodefs.h"
#include "vaapi_common.h"

Go to the source code of this file.

Enumerations

enum  VaapiColorspace { VAAPI_COLORSPACE_UNKNOWN, VAAPI_COLORSPACE_YUV, VAAPI_COLORSPACE_RGB }
 Color spaces. More...
enum  VaapiImageFormat {
  VAAPI_IMAGE_NONE = 0, VAAPI_IMAGE_NV12 = VA_FOURCC('N','V','1','2'), VAAPI_IMAGE_YV12 = VA_FOURCC('Y','V','1','2'), VAAPI_IMAGE_I420 = VA_FOURCC('I','4','2','0'),
  VAAPI_IMAGE_ARGB = VA_FOURCC('A','R','G','B'), VAAPI_IMAGE_RGBA = VA_FOURCC('R','G','B','A'), VAAPI_IMAGE_ABGR = VA_FOURCC('A','B','G','R'), VAAPI_IMAGE_BGRA = VA_FOURCC('B','G','R','A'),
  VAAPI_IMAGE_RGB32 = VA_FOURCC('R','G','B', 32), VAAPI_IMAGE_RGB24 = VA_FOURCC('R','G','B', 24)
}
 Image types. More...

Functions

VaapiColorspace DSOEXPORT vaapi_image_format_get_colorspace (VaapiImageFormat format)
 Get colorspace for the specified image format.
VaapiImageFormat vaapi_get_image_format (VAImageFormat const &format)
 Return image format from a VA image format.

Enumeration Type Documentation

Color spaces.

Enumerator:
VAAPI_COLORSPACE_UNKNOWN 
VAAPI_COLORSPACE_YUV 

Unknown colorspace.

VAAPI_COLORSPACE_RGB 

YUV colorspace.

RGB colorspace

Image types.

Enumerator:
VAAPI_IMAGE_NONE 

Best format for the underlying hardware.

VAAPI_IMAGE_NV12 

Planar YUV 4:2:0, 12-bit, 1 plane for Y and 1 plane for UV.

VAAPI_IMAGE_YV12 

Planar YUV 4:2:0, 12-bit, 3 planes for Y V U.

VAAPI_IMAGE_I420 

Planar YUV 4:2:0, 12-bit, 3 planes for Y U V.

VAAPI_IMAGE_ARGB 

Packed RGB 8:8:8, 32-bit, A R G B.

VAAPI_IMAGE_RGBA 

Packed RGB 8:8:8, 32-bit, R G B A.

VAAPI_IMAGE_ABGR 

Packed RGB 8:8:8, 32-bit, A R G B.

VAAPI_IMAGE_BGRA 

Packed RGB 8:8:8, 32-bit, R G B A.

VAAPI_IMAGE_RGB32 

Packed RGB 8:8:8, 32-bit, A R G B, native endian byte-order.

VAAPI_IMAGE_RGB24 

Packed RGB 8:8:8, 24-bit, R G B.


Function Documentation

VaapiImageFormat vaapi_get_image_format ( VAImageFormat const &  format)

Return image format from a VA image format.

Referenced by gnash::VaapiGlobalContext::getImageFormat().

VaapiColorspace DSOEXPORT vaapi_image_format_get_colorspace ( VaapiImageFormat  format)