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

Function ff_set_qscale

libavcodec/mpegvideo.c:505–517  ·  view source on GitHub ↗

* set qscale and update qscale dependent variables. */

Source from the content-addressed store, hash-verified

503 * set qscale and update qscale dependent variables.
504 */
505void ff_set_qscale(MpegEncContext * s, int qscale)
506{
507 if (qscale < 1)
508 qscale = 1;
509 else if (qscale > 31)
510 qscale = 31;
511
512 s->qscale = qscale;
513 s->chroma_qscale= s->chroma_qscale_table[qscale];
514
515 s->y_dc_scale= s->y_dc_scale_table[ qscale ];
516 s->c_dc_scale= s->c_dc_scale_table[ s->chroma_qscale ];
517}

Callers 10

rv10_decode_packetFunction · 0.85
decode_sliceFunction · 0.85
h263_decode_dquantFunction · 0.85
h261_encode_mbFunction · 0.85
encode_mb_internalFunction · 0.85
encode_threadFunction · 0.85
mpeg4_decode_partition_aFunction · 0.85
mpeg4_decode_partition_bFunction · 0.85
mpeg4_decode_mbFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected