• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

hardware/intel/libva


Commit MetaInfo

Revision037945c5ccc0259c8381531af181d7067b74525f (tree)
Zeit2013-05-28 17:19:08
AutorAustin Yuan <shengquan.yuan@inte...>
CommiterXiang, Haihao

Log Message

VAEncMiscParameterRateControl: add back some fields and refine the comments

Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>

Ändern Zusammenfassung

Diff

--- a/va/va.h
+++ b/va/va.h
@@ -737,16 +737,35 @@ typedef struct _VAEncMiscParameterBuffer
737737 unsigned int data[0];
738738 } VAEncMiscParameterBuffer;
739739
740+
741+/** \brief Rate control parameters */
740742 typedef struct _VAEncMiscParameterRateControl
741743 {
742- unsigned int bits_per_second; /* this is the maximum bit-rate to be constrained by the rate control implementation */
743- unsigned int target_percentage; /* this is the bit-rate the rate control is targeting, as a percentage of the maximum bit-rate */
744- /* for example if target_percentage is 95 then the rate control will target a bit-rate that is */
745- /* 95% of the maximum bit-rate */
746- unsigned int window_size; /* windows size in milliseconds. For example if this is set to 500, then the rate control will guarantee the */
747- /* target bit-rate over a 500 ms window */
748- unsigned int initial_qp; /* initial QP at I frames */
749- unsigned int min_qp;
744+ /* this is the maximum bit-rate to be constrained by the rate control implementation */
745+ unsigned int bits_per_second;
746+ /* this is the bit-rate the rate control is targeting, as a percentage of the maximum
747+ * bit-rate for example if target_percentage is 95 then the rate control will target
748+ * a bit-rate that is 95% of the maximum bit-rate
749+ */
750+ unsigned int target_percentage;
751+ /* windows size in milliseconds. For example if this is set to 500,
752+ * then the rate control will guarantee the target bit-rate over a 500 ms window
753+ */
754+ unsigned int window_size;
755+ /* initial QP at I frames */
756+ unsigned int initial_qp;
757+ unsigned int min_qp;
758+ unsigned int basic_unit_size;
759+ union
760+ {
761+ struct
762+ {
763+ unsigned int reset : 1;
764+ unsigned int disable_frame_skip : 1; /* Disable frame skip in rate control mode */
765+ unsigned int disable_bit_stuffing : 1; /* Disable bit stuffing in rate control mode */
766+ } bits;
767+ unsigned int value;
768+ } rc_flags;
750769 } VAEncMiscParameterRateControl;
751770
752771 typedef struct _VAEncMiscParameterFrameRate