/third_party/ffmpeg/libavcodec/ |
H A D | ratecontrol.c | 44 s->pict_type, in ff_write_pass1_stats() 83 const int pict_type = rce->new_pict_type; in get_diff_limited_q() local 87 if (pict_type == AV_PICTURE_TYPE_I && in get_diff_limited_q() 90 else if (pict_type == AV_PICTURE_TYPE_B && in get_diff_limited_q() 97 if (rcc->last_non_b_pict_type == pict_type || pict_type != AV_PICTURE_TYPE_I) { in get_diff_limited_q() 98 double last_q = rcc->last_qscale_for[pict_type]; in get_diff_limited_q() 107 rcc->last_qscale_for[pict_type] = q; // Note we cannot do that after blurring in get_diff_limited_q() 109 if (pict_type != AV_PICTURE_TYPE_B) in get_diff_limited_q() 110 rcc->last_non_b_pict_type = pict_type; in get_diff_limited_q() 118 get_qminmax(int *qmin_ret, int *qmax_ret, MpegEncContext *s, int pict_type) get_qminmax() argument 154 const int pict_type = rce->new_pict_type; modify_qscale() local 242 const int pict_type = rce->new_pict_type; get_qscale() local 391 const int pict_type = rce->new_pict_type; init_pass2() local 883 const int pict_type = s->pict_type; ff_rate_estimate_qscale() local [all...] |
H A D | nvdec_vc1.c | 59 .intra_pic_flag = s->pict_type == AV_PICTURE_TYPE_I || in nvdec_vc1_start_frame() 60 s->pict_type == AV_PICTURE_TYPE_BI, in nvdec_vc1_start_frame() 61 .ref_pic_flag = s->pict_type == AV_PICTURE_TYPE_I || in nvdec_vc1_start_frame() 62 s->pict_type == AV_PICTURE_TYPE_P, in nvdec_vc1_start_frame() 70 .intra_pic_flag = s->pict_type == AV_PICTURE_TYPE_I || in nvdec_vc1_start_frame() 71 s->pict_type == AV_PICTURE_TYPE_BI, in nvdec_vc1_start_frame() 72 .ref_pic_flag = s->pict_type == AV_PICTURE_TYPE_I || in nvdec_vc1_start_frame() 73 s->pict_type == AV_PICTURE_TYPE_P, in nvdec_vc1_start_frame()
|
H A D | vaapi_vc1.c | 50 (v->s.pict_type == AV_PICTURE_TYPE_P && !v->p_frame_skipped) && in vc1_has_MVTYPEMB_bitplane() 62 ((v->s.pict_type == AV_PICTURE_TYPE_P && !v->p_frame_skipped) || in vc1_has_SKIPMB_bitplane() 63 (v->s.pict_type == AV_PICTURE_TYPE_B && !v->bi_type)); in vc1_has_SKIPMB_bitplane() 72 (v->s.pict_type == AV_PICTURE_TYPE_B && !v->bi_type); in vc1_has_DIRECTMB_bitplane() 81 (v->s.pict_type == AV_PICTURE_TYPE_I || in vc1_has_ACPRED_bitplane() 82 (v->s.pict_type == AV_PICTURE_TYPE_B && v->bi_type)); in vc1_has_ACPRED_bitplane() 91 (v->s.pict_type == AV_PICTURE_TYPE_I || in vc1_has_OVERFLAGS_bitplane() 92 (v->s.pict_type == AV_PICTURE_TYPE_B && v->bi_type)) && in vc1_has_OVERFLAGS_bitplane() 103 (v->s.pict_type == AV_PICTURE_TYPE_I || in vc1_has_FIELDTX_bitplane() 104 (v->s.pict_type in vc1_has_FIELDTX_bitplane() [all...] |
H A D | nvdec_mpeg4.c | 56 .intra_pic_flag = s->pict_type == AV_PICTURE_TYPE_I, in nvdec_mpeg4_start_frame() 57 .ref_pic_flag = s->pict_type == AV_PICTURE_TYPE_I || in nvdec_mpeg4_start_frame() 58 s->pict_type == AV_PICTURE_TYPE_P || in nvdec_mpeg4_start_frame() 59 s->pict_type == AV_PICTURE_TYPE_S, in nvdec_mpeg4_start_frame() 75 .vop_coding_type = s->pict_type - AV_PICTURE_TYPE_I, in nvdec_mpeg4_start_frame() 85 .gmc_enabled = s->pict_type == AV_PICTURE_TYPE_S && in nvdec_mpeg4_start_frame()
|
H A D | rv10.c | 108 s->pict_type = AV_PICTURE_TYPE_P; in rv10_decode_picture_header() 110 s->pict_type = AV_PICTURE_TYPE_I; in rv10_decode_picture_header() 117 ff_dlog(s->avctx, "pict_type=%d pb_frame=%d\n", s->pict_type, pb_frame); in rv10_decode_picture_header() 130 if (s->pict_type == AV_PICTURE_TYPE_I) { in rv10_decode_picture_header() 168 s->pict_type = AV_PICTURE_TYPE_I; in rv20_decode_picture_header() 171 s->pict_type = AV_PICTURE_TYPE_I; in rv20_decode_picture_header() 174 s->pict_type = AV_PICTURE_TYPE_P; in rv20_decode_picture_header() 177 s->pict_type = AV_PICTURE_TYPE_B; in rv20_decode_picture_header() 184 if (s->low_delay && s->pict_type in rv20_decode_picture_header() [all...] |
H A D | vc1.c | 595 if (v->s.pict_type == AV_PICTURE_TYPE_BI || v->s.pict_type == AV_PICTURE_TYPE_B) { \ in rotate_luts() 647 v->s.pict_type = AV_PICTURE_TYPE_P; in ff_vc1_parse_frame_header() 650 v->s.pict_type = AV_PICTURE_TYPE_B; in ff_vc1_parse_frame_header() 652 v->s.pict_type = AV_PICTURE_TYPE_I; in ff_vc1_parse_frame_header() 656 if (v->s.pict_type == AV_PICTURE_TYPE_B) { in ff_vc1_parse_frame_header() 660 v->s.pict_type = AV_PICTURE_TYPE_BI; in ff_vc1_parse_frame_header() 663 if (v->s.pict_type == AV_PICTURE_TYPE_I || v->s.pict_type == AV_PICTURE_TYPE_BI) in ff_vc1_parse_frame_header() 670 if (v->s.pict_type in ff_vc1_parse_frame_header() [all...] |
H A D | h263dec.c | 276 if (s->pict_type != AV_PICTURE_TYPE_B) in decode_slice() 365 s->pict_type == AV_PICTURE_TYPE_I && in decode_slice() 394 if (s->msmpeg4_version && s->pict_type == AV_PICTURE_TYPE_I) in decode_slice() 555 if (s->pict_type != AV_PICTURE_TYPE_B && s->mb_num/2 > get_bits_left(&s->gb)) in ff_h263_decode_frame() 595 s->current_picture.f->pict_type = s->pict_type; in ff_h263_decode_frame() 596 s->current_picture.f->key_frame = s->pict_type == AV_PICTURE_TYPE_I; in ff_h263_decode_frame() 600 (s->pict_type == AV_PICTURE_TYPE_B || s->droppable)) in ff_h263_decode_frame() 603 s->pict_type == AV_PICTURE_TYPE_B) || in ff_h263_decode_frame() 605 s->pict_type ! in ff_h263_decode_frame() [all...] |
H A D | avs2_parser.c | 84 s->pict_type = AV_PICTURE_TYPE_I; in parse_avs2_seq_header() 147 s->pict_type = AV_PICTURE_TYPE_I; in parse_avs2_units() 154 s->pict_type = AV_PICTURE_TYPE_P; in parse_avs2_units() 156 s->pict_type = AV_PICTURE_TYPE_S; in parse_avs2_units() 158 s->pict_type = AV_PICTURE_TYPE_B; in parse_avs2_units()
|
H A D | mpegvideo_dec.c | 289 if (s->pict_type != AV_PICTURE_TYPE_B && s->last_picture_ptr && in ff_mpv_frame_start() 330 if (s->pict_type != AV_PICTURE_TYPE_B) in ff_mpv_frame_start() 352 s->current_picture_ptr->f->pict_type = s->pict_type; in ff_mpv_frame_start() 353 s->current_picture_ptr->f->key_frame = s->pict_type == AV_PICTURE_TYPE_I; in ff_mpv_frame_start() 359 if (s->pict_type != AV_PICTURE_TYPE_B) { in ff_mpv_frame_start() 369 s->pict_type, s->droppable); in ff_mpv_frame_start() 372 (s->pict_type != AV_PICTURE_TYPE_I)) { in ff_mpv_frame_start() 376 if (s->pict_type == AV_PICTURE_TYPE_B && s->next_picture_ptr && s->next_picture_ptr->f->buf[0]) in ff_mpv_frame_start() 379 else if (s->pict_type ! in ff_mpv_frame_start() [all...] |
H A D | avs3_parser.c | 79 s->pict_type = AV_PICTURE_TYPE_I; in parse_avs3_nal_units() 132 s->pict_type = AV_PICTURE_TYPE_I; in parse_avs3_nal_units() 138 s->pict_type = AV_PICTURE_TYPE_P; in parse_avs3_nal_units() 140 s->pict_type = AV_PICTURE_TYPE_B; in parse_avs3_nal_units()
|
H A D | flvdec.c | 84 s->pict_type = AV_PICTURE_TYPE_I + get_bits(&s->gb, 2); in ff_flv_decode_picture_header() 85 s->droppable = s->pict_type > AV_PICTURE_TYPE_P; in ff_flv_decode_picture_header() 87 s->pict_type = AV_PICTURE_TYPE_P; in ff_flv_decode_picture_header() 107 s->droppable ? 'D' : av_get_picture_type_char(s->pict_type), in ff_flv_decode_picture_header()
|
H A D | nvdec_mpeg12.c | 60 .intra_pic_flag = s->pict_type == AV_PICTURE_TYPE_I, in nvdec_mpeg12_start_frame() 61 .ref_pic_flag = s->pict_type == AV_PICTURE_TYPE_I || in nvdec_mpeg12_start_frame() 62 s->pict_type == AV_PICTURE_TYPE_P, in nvdec_mpeg12_start_frame() 68 .picture_coding_type = s->pict_type, in nvdec_mpeg12_start_frame()
|
H A D | svq3.c | 116 enum AVPictureType pict_type; member 724 if (s->pict_type == AV_PICTURE_TYPE_P || in svq3_decode_mb() 729 if (s->pict_type == AV_PICTURE_TYPE_B) in svq3_decode_mb() 796 if (s->pict_type != AV_PICTURE_TYPE_B) in svq3_decode_mb() 801 if (s->pict_type == AV_PICTURE_TYPE_P) { in svq3_decode_mb() 908 if (!IS_INTER(mb_type) && s->pict_type != AV_PICTURE_TYPE_I) { in svq3_decode_mb() 912 if (s->pict_type == AV_PICTURE_TYPE_B) { in svq3_decode_mb() 921 if (!IS_SKIP(mb_type) || s->pict_type == AV_PICTURE_TYPE_B) { in svq3_decode_mb() 926 (!IS_SKIP(mb_type) || s->pict_type == AV_PICTURE_TYPE_B)) { in svq3_decode_mb() 936 (s->pict_type ! in svq3_decode_mb() [all...] |
H A D | vaapi_mpeg4.c | 79 .vop_coding_type = s->pict_type - AV_PICTURE_TYPE_I, in vaapi_mpeg4_start_frame() 81 s->pict_type == AV_PICTURE_TYPE_B ? s->next_picture.f->pict_type - AV_PICTURE_TYPE_I : 0, in vaapi_mpeg4_start_frame() 102 if (s->pict_type == AV_PICTURE_TYPE_B) in vaapi_mpeg4_start_frame() 104 if (s->pict_type != AV_PICTURE_TYPE_I) in vaapi_mpeg4_start_frame()
|
H A D | h261dec.c | 548 s->pict_type = AV_PICTURE_TYPE_P; in h261_decode_picture_header() 638 s->current_picture.f->pict_type = s->pict_type; in h261_decode_frame() 639 s->current_picture.f->key_frame = s->pict_type == AV_PICTURE_TYPE_I; in h261_decode_frame() 641 if ((avctx->skip_frame >= AVDISCARD_NONREF && s->pict_type == AV_PICTURE_TYPE_B) || in h261_decode_frame() 642 (avctx->skip_frame >= AVDISCARD_NONKEY && s->pict_type != AV_PICTURE_TYPE_I) || in h261_decode_frame() 662 av_assert0(s->current_picture.f->pict_type == s->current_picture_ptr->f->pict_type); in h261_decode_frame() 663 av_assert0(s->current_picture.f->pict_type == s->pict_type); in h261_decode_frame() [all...] |
H A D | dxva2_vc1.c | 51 if (s->pict_type == AV_PICTURE_TYPE_P) { in fill_picture_parameters() 61 if (s->pict_type != AV_PICTURE_TYPE_I && !v->bi_type) in fill_picture_parameters() 65 if (s->pict_type == AV_PICTURE_TYPE_B && !v->bi_type) in fill_picture_parameters() 88 pp->bPicIntra = s->pict_type == AV_PICTURE_TYPE_I || v->bi_type; in fill_picture_parameters() 89 pp->bPicBackwardPrediction = s->pict_type == AV_PICTURE_TYPE_B && !v->bi_type; in fill_picture_parameters() 128 ((s->pict_type != AV_PICTURE_TYPE_B) << 2) | in fill_picture_parameters() 131 if (s->pict_type != AV_PICTURE_TYPE_I) in fill_picture_parameters() 177 slice->bReservedBits = (s->pict_type == AV_PICTURE_TYPE_B && !v->bi_type) ? v->bfraction_lut_index + 9 : 0; in fill_slice()
|
H A D | cavsdec.c | 650 if (h->cur.f->pict_type != AV_PICTURE_TYPE_B) in set_mv_intra() 690 if (h->cur.f->pict_type == AV_PICTURE_TYPE_I) in decode_mb_i() 947 if ((h->cur.f->pict_type != AV_PICTURE_TYPE_I) || in decode_slice_header() 999 h->cur.f->pict_type = get_bits(&h->gb, 2) + AV_PICTURE_TYPE_I; in decode_pic() 1000 if (h->cur.f->pict_type > AV_PICTURE_TYPE_B) { in decode_pic() 1006 (!h->DPB[1].f->data[0] && h->cur.f->pict_type == AV_PICTURE_TYPE_B)) in decode_pic() 1009 h->cur.f->pict_type = AV_PICTURE_TYPE_I; in decode_pic() 1023 ret = ff_get_buffer(h->avctx, h->cur.f, h->cur.f->pict_type == AV_PICTURE_TYPE_B ? in decode_pic() 1040 if (h->cur.f->pict_type != AV_PICTURE_TYPE_B) { in decode_pic() 1048 if (h->cur.f->pict_type in decode_pic() [all...] |
H A D | vp3_parser.c | 29 s->pict_type = (buf[0] & 0x40) ? AV_PICTURE_TYPE_P : AV_PICTURE_TYPE_I; in parse() 31 s->pict_type = (buf[0] & 0x80) ? AV_PICTURE_TYPE_P : AV_PICTURE_TYPE_I; in parse()
|
H A D | av1_parser.c | 67 ctx->pict_type = AV_PICTURE_TYPE_NONE; in av1_parser_parse() 123 ctx->pict_type = AV_PICTURE_TYPE_I; in av1_parser_parse() 126 ctx->pict_type = AV_PICTURE_TYPE_P; in av1_parser_parse() 129 ctx->pict_type = AV_PICTURE_TYPE_SP; in av1_parser_parse()
|
H A D | libdavs2.c | 98 frame->pict_type = AV_PICTURE_TYPE_I; in davs2_dump_frames() 102 frame->pict_type = AV_PICTURE_TYPE_P; in davs2_dump_frames() 105 frame->pict_type = AV_PICTURE_TYPE_B; in davs2_dump_frames() 108 frame->pict_type = AV_PICTURE_TYPE_S; in davs2_dump_frames()
|
H A D | vc1_parser.c | 87 if (vpc->v.s.pict_type == AV_PICTURE_TYPE_BI) in vc1_extract_header() 88 s->pict_type = AV_PICTURE_TYPE_B; in vc1_extract_header() 90 s->pict_type = vpc->v.s.pict_type; in vc1_extract_header()
|
H A D | wmv2enc.c | 97 put_bits(&s->pb, 1, s->pict_type - 1); in ff_wmv2_encode_picture_header() 98 if (s->pict_type == AV_PICTURE_TYPE_I) in ff_wmv2_encode_picture_header() 112 if (s->pict_type == AV_PICTURE_TYPE_I) { in ff_wmv2_encode_picture_header() 210 if (s->pict_type == AV_PICTURE_TYPE_I) in ff_wmv2_encode_mb()
|
H A D | libkvazaar.c | 175 int pict_type; in libkvazaar_encode() local 271 pict_type = AV_PICTURE_TYPE_I; in libkvazaar_encode() 274 pict_type = AV_PICTURE_TYPE_P; in libkvazaar_encode() 277 pict_type = AV_PICTURE_TYPE_B; in libkvazaar_encode() 284 ff_side_data_set_encoder_stats(avpkt, frame_info.qp * FF_QP2LAMBDA, NULL, 0, pict_type); in libkvazaar_encode()
|
H A D | svq1enc.c | 273 if (s->pict_type == AV_PICTURE_TYPE_P) { in svq1_encode_plane() 289 s->m.pict_type = s->pict_type; in svq1_encode_plane() 386 if (s->pict_type == AV_PICTURE_TYPE_I || in svq1_encode_plane() 392 if (s->pict_type == AV_PICTURE_TYPE_P) { in svq1_encode_plane() 408 if (s->pict_type == AV_PICTURE_TYPE_P) { in svq1_encode_plane() 619 s->pict_type = AV_PICTURE_TYPE_P; in svq1_encode_frame() 621 s->pict_type = AV_PICTURE_TYPE_I; in svq1_encode_frame() 624 ff_side_data_set_encoder_stats(pkt, pict->quality, NULL, 0, s->pict_type); in svq1_encode_frame() 626 svq1_write_header(s, s->pict_type); in svq1_encode_frame() [all...] |
H A D | vp9_parser.c | 57 ctx->pict_type = AV_PICTURE_TYPE_P; in parse() 60 ctx->pict_type = AV_PICTURE_TYPE_I; in parse()
|