| OLD | NEW | 
|---|
| 1 /* | 1 /* | 
| 2  * Copyright (c) 2001 Fabrice Bellard | 2  * Copyright (c) 2001 Fabrice Bellard | 
| 3  * Copyright (c) 2002-2004 Michael Niedermayer <michaelni@gmx.at> | 3  * Copyright (c) 2002-2004 Michael Niedermayer <michaelni@gmx.at> | 
| 4  * | 4  * | 
| 5  * This file is part of FFmpeg. | 5  * This file is part of FFmpeg. | 
| 6  * | 6  * | 
| 7  * FFmpeg is free software; you can redistribute it and/or | 7  * FFmpeg is free software; you can redistribute it and/or | 
| 8  * modify it under the terms of the GNU Lesser General Public | 8  * modify it under the terms of the GNU Lesser General Public | 
| 9  * License as published by the Free Software Foundation; either | 9  * License as published by the Free Software Foundation; either | 
| 10  * version 2.1 of the License, or (at your option) any later version. | 10  * version 2.1 of the License, or (at your option) any later version. | 
| (...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 419 {"ssim", "ssim will be calculated during encoding", 0, FF_OPT_TYPE_CONST, CODEC_
     FLAG2_SSIM, INT_MIN, INT_MAX, V|E, "flags2"}, | 419 {"ssim", "ssim will be calculated during encoding", 0, FF_OPT_TYPE_CONST, CODEC_
     FLAG2_SSIM, INT_MIN, INT_MAX, V|E, "flags2"}, | 
| 420 {"intra_refresh", "use periodic insertion of intra blocks instead of keyframes",
      0, FF_OPT_TYPE_CONST, CODEC_FLAG2_INTRA_REFRESH, INT_MIN, INT_MAX, V|E, "flags2
     "}, | 420 {"intra_refresh", "use periodic insertion of intra blocks instead of keyframes",
      0, FF_OPT_TYPE_CONST, CODEC_FLAG2_INTRA_REFRESH, INT_MIN, INT_MAX, V|E, "flags2
     "}, | 
| 421 {"crf_max", "in crf mode, prevents vbv from lowering quality beyond this point",
      OFFSET(crf_max), FF_OPT_TYPE_FLOAT, DEFAULT, 0, 51, V|E}, | 421 {"crf_max", "in crf mode, prevents vbv from lowering quality beyond this point",
      OFFSET(crf_max), FF_OPT_TYPE_FLOAT, DEFAULT, 0, 51, V|E}, | 
| 422 {"log_level_offset", "set the log level offset", OFFSET(log_level_offset), FF_OP
     T_TYPE_INT, 0, INT_MIN, INT_MAX }, | 422 {"log_level_offset", "set the log level offset", OFFSET(log_level_offset), FF_OP
     T_TYPE_INT, 0, INT_MIN, INT_MAX }, | 
| 423 {"lpc_type", "specify LPC algorithm", OFFSET(lpc_type), FF_OPT_TYPE_INT, AV_LPC_
     TYPE_DEFAULT, AV_LPC_TYPE_DEFAULT, AV_LPC_TYPE_NB-1, A|E}, | 423 {"lpc_type", "specify LPC algorithm", OFFSET(lpc_type), FF_OPT_TYPE_INT, AV_LPC_
     TYPE_DEFAULT, AV_LPC_TYPE_DEFAULT, AV_LPC_TYPE_NB-1, A|E}, | 
| 424 {"none",     NULL, 0, FF_OPT_TYPE_CONST, AV_LPC_TYPE_NONE,     INT_MIN, INT_MAX,
      A|E, "lpc_type"}, | 424 {"none",     NULL, 0, FF_OPT_TYPE_CONST, AV_LPC_TYPE_NONE,     INT_MIN, INT_MAX,
      A|E, "lpc_type"}, | 
| 425 {"fixed",    NULL, 0, FF_OPT_TYPE_CONST, AV_LPC_TYPE_FIXED,    INT_MIN, INT_MAX,
      A|E, "lpc_type"}, | 425 {"fixed",    NULL, 0, FF_OPT_TYPE_CONST, AV_LPC_TYPE_FIXED,    INT_MIN, INT_MAX,
      A|E, "lpc_type"}, | 
| 426 {"levinson", NULL, 0, FF_OPT_TYPE_CONST, AV_LPC_TYPE_LEVINSON, INT_MIN, INT_MAX,
      A|E, "lpc_type"}, | 426 {"levinson", NULL, 0, FF_OPT_TYPE_CONST, AV_LPC_TYPE_LEVINSON, INT_MIN, INT_MAX,
      A|E, "lpc_type"}, | 
| 427 {"cholesky", NULL, 0, FF_OPT_TYPE_CONST, AV_LPC_TYPE_CHOLESKY, INT_MIN, INT_MAX,
      A|E, "lpc_type"}, | 427 {"cholesky", NULL, 0, FF_OPT_TYPE_CONST, AV_LPC_TYPE_CHOLESKY, INT_MIN, INT_MAX,
      A|E, "lpc_type"}, | 
| 428 {"lpc_passes", "number of passes to use for Cholesky factorization during LPC an
     alysis", OFFSET(lpc_passes), FF_OPT_TYPE_INT, -1, INT_MIN, INT_MAX, A|E}, | 428 {"lpc_passes", "number of passes to use for Cholesky factorization during LPC an
     alysis", OFFSET(lpc_passes), FF_OPT_TYPE_INT, -1, INT_MIN, INT_MAX, A|E}, | 
|  | 429 {"slices", "number of slices, used in parallelized decoding", OFFSET(slices), FF
     _OPT_TYPE_INT, 0, 0, INT_MAX, V|E}, | 
| 429 {"thread_type", "select multithreading type", OFFSET(thread_type), FF_OPT_TYPE_I
     NT, FF_THREAD_SLICE|FF_THREAD_FRAME, 0, INT_MAX, V|E|D, "thread_type"}, | 430 {"thread_type", "select multithreading type", OFFSET(thread_type), FF_OPT_TYPE_I
     NT, FF_THREAD_SLICE|FF_THREAD_FRAME, 0, INT_MAX, V|E|D, "thread_type"}, | 
| 430 {"slice", NULL, 0, FF_OPT_TYPE_CONST, FF_THREAD_SLICE, INT_MIN, INT_MAX, V|E|D, 
     "thread_type"}, | 431 {"slice", NULL, 0, FF_OPT_TYPE_CONST, FF_THREAD_SLICE, INT_MIN, INT_MAX, V|E|D, 
     "thread_type"}, | 
| 431 {"frame", NULL, 0, FF_OPT_TYPE_CONST, FF_THREAD_FRAME, INT_MIN, INT_MAX, V|E|D, 
     "thread_type"}, | 432 {"frame", NULL, 0, FF_OPT_TYPE_CONST, FF_THREAD_FRAME, INT_MIN, INT_MAX, V|E|D, 
     "thread_type"}, | 
| 432 {"altref", "enable use of alternate reference frames (VP8/2-pass only)", 0, FF_O
     PT_TYPE_CONST, CODEC_FLAG2_ALT_REF, INT_MIN, INT_MAX, V|E, "flags2"}, | 433 {"altref", "enable use of alternate reference frames (VP8/2-pass only)", 0, FF_O
     PT_TYPE_CONST, CODEC_FLAG2_ALT_REF, INT_MIN, INT_MAX, V|E, "flags2"}, | 
| 433 {"token_partitions", "Number of sub-streams in bitstream (1,2,4,8). Used for par
     allelized decoding.", OFFSET(token_partitions), FF_OPT_TYPE_INT, 1, 1, INT_MAX, 
     V|E}, | 434 {"token_partitions", "Number of sub-streams in bitstream (1,2,4,8). Used for par
     allelized decoding.", OFFSET(token_partitions), FF_OPT_TYPE_INT, 1, 1, INT_MAX, 
     V|E}, | 
| 434 {NULL}, | 435 {NULL}, | 
| 435 }; | 436 }; | 
| 436 | 437 | 
| 437 #undef A | 438 #undef A | 
| 438 #undef V | 439 #undef V | 
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 571     return 0; | 572     return 0; | 
| 572 | 573 | 
| 573 fail: | 574 fail: | 
| 574     av_freep(&dest->rc_override); | 575     av_freep(&dest->rc_override); | 
| 575     av_freep(&dest->intra_matrix); | 576     av_freep(&dest->intra_matrix); | 
| 576     av_freep(&dest->inter_matrix); | 577     av_freep(&dest->inter_matrix); | 
| 577     av_freep(&dest->extradata); | 578     av_freep(&dest->extradata); | 
| 578     av_freep(&dest->rc_eq); | 579     av_freep(&dest->rc_eq); | 
| 579     return AVERROR(ENOMEM); | 580     return AVERROR(ENOMEM); | 
| 580 } | 581 } | 
| OLD | NEW | 
|---|