MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / ff_set_dimensions

Function ff_set_dimensions

libavcodec/utils.c:91–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89}
90
91int ff_set_dimensions(AVCodecContext *s, int width, int height)
92{
93 int ret = av_image_check_size2(width, height, s->max_pixels, AV_PIX_FMT_NONE, 0, s);
94
95 if (ret < 0)
96 width = height = 0;
97
98 s->coded_width = width;
99 s->coded_height = height;
100 s->width = AV_CEIL_RSHIFT(width, s->lowres);
101 s->height = AV_CEIL_RSHIFT(height, s->lowres);
102
103 return ret;
104}
105
106int ff_set_sar(AVCodecContext *avctx, AVRational sar)
107{

Callers 15

gem_decode_frameFunction · 0.85
decode_frameFunction · 0.85
alloc_buffersFunction · 0.85
cfhd_decodeFunction · 0.85
dds_decodeFunction · 0.85
aom_decodeFunction · 0.85
g2m_decode_frameFunction · 0.85
ff_ivi_decode_frameFunction · 0.85
process_frame_objFunction · 0.85
seqvideo_decode_initFunction · 0.85

Calls 1

av_image_check_size2Function · 0.85

Tested by

no test coverage detected