Commit 28992c71 authored by Waldo Bastian's avatar Waldo Bastian

* Add additional error code

* VC1: reference_distance can have values of 0 - 16 inclusive and needs 5 bits
parent e6a8c623
...@@ -387,6 +387,10 @@ const char *vaErrorStr(VAStatus error_status) ...@@ -387,6 +387,10 @@ const char *vaErrorStr(VAStatus error_status)
return "the requested RT Format is not supported"; return "the requested RT Format is not supported";
case VA_STATUS_ERROR_UNSUPPORTED_BUFFERTYPE: case VA_STATUS_ERROR_UNSUPPORTED_BUFFERTYPE:
return "the requested VABufferType is not supported"; return "the requested VABufferType is not supported";
case VA_STATUS_ERROR_SURFACE_BUSY:
return "surface is in use";
case VA_STATUS_ERROR_FLAG_NOT_SUPPORTED:
return "flag not supported";
case VA_STATUS_ERROR_UNKNOWN: case VA_STATUS_ERROR_UNKNOWN:
return "unknown libva error"; return "unknown libva error";
} }
......
...@@ -111,6 +111,7 @@ typedef int VAStatus; /* Return status type from functions */ ...@@ -111,6 +111,7 @@ typedef int VAStatus; /* Return status type from functions */
#define VA_STATUS_ERROR_UNSUPPORTED_RT_FORMAT 0x0000000e #define VA_STATUS_ERROR_UNSUPPORTED_RT_FORMAT 0x0000000e
#define VA_STATUS_ERROR_UNSUPPORTED_BUFFERTYPE 0x0000000f #define VA_STATUS_ERROR_UNSUPPORTED_BUFFERTYPE 0x0000000f
#define VA_STATUS_ERROR_SURFACE_BUSY 0x00000010 #define VA_STATUS_ERROR_SURFACE_BUSY 0x00000010
#define VA_STATUS_ERROR_FLAG_NOT_SUPPORTED 0x00000011
#define VA_STATUS_ERROR_UNKNOWN 0xFFFFFFFF #define VA_STATUS_ERROR_UNKNOWN 0xFFFFFFFF
/* /*
...@@ -755,7 +756,7 @@ typedef struct _VAPictureParameterBufferVC1 ...@@ -755,7 +756,7 @@ typedef struct _VAPictureParameterBufferVC1
union { union {
struct { struct {
unsigned char reference_distance_flag : 1;/* PICTURE_LAYER::REFDIST_FLAG */ unsigned char reference_distance_flag : 1;/* PICTURE_LAYER::REFDIST_FLAG */
unsigned char reference_distance : 1;/* PICTURE_LAYER::REFDIST */ unsigned char reference_distance : 5;/* PICTURE_LAYER::REFDIST */
unsigned char num_reference_pictures: 1;/* PICTURE_LAYER::NUMREF */ unsigned char num_reference_pictures: 1;/* PICTURE_LAYER::NUMREF */
unsigned char reference_field_pic_indicator : 1;/* PICTURE_LAYER::REFFIELD */ unsigned char reference_field_pic_indicator : 1;/* PICTURE_LAYER::REFFIELD */
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment