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

Function mpv_encode_defaults

libavcodec/mpegvideo_enc.c:278–296  ·  view source on GitHub ↗

* Set the given MPVEncContext to defaults for encoding. */

Source from the content-addressed store, hash-verified

276 * Set the given MPVEncContext to defaults for encoding.
277 */
278static av_cold void mpv_encode_defaults(MPVMainEncContext *const m)
279{
280 MPVEncContext *const s = &m->s;
281 static AVOnce init_static_once = AV_ONCE_INIT;
282
283 ff_mpv_common_defaults(&s->c);
284
285 s->f_code = 1;
286 s->b_code = 1;
287
288 if (!m->fcode_tab) {
289 m->fcode_tab = default_fcode_tab + MAX_MV;
290 ff_thread_once(&init_static_once, mpv_encode_init_static);
291 }
292 if (!s->c.y_dc_scale_table) {
293 s->c.y_dc_scale_table =
294 s->c.c_dc_scale_table = ff_mpeg1_dc_scale_table;
295 }
296}
297
298av_cold void ff_dct_encode_init(MPVEncContext *const s)
299{

Callers 1

ff_mpv_encode_initFunction · 0.85

Calls 2

ff_mpv_common_defaultsFunction · 0.85
ff_thread_onceFunction · 0.85

Tested by

no test coverage detected