@@ -7182,9 +7182,6 @@ forward predicted MVs of B-frames
backward predicted MVs of B-frames
@end table
-@item qp
-Display quantization parameters using the chroma planes.
-
@item mv_type, mvt
Set motion vectors type to visualize. Includes MVs from all frames unless specified by @var{frame_type} option.
@@ -50,7 +50,6 @@ typedef struct CodecViewContext {
unsigned frame_type;
unsigned mv_type;
int hsub, vsub;
- int qp;
} CodecViewContext;
#define OFFSET(x) offsetof(CodecViewContext, x)
@@ -62,7 +61,6 @@ static const AVOption codecview_options[] = {
CONST("pf", "forward predicted MVs of P-frames", MV_P_FOR, "mv"),
CONST("bf", "forward predicted MVs of B-frames", MV_B_FOR, "mv"),
CONST("bb", "backward predicted MVs of B-frames", MV_B_BACK, "mv"),
- { "qp", NULL, OFFSET(qp), AV_OPT_TYPE_BOOL, {.i64=0}, 0, 1, .flags = FLAGS },
{ "mv_type", "set motion vectors type", OFFSET(mv_type), AV_OPT_TYPE_FLAGS, {.i64=0}, 0, INT_MAX, FLAGS, "mv_type" },
{ "mvt", "set motion vectors type", OFFSET(mv_type), AV_OPT_TYPE_FLAGS, {.i64=0}, 0, INT_MAX, FLAGS, "mv_type" },
CONST("fp", "forward predicted MVs", MV_TYPE_FOR, "mv_type"),
@@ -218,30 +216,6 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
CodecViewContext *s = ctx->priv;
AVFilterLink *outlink = ctx->outputs[0];
- if (s->qp) {
- int qstride, qp_type;
- int8_t *qp_table = av_frame_get_qp_table(frame, &qstride, &qp_type);
-
- if (qp_table) {
- int x, y;
- const int w = AV_CEIL_RSHIFT(frame->width, s->hsub);
- const int h = AV_CEIL_RSHIFT(frame->height, s->vsub);
- uint8_t *pu = frame->data[1];
- uint8_t *pv = frame->data[2];
- const int lzu = frame->linesize[1];
- const int lzv = frame->linesize[2];
-
- for (y = 0; y < h; y++) {
- for (x = 0; x < w; x++) {
- const int qp = ff_norm_qscale(qp_table[(y >> 3) * qstride + (x >> 3)], qp_type) * 128/31;
- pu[x] = pv[x] = qp;
- }
- pu += lzu;
- pv += lzv;
- }
- }
- }
-
if (s->mv || s->mv_type) {
AVFrameSideData *sd = av_frame_get_side_data(frame, AV_FRAME_DATA_MOTION_VECTORS);
if (sd) {