diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-04-20 05:09:47 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-04-20 05:11:48 +0200 |
commit | 1fa7d0902c3eef6fc17f253b5e90c77167483458 (patch) | |
tree | b35db5c5fed4e40dd2b0e4eaf25b5d693857d70d /libavcodec/hqx.h | |
parent | 55b866f618582350bcc5489d4e96afd40c9c8c44 (diff) | |
parent | 5b5338f6d1272526d2634501555cbaff4cdfb87b (diff) | |
download | ffmpeg-1fa7d0902c3eef6fc17f253b5e90c77167483458.tar.gz |
Merge commit '5b5338f6d1272526d2634501555cbaff4cdfb87b'
* commit '5b5338f6d1272526d2634501555cbaff4cdfb87b':
hqx: Implement slice-threaded decoding
Conflicts:
libavcodec/hqx.c
libavcodec/hqx.h
See: eff72a6c7375587a3280ddf59e6e26a4907823b7
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/hqx.h')
-rw-r--r-- | libavcodec/hqx.h | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/libavcodec/hqx.h b/libavcodec/hqx.h index 486afcfd17..42d382de1f 100644 --- a/libavcodec/hqx.h +++ b/libavcodec/hqx.h @@ -49,21 +49,19 @@ typedef struct HQXAC { const HQXLUT *lut; } HQXAC; - -typedef struct HQXSliceData -{ - DECLARE_ALIGNED(16, int16_t, block)[16][64]; - GetBitContext gb; - -} HQXSliceData; - struct HQXContext; -typedef int (*mb_decode_func)(struct HQXContext *ctx, HQXSliceData * slice_data, - GetBitContext *gb, int x, int y); +typedef int (*mb_decode_func)(struct HQXContext *ctx, + int slice_no, int x, int y); + +typedef struct HQXSlice { + GetBitContext gb; + DECLARE_ALIGNED(16, int16_t, block)[16][64]; +} HQXSlice; typedef struct HQXContext { HQXDSPContext hqxdsp; + HQXSlice slice[16]; AVFrame *pic; mb_decode_func decode_func; @@ -71,8 +69,6 @@ typedef struct HQXContext { int format, dcb, width, height; int interlaced; - HQXSliceData slice[17]; - uint8_t *src; unsigned int data_size; uint32_t slice_off[17]; |