42 int16_t *
block,
int n,
int qscale)
47 qadd = (qscale - 1) | 1;
67 register const vector
signed short vczero = (
const vector
signed short)vec_splat_s16(0);
70 register vector
signed short blockv, qmulv, qaddv, nqaddv, temp1;
71 register vector
bool short blockv_null, blockv_neg;
72 register short backup_0 = block[0];
75 qmulv = vec_splat((
vec_s16)vec_lde(0, &qmul8), 0);
76 qaddv = vec_splat((
vec_s16)vec_lde(0, &qadd8), 0);
77 nqaddv = vec_sub(vczero, qaddv);
81 for(; (j + 7) <= nCoeffs ; j+=8) {
82 blockv = vec_ld(j << 1, block);
83 blockv_neg = vec_cmplt(blockv, vczero);
84 blockv_null = vec_cmpeq(blockv, vczero);
86 temp1 = vec_sel(qaddv, nqaddv, blockv_neg);
88 temp1 = vec_mladd(blockv, qmulv, temp1);
90 blockv = vec_sel(temp1, blockv, blockv_null);
91 vec_st(blockv, j << 1, block);
98 for(; j <= nCoeffs ; j++) {
102 level = level * qmul - qadd;
104 level = level * qmul + qadd;
int dct_algo
DCT algorithm, see FF_DCT_* below.
void(* dct_unquantize_h263_inter)(struct MpegEncContext *s, int16_t *block, int n, int qscale)
int h263_aic
Advanced INTRA Coding (AIC)
Macro definitions for various function/variable attributes.
The exact code depends on how similar the blocks are and how related they are to the block
#define av_assert2(cond)
assert() equivalent, that does lie in speed critical code.
av_cold void ff_mpv_common_init_ppc(MpegEncContext *s)
#define DECLARE_ALIGNED(n, t, v)
Declare a variable that is aligned in memory.
#define PPC_ALTIVEC(flags)
int block_last_index[12]
last non zero coefficient in block
ScanTable intra_scantable
void(* dct_unquantize_h263_intra)(struct MpegEncContext *s, int16_t *block, int n, int qscale)
int av_get_cpu_flags(void)
Return the flags which specify extensions supported by the CPU.
Contains misc utility macros and inline functions.
struct AVCodecContext * avctx
it s the only field you need to keep assuming you have a context There is some magic you don t need to care about around this just let it vf default minimum maximum flags name is the option keep it simple and lowercase description are short