/third_party/ffmpeg/tools/ |
H A D | target_dec_fuzzer.c | 311 if (ctx->max_pixels == 0 || ctx->max_pixels > maxpixels_per_frame) in LLVMFuzzerTestOneInput() 312 ctx->max_pixels = maxpixels_per_frame; //To reduce false positive OOM and hangs in LLVMFuzzerTestOneInput() 503 if (it > 20 || ec_pixels > 4 * ctx->max_pixels) { in LLVMFuzzerTestOneInput() 519 if (it > 20 || ec_pixels > 4 * ctx->max_pixels) { in LLVMFuzzerTestOneInput()
|
/third_party/skia/third_party/externals/libjpeg-turbo/ |
H A D | rdgif.c | 412 if (sinfo->max_pixels && in start_input_gif() 413 (unsigned long long)width * height > sinfo->max_pixels) in start_input_gif() 461 if (sinfo->max_pixels && in start_input_gif() 462 (unsigned long long)width * height > sinfo->max_pixels) in start_input_gif() 689 source->pub.max_pixels = 0; in GLOBAL()
|
H A D | rdtarga.c | 367 if (sinfo->max_pixels && in start_input_tga() 368 (unsigned long long)width * height > sinfo->max_pixels) in start_input_tga() 502 source->pub.max_pixels = 0; in GLOBAL()
|
H A D | rdbmp.c | 526 if (sinfo->max_pixels && in start_input_bmp() 527 (unsigned long long)biWidth * biHeight > sinfo->max_pixels) in start_input_bmp() 681 source->pub.max_pixels = 0; in GLOBAL()
|
H A D | cdjpeg.h | 40 JDIMENSION max_pixels; member
|
H A D | rdppm.c | 590 if (sinfo->max_pixels && (unsigned long long)w * h > sinfo->max_pixels) 773 source->pub.max_pixels = 0;
|
H A D | cjpeg.c | 698 src_mgr->max_pixels = 1048576; in cjpeg()
|
/third_party/ffmpeg/libavutil/ |
H A D | imgutils.c | 289 int av_image_check_size2(unsigned int w, unsigned int h, int64_t max_pixels, enum AVPixelFormat pix_fmt, int log_offset, void *log_ctx) in av_image_check_size2() argument 306 if (max_pixels < INT64_MAX) { in av_image_check_size2() 307 if (w*(int64_t)h > max_pixels) { in av_image_check_size2() 310 w, h, max_pixels); in av_image_check_size2()
|
H A D | imgutils.h | 257 * @param max_pixels the maximum number of pixels the user wants to accept 263 int av_image_check_size2(unsigned int w, unsigned int h, int64_t max_pixels, enum AVPixelFormat pix_fmt, int log_offset, void *log_ctx);
|
/third_party/ffmpeg/libavcodec/ |
H A D | avcodec.c | 204 && ( av_image_check_size2(avctx->coded_width, avctx->coded_height, avctx->max_pixels, AV_PIX_FMT_NONE, 0, avctx) < 0 in avcodec_open2() 205 || av_image_check_size2(avctx->width, avctx->height, avctx->max_pixels, AV_PIX_FMT_NONE, 0, avctx) < 0)) { in avcodec_open2()
|
H A D | avcodec.h | 1908 int64_t max_pixels; member
|
H A D | mpegpicture.c | 92 if (av_image_check_size2(alloc_size, EMU_EDGE_HEIGHT, avctx->max_pixels, AV_PIX_FMT_NONE, 0, avctx) < 0) in ff_mpeg_framesize_alloc()
|
H A D | pafvideo.c | 96 ret = av_image_check_size2(avctx->width, FFALIGN(avctx->height, 256), avctx->max_pixels, avctx->pix_fmt, 0, avctx); in paf_video_init()
|
H A D | exr.c | 1245 av_image_check_size2(td->xsize, td->ysize, s->avctx->max_pixels, AV_PIX_FMT_NONE, 0, s->avctx) < 0) in decode_block() 1270 av_image_check_size2(td->xsize, td->ysize, s->avctx->max_pixels, AV_PIX_FMT_NONE, 0, s->avctx) < 0) in decode_block() 1311 if (avctx->max_pixels && uncompressed_size > avctx->max_pixels * 16LL) in decode_block()
|
H A D | encode.c | 290 if (av_image_check_size2(avctx->width, avctx->height, avctx->max_pixels, AV_PIX_FMT_NONE, 0, avctx)) in encode_receive_packet_internal()
|
H A D | indeo4.c | 183 if (av_image_check_size2(pic_conf.pic_width, pic_conf.pic_height, avctx->max_pixels, AV_PIX_FMT_YUV410P, 0, avctx) < 0) { in decode_pic_hdr()
|
H A D | jpeg2000.c | 561 if (reslevel->num_precincts_x * (uint64_t)reslevel->num_precincts_y * reslevel->nbands > avctx->max_pixels / sizeof(*reslevel->band->prec)) in ff_jpeg2000_init_component()
|
H A D | libdav1d.c | 231 s.frame_size_limit = c->max_pixels; in libdav1d_init()
|
H A D | mss4.c | 481 if (av_image_check_size2(width, height, avctx->max_pixels, AV_PIX_FMT_NONE, 0, avctx) < 0) in mss4_decode_frame()
|
H A D | zmbv.c | 617 if ((avctx->width + 255ULL) * (avctx->height + 64ULL) > FFMIN(avctx->max_pixels, INT_MAX / 4) ) { in decode_init() 618 av_log(avctx, AV_LOG_ERROR, "Internal buffer (decomp_size) larger than max_pixels or too large\n"); in decode_init()
|
H A D | utils.c | 92 int ret = av_image_check_size2(width, height, s->max_pixels, AV_PIX_FMT_NONE, 0, s); in ff_set_dimensions()
|
H A D | tiff.c | 2159 s->avctx_mjpeg->max_pixels = avctx->max_pixels; in tiff_init()
|
H A D | ivi.c | 301 if (av_image_check_size2(cfg->pic_width, cfg->pic_height, avctx->max_pixels, AV_PIX_FMT_YUV410P, 0, avctx) < 0 || in ff_ivi_init_planes()
|
H A D | dvbsubdec.c | 1183 ret = av_image_check_size2(region->width, region->height, avctx->max_pixels, AV_PIX_FMT_PAL8, 0, avctx); in dvbsub_parse_region_segment()
|
/third_party/mesa3d/src/broadcom/vulkan/ |
H A D | v3dvx_meta_common.c | 1200 const uint32_t max_pixels = max_dim_pixels * max_dim_pixels; in framebuffer_size_for_pixel_count() local 1203 if (num_pixels > max_pixels) { in framebuffer_size_for_pixel_count()
|