Lines Matching defs:options
121 CompressionOptions options;
187 CompressionOptions *opt = &s->options;
303 s->options.compression_level = 5;
305 s->options.compression_level = avctx->compression_level;
307 level = s->options.compression_level;
310 s->options.compression_level);
314 s->options.block_time_ms = ((int[]){ 27, 27, 27,105,105,105,105,105,105,105,105,105,105})[level];
316 if (s->options.lpc_type == FF_LPC_TYPE_DEFAULT)
317 s->options.lpc_type = ((int[]){ FF_LPC_TYPE_FIXED, FF_LPC_TYPE_FIXED, FF_LPC_TYPE_FIXED,
323 if (s->options.min_prediction_order < 0)
324 s->options.min_prediction_order = ((int[]){ 2, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1})[level];
325 if (s->options.max_prediction_order < 0)
326 s->options.max_prediction_order = ((int[]){ 3, 4, 4, 6, 8, 8, 8, 8, 12, 12, 12, 32, 32})[level];
328 if (s->options.prediction_order_method < 0)
329 s->options.prediction_order_method = ((int[]){ ORDER_METHOD_EST, ORDER_METHOD_EST, ORDER_METHOD_EST,
335 if (s->options.min_partition_order > s->options.max_partition_order) {
337 s->options.min_partition_order, s->options.max_partition_order);
340 if (s->options.min_partition_order < 0)
341 s->options.min_partition_order = ((int[]){ 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0})[level];
342 if (s->options.max_partition_order < 0)
343 s->options.max_partition_order = ((int[]){ 2, 2, 3, 3, 3, 8, 8, 8, 8, 8, 8, 8, 8})[level];
345 if (s->options.lpc_type == FF_LPC_TYPE_NONE) {
346 s->options.min_prediction_order = 0;
347 s->options.max_prediction_order = 0;
348 } else if (s->options.lpc_type == FF_LPC_TYPE_FIXED) {
349 if (s->options.min_prediction_order > MAX_FIXED_ORDER) {
352 s->options.min_prediction_order, MAX_FIXED_ORDER);
353 s->options.min_prediction_order = MAX_FIXED_ORDER;
355 if (s->options.max_prediction_order > MAX_FIXED_ORDER) {
358 s->options.max_prediction_order, MAX_FIXED_ORDER);
359 s->options.max_prediction_order = MAX_FIXED_ORDER;
363 if (s->options.max_prediction_order < s->options.min_prediction_order) {
365 s->options.min_prediction_order, s->options.max_prediction_order);
377 s->avctx->frame_size = select_blocksize(s->samplerate, s->options.block_time_ms);
425 s->options.max_prediction_order, FF_LPC_TYPE_LEVINSON);
542 count += 4 + 5 + pred_order * s->options.lpc_coeff_precision;
724 int pmin = get_max_p_order(s->options.min_partition_order,
726 int pmax = get_max_p_order(s->options.max_partition_order,
731 bits += 4 + 5 + pred_order * s->options.lpc_coeff_precision;
733 s->frame.blocksize, pred_order, s->options.exact_rice_parameters);
822 min_order = s->options.min_prediction_order;
823 max_order = s->options.max_prediction_order;
824 omethod = s->options.prediction_order_method;
828 if (s->options.lpc_type == FF_LPC_TYPE_NONE ||
829 s->options.lpc_type == FF_LPC_TYPE_FIXED || n <= max_order) {
853 s->options.lpc_coeff_precision, coefs, shift, s->options.lpc_type,
854 s->options.lpc_passes, omethod,
872 if (s->bps_code * 4 + s->options.lpc_coeff_precision + av_log2(order) <= 32) {
892 if (s->bps_code * 4 + s->options.lpc_coeff_precision + av_log2(i) <= 32) {
914 if (s->bps_code * 4 + s->options.lpc_coeff_precision + av_log2(i) <= 32) {
927 if (s->options.multi_dim_quant) {
933 qmax = (1 << (s->options.lpc_coeff_precision - 1)) - 1;
955 if (s->bps_code * 4 + s->options.lpc_coeff_precision + av_log2(opt_order - 1) <= 32) {
976 if (s->bps_code * 4 + s->options.lpc_coeff_precision + av_log2(opt_order) <= 32) {
1136 if (s->options.ch_mode < 0) {
1140 frame->ch_mode = s->options.ch_mode;
1240 int cbits = s->options.lpc_coeff_precision;
1423 static const AVOption options[] = {
1424 { "lpc_coeff_precision", "LPC coefficient precision", offsetof(FlacEncodeContext, options.lpc_coeff_precision), AV_OPT_TYPE_INT, {.i64 = 15 }, 0, MAX_LPC_PRECISION, FLAGS },
1425 { "lpc_type", "LPC algorithm", offsetof(FlacEncodeContext, options.lpc_type), AV_OPT_TYPE_INT, {.i64 = FF_LPC_TYPE_DEFAULT }, FF_LPC_TYPE_DEFAULT, FF_LPC_TYPE_NB-1, FLAGS, "lpc_type" },
1430 { "lpc_passes", "Number of passes to use for Cholesky factorization during LPC analysis", offsetof(FlacEncodeContext, options.lpc_passes), AV_OPT_TYPE_INT, {.i64 = 2 }, 1, INT_MAX, FLAGS },
1431 { "min_partition_order", NULL, offsetof(FlacEncodeContext, options.min_partition_order), AV_OPT_TYPE_INT, {.i64 = -1 }, -1, MAX_PARTITION_ORDER, FLAGS },
1432 { "max_partition_order", NULL, offsetof(FlacEncodeContext, options.max_partition_order), AV_OPT_TYPE_INT, {.i64 = -1 }, -1, MAX_PARTITION_ORDER, FLAGS },
1433 { "prediction_order_method", "Search method for selecting prediction order", offsetof(FlacEncodeContext, options.prediction_order_method), AV_OPT_TYPE_INT, {.i64 = -1 }, -1, ORDER_METHOD_LOG, FLAGS, "predm" },
1440 { "ch_mode", "Stereo decorrelation mode", offsetof(FlacEncodeContext, options.ch_mode), AV_OPT_TYPE_INT, { .i64 = -1 }, -1, FLAC_CHMODE_MID_SIDE, FLAGS, "ch_mode" },
1446 { "exact_rice_parameters", "Calculate rice parameters exactly", offsetof(FlacEncodeContext, options.exact_rice_parameters), AV_OPT_TYPE_BOOL, { .i64 = 0 }, 0, 1, FLAGS },
1447 { "multi_dim_quant", "Multi-dimensional quantization", offsetof(FlacEncodeContext, options.multi_dim_quant), AV_OPT_TYPE_BOOL, { .i64 = 0 }, 0, 1, FLAGS },
1448 { "min_prediction_order", NULL, offsetof(FlacEncodeContext, options.min_prediction_order), AV_OPT_TYPE_INT, { .i64 = -1 }, -1, MAX_LPC_ORDER, FLAGS },
1449 { "max_prediction_order", NULL, offsetof(FlacEncodeContext, options.max_prediction_order), AV_OPT_TYPE_INT, { .i64 = -1 }, -1, MAX_LPC_ORDER, FLAGS },
1457 .option = options,