X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.0%2Fcinelerra%2Findexthread.h;fp=cinelerra-5.0%2Fcinelerra%2Findexthread.h;h=0000000000000000000000000000000000000000;hb=30bdb85eb33a8ee7ba675038a86c6be59c43d7bd;hp=9c522102cabe2cd789daa6f8b5d6d72fb5421619;hpb=52fcc46226f9df46f9ce9d0566dc568455a7db0b;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.0/cinelerra/indexthread.h b/cinelerra-5.0/cinelerra/indexthread.h deleted file mode 100644 index 9c522102..00000000 --- a/cinelerra-5.0/cinelerra/indexthread.h +++ /dev/null @@ -1,67 +0,0 @@ - -/* - * CINELERRA - * Copyright (C) 2008 Adam Williams - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - */ - -#ifndef INDEXTHREAD_H -#define INDEXTHREAD_H - -#include "condition.inc" -#include "indexfile.inc" -#include "mwindow.inc" -#include "samples.inc" -#include "thread.h" - -#define TOTAL_INDEX_BUFFERS 2 - -// Recieves buffers from Indexfile and calculates the index. - -class IndexThread : public Thread -{ -public: - IndexThread(MWindow *mwindow, - IndexFile *index_file, - char *index_filename, - int64_t buffer_size, - int64_t length_source); - ~IndexThread(); - - friend class IndexFile; - - int start_build(); - int stop_build(); - void run(); - - IndexFile *index_file; - MWindow *mwindow; - char *index_filename; - int64_t buffer_size, length_source; - int current_buffer; - -private: - int interrupt_flag; - Samples **buffer_in[TOTAL_INDEX_BUFFERS]; - Condition *input_lock[TOTAL_INDEX_BUFFERS], *output_lock[TOTAL_INDEX_BUFFERS]; - int last_buffer[TOTAL_INDEX_BUFFERS]; - int64_t input_len[TOTAL_INDEX_BUFFERS]; -}; - - - -#endif