Home
last modified time | relevance | path

Searched refs:nnz (Results 1 - 23 of 23) sorted by relevance

/third_party/ffmpeg/libavcodec/
H A Dh264dec.h687 uint8_t *nnz = h->non_zero_count[mb_xy]; in write_back_non_zero_count() local
690 AV_COPY32(&nnz[ 0], &nnz_cache[4 + 8 * 1]); in write_back_non_zero_count()
691 AV_COPY32(&nnz[ 4], &nnz_cache[4 + 8 * 2]); in write_back_non_zero_count()
692 AV_COPY32(&nnz[ 8], &nnz_cache[4 + 8 * 3]); in write_back_non_zero_count()
693 AV_COPY32(&nnz[12], &nnz_cache[4 + 8 * 4]); in write_back_non_zero_count()
694 AV_COPY32(&nnz[16], &nnz_cache[4 + 8 * 6]); in write_back_non_zero_count()
695 AV_COPY32(&nnz[20], &nnz_cache[4 + 8 * 7]); in write_back_non_zero_count()
696 AV_COPY32(&nnz[32], &nnz_cache[4 + 8 * 11]); in write_back_non_zero_count()
697 AV_COPY32(&nnz[36], &nnz_cache[4 + 8 * 12]); in write_back_non_zero_count()
700 AV_COPY32(&nnz[2 in write_back_non_zero_count()
[all...]
H A Dh264_mvpred.h450 uint8_t *nnz; in fill_decode_caches() local
539 /* FIXME: constraint_intra_pred & partitioning & nnz in fill_decode_caches()
543 nnz = h->non_zero_count[top_xy]; in fill_decode_caches()
544 AV_COPY32(&nnz_cache[4 + 8 * 0], &nnz[4 * 3]); in fill_decode_caches()
546 AV_COPY32(&nnz_cache[4 + 8 * 5], &nnz[4 * 7]); in fill_decode_caches()
547 AV_COPY32(&nnz_cache[4 + 8 * 10], &nnz[4 * 11]); in fill_decode_caches()
549 AV_COPY32(&nnz_cache[4 + 8 * 5], &nnz[4 * 5]); in fill_decode_caches()
550 AV_COPY32(&nnz_cache[4 + 8 * 10], &nnz[4 * 9]); in fill_decode_caches()
561 nnz = h->non_zero_count[left_xy[LEFT(i)]]; in fill_decode_caches()
562 nnz_cache[3 + 8 * 1 + 2 * 8 * i] = nnz[left_bloc in fill_decode_caches()
[all...]
H A Dh264idct_template.c180 int nnz = nnzc[ scan8[i] ]; in ff_h264_idct_add16() local
181 if(nnz){ in ff_h264_idct_add16()
182 if(nnz==1 && ((dctcoef*)block)[i*16]) FUNCC(ff_h264_idct_dc_add)(dst + block_offset[i], block + i*16*sizeof(pixel), stride); in ff_h264_idct_add16()
205 int nnz = nnzc[ scan8[i] ]; in ff_h264_idct8_add4() local
206 if(nnz){ in ff_h264_idct8_add4()
207 if(nnz==1 && ((dctcoef*)block)[i*16]) FUNCC(ff_h264_idct8_dc_add)(dst + block_offset[i], block + i*16*sizeof(pixel), stride); in ff_h264_idct8_add4()
H A Dh264_cavlc.c660 /* For CAVLC 4:4:4, we need to keep track of the luma 8x8 CBP for deblocking nnz purposes. */ in decode_luma_residual()
666 uint8_t *nnz; in decode_luma_residual() local
673 nnz = &sl->non_zero_count_cache[scan8[4 * i8x8 + p * 16]]; in decode_luma_residual()
674 nnz[0] += nnz[1] + nnz[8] + nnz[9]; in decode_luma_residual()
675 new_cbp |= !!nnz[0] << i8x8; in decode_luma_residual()
687 uint8_t * const nnz = &sl->non_zero_count_cache[scan8[4 * i8x8 + p * 16]]; in decode_luma_residual() local
688 nnz[ in decode_luma_residual()
[all...]
H A Dvp9block.c806 int nnz, const int16_t *scan, const int16_t (*nb)[2], in decode_coeffs_b_generic()
810 const uint8_t *tp = p[0][nnz]; in decode_coeffs_b_generic()
817 eob[band][nnz][val]++; in decode_coeffs_b_generic()
823 cnt[band][nnz][0]++; in decode_coeffs_b_generic()
827 nnz = (1 + cache[nb[i][0]] + cache[nb[i][1]]) >> 1; in decode_coeffs_b_generic()
828 tp = p[band][nnz]; in decode_coeffs_b_generic()
836 cnt[band][nnz][1]++; in decode_coeffs_b_generic()
840 cnt[band][nnz][2]++; in decode_coeffs_b_generic()
915 nnz = (1 + cache[nb[i][0]] + cache[nb[i][1]]) >> 1; in decode_coeffs_b_generic()
916 tp = p[band][nnz]; in decode_coeffs_b_generic()
803 decode_coeffs_b_generic(VP56RangeCoder *c, int16_t *coef, int n_coeffs, int is_tx32x32, int is8bitsperpixel, int bpp, unsigned (*cnt)[6][3], unsigned (*eob)[6][2], uint8_t (*p)[6][11], int nnz, const int16_t *scan, const int16_t (*nb)[2], const int16_t *band_counts, int16_t *qmul) decode_coeffs_b_generic() argument
922 decode_coeffs_b_8bpp(VP9TileData *td, int16_t *coef, int n_coeffs, unsigned (*cnt)[6][3], unsigned (*eob)[6][2], uint8_t (*p)[6][11], int nnz, const int16_t *scan, const int16_t (*nb)[2], const int16_t *band_counts, int16_t *qmul) decode_coeffs_b_8bpp() argument
932 decode_coeffs_b32_8bpp(VP9TileData *td, int16_t *coef, int n_coeffs, unsigned (*cnt)[6][3], unsigned (*eob)[6][2], uint8_t (*p)[6][11], int nnz, const int16_t *scan, const int16_t (*nb)[2], const int16_t *band_counts, int16_t *qmul) decode_coeffs_b32_8bpp() argument
942 decode_coeffs_b_16bpp(VP9TileData *td, int16_t *coef, int n_coeffs, unsigned (*cnt)[6][3], unsigned (*eob)[6][2], uint8_t (*p)[6][11], int nnz, const int16_t *scan, const int16_t (*nb)[2], const int16_t *band_counts, int16_t *qmul) decode_coeffs_b_16bpp() argument
952 decode_coeffs_b32_16bpp(VP9TileData *td, int16_t *coef, int n_coeffs, unsigned (*cnt)[6][3], unsigned (*eob)[6][2], uint8_t (*p)[6][11], int nnz, const int16_t *scan, const int16_t (*nb)[2], const int16_t *band_counts, int16_t *qmul) decode_coeffs_b32_16bpp() argument
[all...]
H A Dvp8.c1479 int nnz_pred, nnz, nnz_total = 0; in decode_mb_coeffs() local
1487 nnz = decode_block_coeffs(c, td->block_dc, s->prob->token[1], 0, in decode_mb_coeffs()
1490 l_nnz[8] = t_nnz[8] = !!nnz; in decode_mb_coeffs()
1493 nnz |= inter_predict_dc(td->block_dc, in decode_mb_coeffs()
1497 if (nnz) { in decode_mb_coeffs()
1498 nnz_total += nnz; in decode_mb_coeffs()
1500 if (nnz == 1) in decode_mb_coeffs()
1513 nnz = decode_block_coeffs(c, td->block[y][x], in decode_mb_coeffs()
1518 /* nnz+block_dc may be one more than the actual last index, in decode_mb_coeffs()
1520 td->non_zero_count_cache[y][x] = nnz in decode_mb_coeffs()
1678 int x, y, mode, nnz; intra_predict() local
[all...]
H A Dh264_mb.c647 const int nnz = sl->non_zero_count_cache[scan8[i + p * 16]]; in hl_decode_mb_predict_luma() local
650 if (nnz) { in hl_decode_mb_predict_luma()
651 if (nnz == 1 && dctcoef_get(sl->mb, pixel_shift, i * 16 + p * 256)) in hl_decode_mb_predict_luma()
674 int nnz, tr; in hl_decode_mb_predict_luma() local
693 nnz = sl->non_zero_count_cache[scan8[i + p * 16]]; in hl_decode_mb_predict_luma()
694 if (nnz) { in hl_decode_mb_predict_luma()
695 if (nnz == 1 && dctcoef_get(sl->mb, pixel_shift, i * 16 + p * 256)) in hl_decode_mb_predict_luma()
H A Daacdec_template.c1857 unsigned nnz; in decode_spectrum_and_dequant() local
1864 nnz = cb_idx >> 8 & 15; in decode_spectrum_and_dequant()
1865 bits = nnz ? GET_CACHE(re, gb) : 0; in decode_spectrum_and_dequant()
1866 LAST_SKIP_BITS(re, gb, nnz); in decode_spectrum_and_dequant()
1905 unsigned nnz; in decode_spectrum_and_dequant() local
1912 nnz = cb_idx >> 8 & 15; in decode_spectrum_and_dequant()
1913 sign = nnz ? SHOW_UBITS(re, gb, nnz) << (cb_idx >> 12) : 0; in decode_spectrum_and_dequant()
1914 LAST_SKIP_BITS(re, gb, nnz); in decode_spectrum_and_dequant()
1937 unsigned nzt, nnz; in decode_spectrum_and_dequant() local
[all...]
H A Dlagarith.c142 int nnz = 0; in lag_read_prob_header() local
167 nnz++; in lag_read_prob_header()
176 if (nnz == 1 && (show_bits_long(gb, 32) & 0xFFFFFF)) { in lag_read_prob_header()
H A Dh264_slice.c2419 uint8_t *nnz; in fill_filter_caches() local
2491 nnz = h->non_zero_count[mb_xy]; in fill_filter_caches()
2493 AV_COPY32(&nnz_cache[4 + 8 * 1], &nnz[0]); in fill_filter_caches()
2494 AV_COPY32(&nnz_cache[4 + 8 * 2], &nnz[4]); in fill_filter_caches()
2495 AV_COPY32(&nnz_cache[4 + 8 * 3], &nnz[8]); in fill_filter_caches()
2496 AV_COPY32(&nnz_cache[4 + 8 * 4], &nnz[12]); in fill_filter_caches()
2500 nnz = h->non_zero_count[top_xy]; in fill_filter_caches()
2501 AV_COPY32(&nnz_cache[4 + 8 * 0], &nnz[3 * 4]); in fill_filter_caches()
2505 nnz = h->non_zero_count[left_xy[LTOP]]; in fill_filter_caches()
2506 nnz_cache[3 + 8 * 1] = nnz[ in fill_filter_caches()
[all...]
H A Dh264dsp.h75 void (*h264_loop_filter_strength)(int16_t bS[2][4][4], uint8_t nnz[40],
H A Dsvq3.c644 int nnz; in hl_decode_mb_predict_luma() local
652 nnz = s->non_zero_count_cache[scan8[i]]; in hl_decode_mb_predict_luma()
653 if (nnz) { in hl_decode_mb_predict_luma()
/third_party/ffmpeg/tests/checkasm/
H A Dh264dsp.c278 int nnz = rnd() % 3; in check_idct_multiple() local
290 if (nnz > 1) in check_idct_multiple()
291 nnz = sz * sz; in check_idct_multiple()
293 coef, nnz * SIZEOF_COEF); in check_idct_multiple()
295 if (intra && nnz == 1) in check_idct_multiple()
296 nnz = 0; in check_idct_multiple()
298 nnzc[scan8[i / 16]] = nnz; in check_idct_multiple()
/third_party/ffmpeg/libavcodec/loongarch/
H A Dh264idct_lasx.c312 int32_t nnz = nzc[scan8[i]]; in ff_h264_idct_add16_lasx() local
314 if (nnz) { in ff_h264_idct_add16_lasx()
315 if (nnz == 1 && ((dctcoef *) block)[i * 16]) in ff_h264_idct_add16_lasx()
334 int32_t nnz = nzc[scan8[cnt]]; in ff_h264_idct8_add4_lasx() local
336 if (nnz) { in ff_h264_idct8_add4_lasx()
337 if (nnz == 1 && ((dctcoef *) block)[cnt * 16]) in ff_h264_idct8_add4_lasx()
H A Dh264_deblock_lasx.c38 uint8_t *nnz_t = (uint8_t*)nnz; \
112 void ff_h264_loop_filter_strength_lasx(int16_t bS[2][4][4], uint8_t nnz[40], in ff_h264_loop_filter_strength_lasx() argument
H A Dh264dsp_lasx.h92 void ff_h264_loop_filter_strength_lasx(int16_t bS[2][4][4], uint8_t nnz[40],
/third_party/ffmpeg/libavcodec/mips/
H A Dh264idct_msa.c355 int32_t nnz = nzc[scan8[i]]; in ff_h264_idct_add16_msa() local
357 if (nnz) { in ff_h264_idct_add16_msa()
358 if (nnz == 1 && ((dctcoef *) block)[i * 16]) in ff_h264_idct_add16_msa()
377 int32_t nnz = nzc[scan8[cnt]]; in ff_h264_idct8_add4_msa() local
379 if (nnz) { in ff_h264_idct8_add4_msa()
380 if (nnz == 1 && ((dctcoef *) block)[cnt * 16]) in ff_h264_idct8_add4_msa()
H A Dh264_deblock_msa.c41 uint8_t *nnz_t = (uint8_t*)nnz; \
119 void ff_h264_loop_filter_strength_msa(int16_t bS[2][4][4], uint8_t nnz[40], in ff_h264_loop_filter_strength_msa() argument
H A Dh264dsp_mmi.c774 int nnz = nnzc[ scan8[i] ]; in ff_h264_idct_add16_8_mmi() local
775 if(nnz){ in ff_h264_idct_add16_8_mmi()
776 if(nnz==1 && ((int16_t*)block)[i*16]) in ff_h264_idct_add16_8_mmi()
804 int nnz = nnzc[ scan8[i] ]; in ff_h264_idct8_add4_8_mmi() local
805 if(nnz){ in ff_h264_idct8_add4_8_mmi()
806 if(nnz==1 && ((int16_t*)block)[i*16]) in ff_h264_idct8_add4_8_mmi()
H A Dh264dsp_mips.h322 void ff_h264_loop_filter_strength_msa(int16_t bS[2][4][4], uint8_t nnz[40],
/third_party/ffmpeg/libavcodec/ppc/
H A Dh264dsp.c335 int nnz = nnzc[ scan8[i] ]; in h264_idct_add16_altivec() local
336 if(nnz){ in h264_idct_add16_altivec()
337 if(nnz==1 && block[i*16]) h264_idct_dc_add_altivec(dst + block_offset[i], block + i*16, stride); in h264_idct_add16_altivec()
360 int nnz = nnzc[ scan8[i] ]; in h264_idct8_add4_altivec() local
361 if(nnz){ in h264_idct8_add4_altivec()
362 if(nnz==1 && block[i*16]) h264_idct8_dc_add_altivec(dst + block_offset[i], block + i*16, stride); in h264_idct8_add4_altivec()
/third_party/ffmpeg/libavcodec/x86/
H A Dh264_deblock.asm1063 ; void ff_h264_loop_filter_strength(int16_t bs[2][4][4], uint8_t nnz[40],
1157 por m1, [nnzq+b_idxq+d_idx+12] ; nnz[b] || nnz[bn]
1173 cglobal h264_loop_filter_strength, 9, 9, 0, bs, nnz, ref, mv, bidir, edges, \
H A Dh264dsp_init.c84 void ff_h264_loop_filter_strength_mmxext(int16_t bS[2][4][4], uint8_t nnz[40],

Completed in 33 milliseconds