X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Ffileac3.h;h=9304a80f4303f6c5bf2e360b0031b1fd595ff1df;hb=8d1431081df60da0719db2c77e4c56830521c7e8;hp=ab9544ef9a0d287304ee3a199bb693d5365520e4;hpb=30bdb85eb33a8ee7ba675038a86c6be59c43d7bd;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/cinelerra/fileac3.h b/cinelerra-5.1/cinelerra/fileac3.h index ab9544ef..9304a80f 100644 --- a/cinelerra-5.1/cinelerra/fileac3.h +++ b/cinelerra-5.1/cinelerra/fileac3.h @@ -32,6 +32,8 @@ extern "C" { #include "filebase.h" #include "filempeg.inc" +#include "indexfile.inc" +#include "mainprogress.inc" class FileAC3 : public FileBase @@ -52,9 +54,13 @@ public: 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 +70,6 @@ private: int16_t *temp_raw; int temp_raw_allocated; int temp_raw_size; - unsigned char *temp_compressed; - int compressed_allocated; };