• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/minidlna/ffmpeg-2.3.4/libavcodec/

Lines Matching refs:mmco

557     MMCO mmco_temp[MAX_MMCO_COUNT], *mmco = first_slice ? h->mmco : mmco_temp;
563 mmco[0].opcode = MMCO_SHORT2UNUSED;
564 mmco[0].short_pic_num = h->short_ref[h->short_ref_count - 1]->frame_num;
567 mmco[0].short_pic_num *= 2;
568 mmco[1].opcode = MMCO_SHORT2UNUSED;
569 mmco[1].short_pic_num = mmco[0].short_pic_num + 1;
578 (i = check_opcodes(h->mmco, mmco_temp, mmco_index)))) {
587 int ff_h264_execute_ref_pic_marking(H264Context *h, MMCO *mmco, int mmco_count)
595 av_log(h->avctx, AV_LOG_DEBUG, "no mmco here\n");
600 av_log(h->avctx, AV_LOG_DEBUG, "mmco:%d %d %d\n", h->mmco[i].opcode,
601 h->mmco[i].short_pic_num, h->mmco[i].long_arg);
603 if (mmco[i].opcode == MMCO_SHORT2UNUSED ||
604 mmco[i].opcode == MMCO_SHORT2LONG) {
605 frame_num = pic_num_extract(h, mmco[i].short_pic_num, &structure);
608 if (mmco[i].opcode != MMCO_SHORT2LONG ||
609 !h->long_ref[mmco[i].long_arg] ||
610 h->long_ref[mmco[i].long_arg]->frame_num != frame_num) {
611 av_log(h->avctx, h->short_ref_count ? AV_LOG_ERROR : AV_LOG_DEBUG, "mmco: unref short failure\n");
618 switch (mmco[i].opcode) {
621 av_log(h->avctx, AV_LOG_DEBUG, "mmco: unref short %d count %d\n",
622 h->mmco[i].short_pic_num, h->short_ref_count);
626 if (h->long_ref[mmco[i].long_arg] != pic)
627 remove_long(h, mmco[i].long_arg, 0);
630 h->long_ref[ mmco[i].long_arg ] = pic;
631 if (h->long_ref[mmco[i].long_arg]) {
632 h->long_ref[mmco[i].long_arg]->long_ref = 1;
637 j = pic_num_extract(h, mmco[i].long_arg, &structure);
642 av_log(h->avctx, AV_LOG_DEBUG, "mmco: unref long failure\n");
653 av_log(h->avctx, AV_LOG_ERROR, "mmco: cannot assign current picture to short and long at the same time\n");
657 if (h->long_ref[mmco[i].long_arg] != h->cur_pic_ptr) {
662 av_log(h->avctx, AV_LOG_ERROR, "mmco: cannot assign current picture to 2 long term references\n");
667 remove_long(h, mmco[i].long_arg, 0);
669 h->long_ref[mmco[i].long_arg] = h->cur_pic_ptr;
670 h->long_ref[mmco[i].long_arg]->long_ref = 1;
678 assert(mmco[i].long_arg <= 16);
680 for (j = mmco[i].long_arg; j < 16; j++) {
792 MMCO mmco_temp[MAX_MMCO_COUNT], *mmco = mmco_temp;
798 mmco[0].opcode = MMCO_LONG;
799 mmco[0].long_arg = 0;
807 mmco[i].opcode = opcode;
809 mmco[i].short_pic_num =
813 if (mmco[i].short_pic_num >= h->short_ref_count ||
814 h->short_ref[ mmco[i].short_pic_num ] == NULL){
817 "operation %d\n", mmco);
834 mmco[i].long_arg = long_arg;
858 memcpy(h->mmco, mmco_temp, sizeof(h->mmco));
862 check_opcodes(h->mmco, mmco_temp, mmco_index))) {