• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/iserver/libav-0.8.8/libavcodec/

Lines Matching refs:mmco

486         h->mmco[0].opcode= MMCO_SHORT2UNUSED;
487 h->mmco[0].short_pic_num= h->short_ref[ h->short_ref_count - 1 ]->frame_num;
490 h->mmco[0].short_pic_num *= 2;
491 h->mmco[1].opcode= MMCO_SHORT2UNUSED;
492 h->mmco[1].short_pic_num= h->mmco[0].short_pic_num + 1;
498 int ff_h264_execute_ref_pic_marking(H264Context *h, MMCO *mmco, int mmco_count){
505 av_log(h->s.avctx, AV_LOG_DEBUG, "no mmco here\n");
510 av_log(h->s.avctx, AV_LOG_DEBUG, "mmco:%d %d %d\n", h->mmco[i].opcode, h->mmco[i].short_pic_num, h->mmco[i].long_arg);
512 if( mmco[i].opcode == MMCO_SHORT2UNUSED
513 || mmco[i].opcode == MMCO_SHORT2LONG){
514 frame_num = pic_num_extract(h, mmco[i].short_pic_num, &structure);
517 if(mmco[i].opcode != MMCO_SHORT2LONG || !h->long_ref[mmco[i].long_arg]
518 || h->long_ref[mmco[i].long_arg]->frame_num != frame_num) {
519 av_log(h->s.avctx, AV_LOG_ERROR, "mmco: unref short failure\n");
526 switch(mmco[i].opcode){
529 av_log(h->s.avctx, AV_LOG_DEBUG, "mmco: unref short %d count %d\n", h->mmco[i].short_pic_num, h->short_ref_count);
533 if (h->long_ref[mmco[i].long_arg] != pic)
534 remove_long(h, mmco[i].long_arg, 0);
537 h->long_ref[ mmco[i].long_arg ]= pic;
538 if (h->long_ref[ mmco[i].long_arg ]){
539 h->long_ref[ mmco[i].long_arg ]->long_ref=1;
544 j = pic_num_extract(h, mmco[i].long_arg, &structure);
549 av_log(h->s.avctx, AV_LOG_DEBUG, "mmco: unref long failure\n");
560 if (h->long_ref[mmco[i].long_arg] != s->current_picture_ptr) {
561 remove_long(h, mmco[i].long_arg, 0);
563 h->long_ref[ mmco[i].long_arg ]= s->current_picture_ptr;
564 h->long_ref[ mmco[i].long_arg ]->long_ref=1;
572 assert(mmco[i].long_arg <= 16);
574 for(j = mmco[i].long_arg; j<16; j++){
665 h->mmco[0].opcode= MMCO_LONG;
666 h->mmco[0].long_arg= 0;
674 h->mmco[i].opcode= opcode;
676 h->mmco[i].short_pic_num= (h->curr_pic_num - get_ue_golomb(gb) - 1) & (h->max_pic_num - 1);
677 /* if(h->mmco[i].short_pic_num >= h->short_ref_count || h->short_ref[ h->mmco[i].short_pic_num ] == NULL){
678 av_log(s->avctx, AV_LOG_ERROR, "illegal short ref in memory management control operation %d\n", mmco);
688 h->mmco[i].long_arg= long_arg;