add dragcheckbox, fix transition plugin title, sams opencv icons, drop libipp in...
[goodguy/history.git] / cinelerra-5.1 / cinelerra / fileac3.h
index c2a30b287f5cd2aea441fc41f1a069d5376f0ed4..6683816b9e10a711a6829d13a96f5defeef353e3 100644 (file)
@@ -30,6 +30,7 @@ extern "C" {
 #include "libswresample/swresample.h"
 };
 
+#include "edl.inc"
 #include "filebase.h"
 #include "filempeg.inc"
 #include "indexfile.inc"
@@ -45,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(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;
@@ -66,8 +69,6 @@ private:
        int16_t *temp_raw;
        int temp_raw_allocated;
        int temp_raw_size;
-       unsigned char *temp_compressed;
-       int compressed_allocated;
 };