mjpegdec: export qp table
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
a0813e7f00
commit
ff9adf5725
@ -1743,12 +1743,19 @@ eoi_parser:
|
|||||||
*got_frame = 1;
|
*got_frame = 1;
|
||||||
s->got_picture = 0;
|
s->got_picture = 0;
|
||||||
|
|
||||||
if (!s->lossless &&
|
if (!s->lossless) {
|
||||||
avctx->debug & FF_DEBUG_QP) {
|
int qp = FFMAX3(s->qscale[0],
|
||||||
av_log(avctx, AV_LOG_DEBUG,
|
s->qscale[1],
|
||||||
"QP: %d\n", FFMAX3(s->qscale[0],
|
s->qscale[2]);
|
||||||
s->qscale[1],
|
int qpw = (s->width + 15) / 16;
|
||||||
s->qscale[2]));
|
AVBufferRef *qp_table_buf = av_buffer_alloc(qpw);
|
||||||
|
if (qp_table_buf) {
|
||||||
|
memset(qp_table_buf->data, qp, qpw);
|
||||||
|
av_frame_set_qp_table(data, qp_table_buf, 0, FF_QSCALE_TYPE_MPEG1);
|
||||||
|
}
|
||||||
|
|
||||||
|
if(avctx->debug & FF_DEBUG_QP)
|
||||||
|
av_log(avctx, AV_LOG_DEBUG, "QP: %d\n", qp);
|
||||||
}
|
}
|
||||||
|
|
||||||
goto the_end;
|
goto the_end;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user