Lines 163-169
void X264EncoderContext::SetFrameRate(un
Link Here
|
163 |
void X264EncoderContext::SetTSTO (unsigned tsto) |
163 |
void X264EncoderContext::SetTSTO (unsigned tsto) |
164 |
{ |
164 |
{ |
165 |
_context.rc.i_qp_min = H264_MIN_QUANT; |
165 |
_context.rc.i_qp_min = H264_MIN_QUANT; |
166 |
_context.rc.i_qp_max = round ( (double)(51 - H264_MIN_QUANT) / 31 * tsto + H264_MIN_QUANT); |
166 |
_context.rc.i_qp_max = tsto; |
167 |
_context.rc.i_qp_step = 4; |
167 |
_context.rc.i_qp_step = 4; |
168 |
} |
168 |
} |
169 |
|
169 |
|
Lines 194-199
void X264EncoderContext::SetProfileLevel
Link Here
|
194 |
// baseline profile begin |
194 |
// baseline profile begin |
195 |
_context.b_cabac = 0; // Only >= MAIN LEVEL |
195 |
_context.b_cabac = 0; // Only >= MAIN LEVEL |
196 |
_context.i_bframe = 0; // Only >= MAIN LEVEL |
196 |
_context.i_bframe = 0; // Only >= MAIN LEVEL |
|
|
197 |
_context.i_nal_hrd = X264_NAL_HRD_CBR; |
198 |
_context.i_sync_lookahead = 0; |
199 |
_context.b_vfr_input = 0; |
200 |
_context.rc.i_lookahead = 0; |
197 |
|
201 |
|
198 |
// Level: |
202 |
// Level: |
199 |
_context.i_level_idc = level; |
203 |
_context.i_level_idc = level; |