MCPcopy Create free account
hub / github.com/IENT/YUView / update

Method update

YUViewLib/src/ffmpeg/AVCodecContextWrapper.cpp:476–819  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

474}
475
476void AVCodecContextWrapper::update()
477{
478 if (this->codec == nullptr)
479 return;
480
481 if (this->libVer.avcodec.major == 56)
482 {
483 auto p = reinterpret_cast<AVCodecContext_56 *>(this->codec);
484 this->codec_type = p->codec_type;
485 this->codec_name = QString(p->codec_name);
486 this->codec_id = p->codec_id;
487 this->codec_tag = p->codec_tag;
488 this->stream_codec_tag = p->stream_codec_tag;
489 this->bit_rate = p->bit_rate;
490 this->bit_rate_tolerance = p->bit_rate_tolerance;
491 this->global_quality = p->global_quality;
492 this->compression_level = p->compression_level;
493 this->flags = p->flags;
494 this->flags2 = p->flags2;
495 this->extradata = QByteArray((const char *)p->extradata, p->extradata_size);
496 this->time_base = p->time_base;
497 this->ticks_per_frame = p->ticks_per_frame;
498 this->delay = p->delay;
499 this->width = p->width;
500 this->height = p->height;
501 this->coded_width = p->coded_width;
502 this->coded_height = p->coded_height;
503 this->gop_size = p->gop_size;
504 this->pix_fmt = p->pix_fmt;
505 this->me_method = p->me_method;
506 this->max_b_frames = p->max_b_frames;
507 this->b_quant_factor = p->b_quant_factor;
508 this->rc_strategy = p->rc_strategy;
509 this->b_frame_strategy = p->b_frame_strategy;
510 this->b_quant_offset = p->b_quant_offset;
511 this->has_b_frames = p->has_b_frames;
512 this->mpeg_quant = p->mpeg_quant;
513 this->i_quant_factor = p->i_quant_factor;
514 this->i_quant_offset = p->i_quant_offset;
515 this->lumi_masking = p->lumi_masking;
516 this->temporal_cplx_masking = p->temporal_cplx_masking;
517 this->spatial_cplx_masking = p->spatial_cplx_masking;
518 this->p_masking = p->p_masking;
519 this->dark_masking = p->dark_masking;
520 this->slice_count = p->slice_count;
521 this->prediction_method = p->prediction_method;
522 this->sample_aspect_ratio = p->sample_aspect_ratio;
523 this->me_cmp = p->me_cmp;
524 this->me_sub_cmp = p->me_sub_cmp;
525 this->mb_cmp = p->mb_cmp;
526 this->ildct_cmp = p->ildct_cmp;
527 this->dia_size = p->dia_size;
528 this->last_predictor_count = p->last_predictor_count;
529 this->pre_me = p->pre_me;
530 this->me_pre_cmp = p->me_pre_cmp;
531 this->pre_dia_size = p->pre_dia_size;
532 this->me_subpel_quality = p->me_subpel_quality;
533 this->dtg_active_format = p->dtg_active_format;

Callers 8

AVCodecContextWrapperMethod · 0.95
getCodecTypeMethod · 0.95
getCodecIDMethod · 0.95
getPixelFormatMethod · 0.95
getSizeMethod · 0.95
getColorspaceMethod · 0.95
getTimeBaseMethod · 0.95
getExtradataMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected