proxy bug fixes, add moveobj, sams icons, ladspa fixes, pot sigfpe
[goodguy/history.git] / cinelerra-5.1 / cinelerra / fileac3.h
index ab9544ef9a0d287304ee3a199bb693d5365520e4..9304a80f4303f6c5bf2e360b0031b1fd595ff1df 100644 (file)
@@ -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;
 };