X-Git-Url: http://git.cinelerra-gg.org/git/?p=goodguy%2Fhistory.git;a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Ffileac3.h;h=8ae62c76ebcbb23c242186653ad5adeaacf6318d;hp=ab9544ef9a0d287304ee3a199bb693d5365520e4;hb=HEAD;hpb=30bdb85eb33a8ee7ba675038a86c6be59c43d7bd diff --git a/cinelerra-5.1/cinelerra/fileac3.h b/cinelerra-5.1/cinelerra/fileac3.h index ab9544ef..8ae62c76 100644 --- a/cinelerra-5.1/cinelerra/fileac3.h +++ b/cinelerra-5.1/cinelerra/fileac3.h @@ -1,4 +1,3 @@ - /* * CINELERRA * Copyright (C) 2008 Adam Williams @@ -21,6 +20,7 @@ #ifndef FILEAC3_H #define FILEAC3_H +#ifdef HAVE_CIN_3RDPARTY #include #include @@ -30,8 +30,11 @@ extern "C" { #include "libswresample/swresample.h" }; +#include "edl.inc" #include "filebase.h" #include "filempeg.inc" +#include "indexfile.inc" +#include "mainprogress.inc" class FileAC3 : public FileBase @@ -43,18 +46,20 @@ public: int reset_parameters_derived(); static void get_parameters(BC_WindowBase *parent_window, - Asset *asset, - BC_WindowBase* &format_window, - int audio_options, - int video_options); + Asset *asset, BC_WindowBase* &format_window, + int audio_options, int video_options, EDL *edl); static int check_sig(); int open_file(int rd, int wr); int close_file(); int read_samples(double *buffer, int64_t len); int write_samples(double **buffer, int64_t len); - int get_index(char *index_path); + int get_index(IndexFile *index_file, MainProgressBar *progress_bar); + int write_packet(); + int encode_frame(AVFrame *frame); + int encode_flush(); private: + AVPacket avpkt; AVCodec *codec; AVCodecContext *codec_context; SwrContext *resample_context; @@ -64,8 +69,6 @@ private: int16_t *temp_raw; int temp_raw_allocated; int temp_raw_size; - unsigned char *temp_compressed; - int compressed_allocated; }; @@ -97,8 +100,5 @@ public: AC3ConfigAudio *gui; }; - - - - +#endif #endif