diff options
author | Jochen Dolze <vdr@dolze.de> | 2010-09-26 00:30:30 +0200 |
---|---|---|
committer | Jochen Dolze <vdr@dolze.de> | 2010-09-26 00:30:30 +0200 |
commit | 101d294a50e16da992e10363c51b435e6a2fa226 (patch) | |
tree | e94bc2bbbf4c3eff48a3532b0ed15176b66dc24a /command/decoder.h | |
parent | 05dff1022a467deec38f93b0987db9aeb2b43420 (diff) | |
download | vdr-plugin-markad-101d294a50e16da992e10363c51b435e6a2fa226.tar.gz vdr-plugin-markad-101d294a50e16da992e10363c51b435e6a2fa226.tar.bz2 |
Added better thread handling in decoder.cpp, added --threads option
Diffstat (limited to 'command/decoder.h')
-rw-r--r-- | command/decoder.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/command/decoder.h b/command/decoder.h index 4a59883..ff03f6f 100644 --- a/command/decoder.h +++ b/command/decoder.h @@ -49,8 +49,8 @@ private: AVCodecContext *video_context; AVFrame *video_frame; + int threadcount; int8_t *last_qscale_table; - int initial_coded_picture; static int our_get_buffer(struct AVCodecContext *c, AVFrame *pic); static void our_release_buffer(struct AVCodecContext *c, AVFrame *pic); @@ -63,7 +63,7 @@ public: bool DecodeMP2(MarkAdContext *maContext, uchar *espkt, int eslen); bool DecodeAC3(MarkAdContext *maContext, uchar *espkt, int eslen); bool Clear(); - cMarkAdDecoder(bool useH264, bool useMP2, bool hasAC3); + cMarkAdDecoder(bool useH264, bool useMP2, bool hasAC3, int Threads); ~cMarkAdDecoder(); }; |