diff options
author | deva <deva> | 2005-05-17 14:30:56 +0000 |
---|---|---|
committer | deva <deva> | 2005-05-17 14:30:56 +0000 |
commit | e3710646f6557a1592fbffa910ebed674cd9edf0 (patch) | |
tree | 6c1fe6ebdc9dad236685ec7cf09ce19ea976222a /src/mov_encoder.h | |
parent | a7f843c9ac8bd1e4bbb017bcbfb73d7c5b110792 (diff) |
Added code, preparing threaded encoding.
Diffstat (limited to 'src/mov_encoder.h')
-rw-r--r-- | src/mov_encoder.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/mov_encoder.h b/src/mov_encoder.h index 457b577..24525f2 100644 --- a/src/mov_encoder.h +++ b/src/mov_encoder.h @@ -36,6 +36,9 @@ /* * $Log$ + * Revision 1.8 2005/05/17 14:30:56 deva + * Added code, preparing threaded encoding. + * * Revision 1.7 2005/05/09 16:40:20 deva * * Added optimize yuv conversion code @@ -71,16 +74,16 @@ #include "util.h" // size specifies the length of the buffer. -#define FAME_BUFFER_SIZE (2*1024*1024) // FIXME: One size fits all... +#define FAME_BUFFER_SIZE (2*720*576*4) // FIXME: One size fits all... class MovEncoder { public: - MovEncoder(const char *filename); + MovEncoder(); ~MovEncoder(); - void encode(Frame *frame); + Frame* encode(Frame *frame); private: - void encode_video(Frame *frame); + Frame *encode_video(Frame *frame); void encode_audio(Frame *frame); // buffer is the buffer where encoded data will be written to. It must be large @@ -94,7 +97,7 @@ class MovEncoder { // libdv decoder dv_decoder_t *dvdecoder; - unsigned char rgb[720*576*4]; + unsigned char rgb[FAME_BUFFER_SIZE]; }; #endif |