Lines Matching defs:mmco

589     MMCO *mmco = h->mmco;
595 mmco[0].opcode = MMCO_SHORT2UNUSED;
596 mmco[0].short_pic_num = h->short_ref[h->short_ref_count - 1]->frame_num;
599 mmco[0].short_pic_num *= 2;
600 mmco[1].opcode = MMCO_SHORT2UNUSED;
601 mmco[1].short_pic_num = mmco[0].short_pic_num + 1;
611 MMCO *mmco = h->mmco;
629 av_log(h->avctx, AV_LOG_DEBUG, "no mmco here\n");
634 av_log(h->avctx, AV_LOG_DEBUG, "mmco:%d %d %d\n", h->mmco[i].opcode,
635 h->mmco[i].short_pic_num, h->mmco[i].long_arg);
637 if (mmco[i].opcode == MMCO_SHORT2UNUSED ||
638 mmco[i].opcode == MMCO_SHORT2LONG) {
639 frame_num = pic_num_extract(h, mmco[i].short_pic_num, &structure);
642 if (mmco[i].opcode != MMCO_SHORT2LONG ||
643 !h->long_ref[mmco[i].long_arg] ||
644 h->long_ref[mmco[i].long_arg]->frame_num != frame_num) {
645 av_log(h->avctx, h->short_ref_count ? AV_LOG_ERROR : AV_LOG_DEBUG, "mmco: unref short failure\n");
652 switch (mmco[i].opcode) {
655 av_log(h->avctx, AV_LOG_DEBUG, "mmco: unref short %d count %d\n",
656 h->mmco[i].short_pic_num, h->short_ref_count);
660 if (h->long_ref[mmco[i].long_arg] != pic)
661 remove_long(h, mmco[i].long_arg, 0);
664 h->long_ref[ mmco[i].long_arg ] = pic;
665 if (h->long_ref[mmco[i].long_arg]) {
666 h->long_ref[mmco[i].long_arg]->long_ref = 1;
671 j = pic_num_extract(h, mmco[i].long_arg, &structure);
676 av_log(h->avctx, AV_LOG_DEBUG, "mmco: unref long failure\n");
687 av_log(h->avctx, AV_LOG_ERROR, "mmco: cannot assign current picture to short and long at the same time\n");
695 if (j != mmco[i].long_arg)
696 av_log(h->avctx, AV_LOG_ERROR, "mmco: cannot assign current picture to 2 long term references\n");
702 if (h->long_ref[mmco[i].long_arg] != h->cur_pic_ptr) {
704 remove_long(h, mmco[i].long_arg, 0);
706 h->long_ref[mmco[i].long_arg] = h->cur_pic_ptr;
707 h->long_ref[mmco[i].long_arg]->long_ref = 1;
715 assert(mmco[i].long_arg <= 16);
717 for (j = mmco[i].long_arg; j < 16; j++) {
837 MMCO *mmco = sl->mmco;
843 mmco[0].opcode = MMCO_LONG;
844 mmco[0].long_arg = 0;
851 for (i = 0; i < FF_ARRAY_ELEMS(sl->mmco); i++) {
854 mmco[i].opcode = opcode;
856 mmco[i].short_pic_num =
873 mmco[i].long_arg = long_arg;