OSDN Git Service

Add the comment for framerate in VAEncMiscParameterFrameRate
[android-x86/hardware-intel-common-libva.git] / va / va.h
diff --git a/va/va.h b/va/va.h
index e919f6f..665aafb 100644 (file)
--- a/va/va.h
+++ b/va/va.h
@@ -1261,6 +1261,14 @@ typedef struct _VAEncMiscParameterRateControl
 
 typedef struct _VAEncMiscParameterFrameRate
 {
+    /*
+     * fps = numerator / denominator
+     * The high 2 bytes (bits 16 to 31) of framerate specifies the numerator, and
+     * the low 2 bytes (bits 0 to 15) of framerate specifies the denominator. For
+     * example, ((100 < 16 ) | 750) is 7.5 fps
+     *
+     * If the high 2 btyes is 0, the frame rate is specified by the low 2 bytes.
+     */
     unsigned int framerate;
     union
     {