Home
last modified time | relevance | path

Searched refs:av_assert0 (Results 1 – 25 of 409) sorted by relevance

12345678910>>...17

/third_party/ffmpeg/libavutil/tests/
Dencryption_info.c80 av_assert0(info); in run_encryption_info_test()
81 av_assert0(info->key_id); in run_encryption_info_test()
82 av_assert0(info->key_id_size == sizeof(test_key_id)); in run_encryption_info_test()
83 av_assert0(info->iv); in run_encryption_info_test()
84 av_assert0(info->iv_size == sizeof(test_iv)); in run_encryption_info_test()
85 av_assert0(info->subsamples); in run_encryption_info_test()
86 av_assert0(info->subsample_count == test_subsample_count); in run_encryption_info_test()
96 av_assert0(copy); in run_encryption_info_test()
97 av_assert0(copy != info); in run_encryption_info_test()
98 av_assert0(compare_encryption_info(info, copy) == 0); in run_encryption_info_test()
[all …]
Dinteger.c35 av_assert0(av_i2int(ai) == a); in main()
36 av_assert0(av_i2int(bi) == b); in main()
37 av_assert0(av_i2int(av_add_i(ai,bi)) == a+b); in main()
38 av_assert0(av_i2int(av_sub_i(ai,bi)) == a-b); in main()
39 av_assert0(av_i2int(av_mul_i(ai,bi)) == a*b); in main()
40 av_assert0(av_i2int(av_shr_i(ai, 9)) == a>>9); in main()
41 av_assert0(av_i2int(av_shr_i(ai,-9)) == a<<9); in main()
42 av_assert0(av_i2int(av_shr_i(ai, 17)) == a>>17); in main()
43 av_assert0(av_i2int(av_shr_i(ai,-17)) == a<<17); in main()
44 av_assert0(av_log2_i(ai) == av_log2(a)); in main()
[all …]
/third_party/ffmpeg/libavutil/
Dutils.c44 av_assert0(AV_SAMPLE_FMT_DBLP == 9); in avutil_version()
45 av_assert0(AVMEDIA_TYPE_ATTACHMENT == 4); in avutil_version()
46 av_assert0(AV_PICTURE_TYPE_BI == 7); in avutil_version()
47 av_assert0(LIBAVUTIL_VERSION_MICRO >= 100); in avutil_version()
48 av_assert0(HAVE_MMX2 == HAVE_MMXEXT); in avutil_version()
50av_assert0(((size_t)-1) > 0); // C guarantees this but if false on a platform we care about revert… in avutil_version()
116 default: av_assert0(!"valid element size"); in av_int_list_length_for_size()
158 av_assert0((state[4] & 3) == 3); in av_assert0_fpu()
Davassert.h37 #define av_assert0(cond) do { \ macro
51 #define av_assert1(cond) av_assert0(cond)
61 #define av_assert2(cond) av_assert0(cond)
Dslicethread.c102 av_assert0(nb_threads >= 0); in avpriv_slicethread_create()
168 av_assert0(nb_jobs > 0); in avpriv_slicethread_execute()
247 av_assert0(0); in avpriv_slicethread_execute()
252 av_assert0(!pctx || !*pctx); in avpriv_slicethread_free()
/third_party/ffmpeg/tests/checkasm/
Dvf_nlmeans.c77 av_assert0(safe_pw && safe_ph); in checkasm_check_nlmeans()
78 av_assert0(startx_safe - s1x >= 0); av_assert0(startx_safe - s1x < w); in checkasm_check_nlmeans()
79 av_assert0(starty_safe - s1y >= 0); av_assert0(starty_safe - s1y < h); in checkasm_check_nlmeans()
80 av_assert0(startx_safe - s2x >= 0); av_assert0(startx_safe - s2x < w); in checkasm_check_nlmeans()
81 av_assert0(starty_safe - s2y >= 0); av_assert0(starty_safe - s2y < h); in checkasm_check_nlmeans()
/third_party/ffmpeg/libavcodec/
Drv20enc.c46 av_assert0(s->f_code == 1); in ff_rv20_encode_picture_header()
47 av_assert0(s->unrestricted_mv == 0); in ff_rv20_encode_picture_header()
48 av_assert0(s->alt_inter_vlc == 0); in ff_rv20_encode_picture_header()
49 av_assert0(s->umvplus == 0); in ff_rv20_encode_picture_header()
50 av_assert0(s->modified_quant==1); in ff_rv20_encode_picture_header()
51 av_assert0(s->loop_filter==1); in ff_rv20_encode_picture_header()
Dcbs.c198 av_assert0(unit->data && unit->data_ref); in cbs_read_fragment_content()
224 av_assert0(!frag->data && !frag->data_ref); in cbs_fill_fragment_data()
340 av_assert0(put_bits_count(&pbc) <= 8 * ctx->write_buffer_size); in cbs_write_unit_data()
378 av_assert0(unit->data && unit->data_ref); in ff_cbs_write_fragment_data()
389 av_assert0(frag->data && frag->data_ref); in ff_cbs_write_fragment_data()
464 av_assert0(value >= INT_MIN && value <= UINT32_MAX); in ff_cbs_trace_syntax_element()
473 av_assert0(k > 0 && j + k < sizeof(name)); in ff_cbs_trace_syntax_element()
476 av_assert0(str[i] == ']'); in ff_cbs_trace_syntax_element()
480 av_assert0(str[i] == ']'); in ff_cbs_trace_syntax_element()
483 av_assert0(j + 1 < sizeof(name)); in ff_cbs_trace_syntax_element()
[all …]
Dvaapi_encode_vp9.c91 av_assert0(pic->nb_refs == 0); in vaapi_encode_vp9_init_picture_params()
97 av_assert0(pic->nb_refs == 1); in vaapi_encode_vp9_init_picture_params()
100 av_assert0(href->slot == 0 || href->slot == 1); in vaapi_encode_vp9_init_picture_params()
115 av_assert0(pic->nb_refs == 2); in vaapi_encode_vp9_init_picture_params()
119 av_assert0(href0->slot < pic->b_depth + 1 && in vaapi_encode_vp9_init_picture_params()
139 av_assert0(0 && "invalid picture type"); in vaapi_encode_vp9_init_picture_params()
156 av_assert0(vpic->reference_frames[slot] == VA_INVALID_SURFACE); in vaapi_encode_vp9_init_picture_params()
Dwmaenc.c78 av_assert0(0); in encode_init()
165 av_assert0(last_exp - 10 >= 0 && last_exp - 10 < 32); in encode_exp_vlc()
198 av_assert0(0); // FIXME not implemented in encode_block()
243 av_assert0(0); // FIXME not implemented in encode_block()
298 av_assert0(0); // FIXME not implemented in encode_block()
304 av_assert0(0); // FIXME not implemented in encode_block()
357 av_assert0(0); // FIXME not implemented in encode_frame()
410 av_assert0((put_bits_count(&s->pb) & 7) == 0); in encode_superframe()
412 av_assert0(i>=0); in encode_superframe()
417 av_assert0(put_bits_ptr(&s->pb) - s->pb.buf == avctx->block_align); in encode_superframe()
Dvaapi_encode_h264.c612 av_assert0(pic->display_order == pic->encode_order); in vaapi_encode_h264_init_picture_params()
621 av_assert0(prev); in vaapi_encode_h264_init_picture_params()
695 av_assert0(ref && ref->encode_order < pic->encode_order); in vaapi_encode_h264_init_picture_params()
734 av_assert0(prev); in vaapi_encode_h264_default_ref_pic_list()
739 av_assert0(hn->frame_num < hp->frame_num); in vaapi_encode_h264_default_ref_pic_list()
744 av_assert0(hc->frame_num != hn->frame_num); in vaapi_encode_h264_default_ref_pic_list()
754 av_assert0(hc->pic_order_cnt != hp->pic_order_cnt); in vaapi_encode_h264_default_ref_pic_list()
769 av_assert0(hc->pic_order_cnt != hp->pic_order_cnt); in vaapi_encode_h264_default_ref_pic_list()
880 av_assert0(keep <= priv->dpb_frames); in vaapi_encode_h264_init_slice_params()
888 av_assert0(old->frame_num < hpic->frame_num); in vaapi_encode_h264_init_slice_params()
[all …]
Dcbs_vp9.c103 av_assert0(range_min <= range_max && range_max - range_min < sizeof(bits) - 1); in cbs_vp9_read_increment()
137 av_assert0(range_min <= range_max && range_max - range_min < 8); in cbs_vp9_write_increment()
179 av_assert0(width % 8 == 0); in cbs_vp9_read_le()
216 av_assert0(width % 8 == 0); in cbs_vp9_write_le()
503 av_assert0(pos % 8 == 0); in cbs_vp9_read_unit()
505 av_assert0(pos <= unit->data_size); in cbs_vp9_read_unit()
533 av_assert0(put_bits_count(pbc) % 8 == 0); in cbs_vp9_write_unit()
589 av_assert0(size_len <= 4); in cbs_vp9_assemble_fragment()
609 av_assert0(size - pos > frag->units[i].data_size); in cbs_vp9_assemble_fragment()
614 av_assert0(size - pos == 2 + frag->nb_units * size_len); in cbs_vp9_assemble_fragment()
[all …]
Dput_bits.h91 av_assert0(8*buffer_size >= put_bits_count(s)); in rebase_put_bits()
117 av_assert0(s->buf_ptr < s->buf_end); in flush_put_bits()
134 av_assert0(s->buf_ptr < s->buf_end); in flush_put_bits_le()
355 av_assert0(n <= s->buf_end - s->buf_ptr); in skip_put_bytes()
378 av_assert0(size <= INT_MAX/8 - BUF_BITS); in set_put_bits_buffer_size()
/third_party/ffmpeg/libswscale/
Dswscale_internal.h649 av_assert0(desc); in is16BPS()
656 av_assert0(desc); in is32BPS()
663 av_assert0(desc); in isNBPS()
670 av_assert0(desc); in isBE()
677 av_assert0(desc); in isYUV()
684 av_assert0(desc); in isPlanarYUV()
695 av_assert0(desc); in isSemiPlanarYUV()
702 av_assert0(desc); in isRGB()
709 av_assert0(desc); in isGray()
764 av_assert0(desc); in isBayer()
[all …]
/third_party/ffmpeg/libavdevice/
Davdevice.c38 av_assert0(LIBAVDEVICE_VERSION_MICRO >= 100); in avdevice_version()
85 av_assert0(s); in avdevice_list_devices()
86 av_assert0(device_list); in avdevice_list_devices()
87 av_assert0(s->oformat || s->iformat); in avdevice_list_devices()
151 av_assert0(device_list); in avdevice_free_list_devices()
Dpulse_audio_common.c79 av_assert0(pa_ml); in ff_pulse_audio_disconnect_context()
80 av_assert0(pa_ctx); in ff_pulse_audio_disconnect_context()
100 av_assert0(pa_ml); in ff_pulse_audio_connect_context()
101 av_assert0(pa_ctx); in ff_pulse_audio_connect_context()
/third_party/ffmpeg/libavcodec/tests/
Dcelp_math.c28 av_assert0(diff <= largest * epsilon); in IsAlmostEqual()
43 av_assert0(212 == d); in main()
46 av_assert0(ff_log2_q15(i) == (1<<15)*((int)log2(i))+(1<<2)); in main()
/third_party/ffmpeg/libavfilter/
Daf_speechnorm.c160 av_assert0(pi[start].size > 0); in get_pi_samples()
188 av_assert0(0); in consume_pi()
210 av_assert0(cc->pi_size >= 0); in next_pi()
215 av_assert0(cc->pi[start].size > 0); in next_pi()
216 av_assert0(cc->pi[start].type > 0 || s->eof); in next_pi()
219 av_assert0(cc->pi_start != cc->pi_end || s->eof); in next_pi()
268 av_assert0(cc->pi[cc->pi_end].size > 0); \
281 av_assert0(cc->pi_end != cc->pi_start); \
327 av_assert0(size > 0); \
368 av_assert0(min_size > 0); \
[all …]
Davfiltergraph.c335 av_assert0(!"reached"); in filter_link_check_formats()
564 av_assert0( inlink->incfg.formats->refcount > 0); in query_formats()
565 av_assert0( inlink->outcfg.formats->refcount > 0); in query_formats()
566 av_assert0(outlink->incfg.formats->refcount > 0); in query_formats()
567 av_assert0(outlink->outcfg.formats->refcount > 0); in query_formats()
569 av_assert0( inlink-> incfg.samplerates->refcount > 0); in query_formats()
570 av_assert0( inlink->outcfg.samplerates->refcount > 0); in query_formats()
571 av_assert0(outlink-> incfg.samplerates->refcount > 0); in query_formats()
572 av_assert0(outlink->outcfg.samplerates->refcount > 0); in query_formats()
573 av_assert0( inlink-> incfg.channel_layouts->refcount > 0); in query_formats()
[all …]
Dframepool.c166 av_assert0(pool->type == AVMEDIA_TYPE_VIDEO); in ff_frame_pool_get_video_config()
185 av_assert0(pool->type == AVMEDIA_TYPE_AUDIO); in ff_frame_pool_get_audio_config()
234 av_assert0(frame->data[1] != NULL); in ff_frame_pool_get()
257 av_assert0(frame->nb_extended_buf == 0); in ff_frame_pool_get()
275 av_assert0(0); in ff_frame_pool_get()
Dframesync.c89 av_assert0(parent->nb_outputs == 1); in ff_framesync_init()
115 av_assert0(level <= fs->sync_level); in framesync_sync_level_update()
232 av_assert0(!fs->in[in].have_next); in framesync_inject_frame()
233 av_assert0(frame); in framesync_inject_frame()
243 av_assert0(!fs->in[in].have_next); in framesync_inject_status()
319 av_assert0(frame); in consume_from_fifos()
387 av_assert0(mainpic); in ff_framesync_dualinput_get()
Dgenerate_wave_table.c49 av_assert0(0); in ff_generate_wave_table()
79 av_assert0(0); in ff_generate_wave_table()
/third_party/ffmpeg/libswresample/
Dswresample.c37 av_assert0(LIBSWRESAMPLE_VERSION_MICRO >= 100); in swresample_version()
301 av_assert0(!s->in_ch_layout); in swr_init()
327 av_assert0(s->used_ch_count); in swr_init()
328 av_assert0(s->out.ch_count); in swr_init()
378 av_assert0(!s->preout.count); in swr_init()
415 av_assert0(a->bps); in swri_realloc_audio()
416 av_assert0(a->ch_count); in swri_realloc_audio()
434 av_assert0(out->planar == in->planar); in copy()
435 av_assert0(out->bps == in->bps); in copy()
436 av_assert0(out->ch_count == in->ch_count); in copy()
[all …]
Drematrix.c187 av_assert0(0); in swr_build_matrix()
196 av_assert0(0); in swr_build_matrix()
223 av_assert0(0); in swr_build_matrix()
256 av_assert0(0); in swr_build_matrix()
292 av_assert0(0); in swr_build_matrix()
303 av_assert0(0); in swr_build_matrix()
313 av_assert0(0); in swr_build_matrix()
482 av_assert0(0); in swri_rematrix_init()
522av_assert0(!s->out_ch_layout || out->ch_count == av_get_channel_layout_nb_channels(s->out_ch_layou… in swri_rematrix()
523av_assert0(!s-> in_ch_layout || in ->ch_count == av_get_channel_layout_nb_channels(s-> in_ch_layou… in swri_rematrix()
Ddither.c42 av_assert0(s->dither.method < SWR_DITHER_NB); in swri_get_dither()
56 av_assert0(s->dither.method < SWR_DITHER_NB); in swri_get_dither()
71 default: av_assert0(0); in swri_get_dither()

12345678910>>...17