Paolo Bizzarri
1542ec9638
cosmetics: Drop spurious spaces from if clauses
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
9 years ago
Vittorio Giovara
7c6eb0a1b7
lavc: AV-prefix all codec flags
...
Convert doxygen to multiline and express bitfields more simply.
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
9 years ago
Vittorio Giovara
848e86f74d
mpegvideo: Drop flags and flags2
...
They are just duplicates of AVCodecContext members so use those instead.
10 years ago
Carl Eugen Hoyos
83356cf6cc
lavc/vc1: Never decode vc1 as gray if gray decoding was not enabled.
10 years ago
Michael Niedermayer
982e7bbfa6
avcodec/vc1: Skip chroma operations if CODEC_FLAG_GRAY is set
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
zhaoxiu.zeng
94f5ac93d7
avcodec/vc1_block: Optimize vc1_decode_i_block_adv()
...
9127 -> 8936 decicycles (fate-suite/vc1/SA10143.vc1)
13855 -> 10976 decicycles (fate-suite/vc1/SA20021.vc1)
tests done by the author over this function but with the whole
patchset applied not just this commit
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
zhaoxiu.zeng
21581182ca
avcodec/vc1_block: Optimize vc1_decode_i_block()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
zhaoxiu.zeng
80a0daa0f6
avcodec/vc1_block: cosmetics
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
zhaoxiu.zeng
137fbab11b
avcodec/vc1_block: move early exit code up in ff_vc1_pred_dc()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
zhaoxiu.zeng
9914502264
avcodec/vc1_block: Use av_clip_uintp2()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
zhaoxiu.zeng
ec908ce427
avcodec/vc1_block: Optimize vc1_decode_ac_coeff()
...
Avoid branches in sign handling
Move local variables to where they are used
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
zhaoxiu.zeng
ccad34e3ca
avcodec/vc1_block: Simplify dcdiff initialization
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
zhaoxiu.zeng
bd55f01c96
avcodec/vc1_block: Simplify dir_ptr / pred initialization
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
zhaoxiu.zeng
f6b195cfb9
avcodec/vc1: Simplify pred/mc loops
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
zhaoxiu.zeng
d8e030c3cc
avcodec/vc1: Simplify dmv_y initialization
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
zhaoxiu.zeng
751883c602
avcodec/vc1: Simplify code setting and using extend_x/y
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
zhaoxiu.zeng
71de5542bb
avcodec/vc1: Make init_block_index() inline
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
zhaoxiu.zeng
e2edb10f8e
avcodec/vc1: use uint8_t for size_table
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
zhaoxiu.zeng
53cb0babb4
avcodec/vc1: simplify offset table and access
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Luca Barbato
d25afb579f
vc1: Set the is_intra bitfield to all 1 when needed
...
Keep the code as similar as possible across the codepaths to
ease spotting it for factorization.
Based on a patch from Michael Niedermayer <michaelni@gmx.at>.
10 years ago
Luca Barbato
b67138598c
vc1: Simplify a little setting the intra variables
...
The code currently set the information in at least 4 places, spare
some pointless loops.
Make the code in the loop a little uniform to make easier factorize
it out later.
10 years ago
Luca Barbato
04d14c9b68
vc1: Split the decoder in components
...
Speed up the overall compilation time.
10 years ago