OSDN Git Service

va: Add missing enums to string conversions
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Fri, 3 Nov 2017 08:39:29 +0000 (09:39 +0100)
committerXiang, Haihao <haihao.xiang@intel.com>
Tue, 21 Nov 2017 18:19:19 +0000 (10:19 -0800)
Those enum were recently added and their conversion to strings were
missing.

Fixes: #144

va/va_str.c

index af8180b..8c04794 100644 (file)
@@ -52,6 +52,7 @@ const char *vaProfileStr(VAProfile profile)
     TOSTR(VAProfileVP9Profile1);
     TOSTR(VAProfileVP9Profile2);
     TOSTR(VAProfileVP9Profile3);
+    default: break;
     }
     return "<unknown profile>";
 }
@@ -95,6 +96,9 @@ const char *vaConfigAttribTypeStr(VAConfigAttribType configAttribType)
     TOSTR(VAConfigAttribEncSkipFrame);
     TOSTR(VAConfigAttribEncROI);
     TOSTR(VAConfigAttribEncRateControlExt);
+    TOSTR(VAConfigAttribFEIFunctionType);
+    TOSTR(VAConfigAttribFEIMVPredictors);
+    case VAConfigAttribTypeMax: break;
     }
     return "<unknown config attribute type>";
 }
@@ -127,6 +131,13 @@ const char *vaBufferTypeStr(VABufferType bufferType)
     TOSTR(VAEncMacroblockMapBufferType);
     TOSTR(VAProcPipelineParameterBufferType);
     TOSTR(VAProcFilterParameterBufferType);
+    TOSTR(VAEncQPBufferType);
+    TOSTR(VAEncFEIMVBufferType);
+    TOSTR(VAEncFEIMBCodeBufferType);
+    TOSTR(VAEncFEIDistortionBufferType);
+    TOSTR(VAEncFEIMBControlBufferType);
+    TOSTR(VAEncFEIMVPredictorBufferType);
+    case VABufferTypeMax: break;
     }
     return "<unknown buffer type>";
 }