hardware/intel/libva
Revision | 037945c5ccc0259c8381531af181d7067b74525f (tree) |
---|---|
Zeit | 2013-05-28 17:19:08 |
Autor | Austin Yuan <shengquan.yuan@inte...> |
Commiter | Xiang, Haihao |
VAEncMiscParameterRateControl: add back some fields and refine the comments
Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
@@ -737,16 +737,35 @@ typedef struct _VAEncMiscParameterBuffer | ||
737 | 737 | unsigned int data[0]; |
738 | 738 | } VAEncMiscParameterBuffer; |
739 | 739 | |
740 | + | |
741 | +/** \brief Rate control parameters */ | |
740 | 742 | typedef struct _VAEncMiscParameterRateControl |
741 | 743 | { |
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; | |
750 | 769 | } VAEncMiscParameterRateControl; |
751 | 770 | |
752 | 771 | typedef struct _VAEncMiscParameterFrameRate |