projects
/
goodguy
/
history.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
alt transport keys, snap editing, grab focus, inv hilight clr, subtitle fix
[goodguy/history.git]
/
cinelerra-5.1
/
cinelerra
/
fileac3.h
diff --git
a/cinelerra-5.1/cinelerra/fileac3.h
b/cinelerra-5.1/cinelerra/fileac3.h
index ab9544ef9a0d287304ee3a199bb693d5365520e4..9304a80f4303f6c5bf2e360b0031b1fd595ff1df 100644
(file)
--- 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 "filebase.h"
#include "filempeg.inc"
+#include "indexfile.inc"
+#include "mainprogress.inc"
class FileAC3 : public FileBase
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 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:
private:
+ AVPacket avpkt;
AVCodec *codec;
AVCodecContext *codec_context;
SwrContext *resample_context;
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;
int16_t *temp_raw;
int temp_raw_allocated;
int temp_raw_size;
- unsigned char *temp_compressed;
- int compressed_allocated;
};
};