-static void opt_qsquish(const char *arg)
-{
- video_qsquish = atof(arg);
- if (video_qsquish < 0.0 ||
- video_qsquish > 99.0) {
- fprintf(stderr, "qsquish must be >= 0.0 and <= 99.0\n");
- exit(1);
- }
-}
-
-static void opt_lmax(const char *arg)
-{
- video_lmax = atof(arg)*FF_QP2LAMBDA;
-}
-
-static void opt_lmin(const char *arg)
-{
- video_lmin = atof(arg)*FF_QP2LAMBDA;
-}
-
-static void opt_qmin(const char *arg)
-{
- video_qmin = atoi(arg);
- if (video_qmin < 1 ||
- video_qmin > 51) {
- fprintf(stderr, "qmin must be >= 1 and <= 51\n");
- exit(1);
- }
-}
-
-static void opt_qmax(const char *arg)
-{
- video_qmax = atoi(arg);
- if (video_qmax < 1 ||
- video_qmax > 51) {
- fprintf(stderr, "qmax must be >= 1 and <= 51\n");
- exit(1);
- }
-}
-
-static void opt_mb_lmin(const char *arg)
-{
- video_mb_lmin = atof(arg)*FF_QP2LAMBDA;
- if (video_mb_lmin < 1 ||
- video_mb_lmin > FF_LAMBDA_MAX) {
- fprintf(stderr, "mblmin must be >= 1 and <= %d\n", FF_LAMBDA_MAX / FF_QP2LAMBDA);
- exit(1);
- }
-}
-
-static void opt_mb_lmax(const char *arg)
-{
- video_mb_lmax = atof(arg)*FF_QP2LAMBDA;
- if (video_mb_lmax < 1 ||
- video_mb_lmax > FF_LAMBDA_MAX) {
- fprintf(stderr, "mblmax must be >= 1 and <= %d\n", FF_LAMBDA_MAX / FF_QP2LAMBDA);
- exit(1);
- }
-}
-