Commit 9a018a91 authored by JÜRGEN Gerstacker's avatar JÜRGEN Gerstacker
Browse files

removed -z option

parent cf157a70
Loading
Loading
Loading
Loading
Loading
+0 −37
Original line number Diff line number Diff line
@@ -29,7 +29,6 @@
   the United Nations Convention on Contracts on the International Sales of Goods.

*******************************************************************************************************/
#define DEBUGGING_Z

#include <string.h>
#include "options.h"
@@ -167,10 +166,6 @@ typedef struct
    char *sceneOrientationTrajFileName;
    char *deviceOrientationTrajFileName;

#ifdef DEBUGGING_Z
    int32_t max_frames;
#endif

    char *requestsFileName;
} EncArguments;

@@ -925,13 +920,6 @@ int main(
        }

        frame++;
#ifdef DEBUGGING_Z
        if ( frame == arg.max_frames )
        {
            fprintf( stderr, "reached frame #%d, exiting\n", frame );
            break;
        }
#endif
        if ( !arg.quietModeEnabled )
        {
            fprintf( stdout, "%-8d\b\b\b\b\b\b\b\b", frame );
@@ -1082,9 +1070,6 @@ static bool parseCmdlIVAS_enc(
#endif
#endif
    arg->pca = false;
#ifdef DEBUGGING_Z
    arg->max_frames = 0;
#endif

    /*-----------------------------------------------------------------*
     * Initialization
@@ -1154,28 +1139,6 @@ static bool parseCmdlIVAS_enc(
            arg->quietModeEnabled = true;
        }

#ifdef DEBUGGING_Z
        /*-----------------------------------------------------------------*
         * Maximum number of frames to process
         *-----------------------------------------------------------------*/

        else if ( strcmp( argv[i], "-z" ) == 0 )
        {
            i++;
            if ( sscanf( argv[i], "%d", &tmp ) <= 0 )
            {
                fprintf( stderr, "Error: -z number-of-frames\n\n" );
                usage_enc();
            }
            else
            {
                arg->max_frames = tmp;
                i++;
            }
        }
#endif


        /*-----------------------------------------------------------------*
         * DTX/CNG
         *-----------------------------------------------------------------*/