History

avcodec/vc1: Remove write-only qs_last

Write-only since 9cc74c9f6e8b645e67d45b2070db004caca09af7.

Andreas Rheinhardt committed 1 year ago

Commit 728ef221 parent 6ce86c92 files · +0 −8Browse files

Showing the changes to libavcodec (2 of 2 files). Show all

Unified · Split

2 files
  1. libavcodec/vc1.c +0 −7
  2. libavcodec/vc1.h +0 −1
libavcodec/vc1.c+0−7
@@ -724,7 +724,6 @@ int ff_vc1_parse_frame_header(VC1Context *v, GetBitContext* gb) · 723 unmodified lines
724724 INIT_LUT(v->lumscale, v->lumshift, v->last_luty[0], v->last_lutuv[0], 1);
725725 INIT_LUT(v->lumscale, v->lumshift, v->last_luty[1], v->last_lutuv[1], 1);
726726 }
727− v->qs_last = v->s.quarter_sample;
728727 if (v->mv_mode == MV_PMODE_INTENSITY_COMP) {
729728 v->s.quarter_sample = (v->mv_mode2 != MV_PMODE_1MV_HPEL &&
730729 v->mv_mode2 != MV_PMODE_1MV_HPEL_BILIN);
@@ -781,7 +780,6 @@ int ff_vc1_parse_frame_header(VC1Context *v, GetBitContext* gb) · 50 unmodified lines
781780 v->tt_index = (v->pq > 4) + (v->pq > 12);
782781
783782 v->mv_mode = get_bits1(gb) ? MV_PMODE_1MV : MV_PMODE_1MV_HPEL_BILIN;
784− v->qs_last = v->s.quarter_sample;
785783 v->s.quarter_sample = (v->mv_mode == MV_PMODE_1MV);
786784 v->s.mspel = v->s.quarter_sample;
787785
@@ -1119,7 +1117,6 @@ int ff_vc1_parse_frame_header_adv(VC1Context *v, GetBitContext* gb) · 331 unmodified lines
11191117 }
11201118 v->last_use_ic = 1;
11211119 }
1122− v->qs_last = v->s.quarter_sample;
11231120 if (v->mv_mode == MV_PMODE_INTENSITY_COMP) {
11241121 v->s.quarter_sample = (v->mv_mode2 != MV_PMODE_1MV_HPEL &&
11251122 v->mv_mode2 != MV_PMODE_1MV_HPEL_BILIN);
@@ -1154,7 +1151,6 @@ int ff_vc1_parse_frame_header_adv(VC1Context *v, GetBitContext* gb) · 28 unmodified lines
11541151 v->cbptab = get_bits(gb, 2);
11551152 v->cbpcy_vlc = ff_vc1_cbpcy_p_vlc[v->cbptab];
11561153 } else if (v->fcm == ILACE_FRAME) { // frame interlaced
1157− v->qs_last = v->s.quarter_sample;
11581154 v->s.quarter_sample = 1;
11591155 v->s.mspel = 1;
11601156 } else { // field interlaced
@@ -1218,7 +1214,6 @@ int ff_vc1_parse_frame_header_adv(VC1Context *v, GetBitContext* gb) · 57 unmodified lines
12181214 mvmode = get_unary(gb, 1, 3);
12191215 lowquant = (v->pq > 12) ? 0 : 1;
12201216 v->mv_mode = ff_vc1_mv_pmode_table2[lowquant][mvmode];
1221− v->qs_last = v->s.quarter_sample;
12221217 v->s.quarter_sample = (v->mv_mode == MV_PMODE_1MV || v->mv_mode == MV_PMODE_MIXED_MV);
12231218 v->s.mspel = (v->mv_mode != MV_PMODE_1MV_HPEL_BILIN);
12241219 status = bitplane_decoding(v->forward_mb_plane, &v->fmb_is_raw, v);
@@ -1248,7 +1243,6 @@ int ff_vc1_parse_frame_header_adv(VC1Context *v, GetBitContext* gb) · 23 unmodified lines
12481243 v->intcomp = 0;
12491244 v->mv_mode = MV_PMODE_1MV;
12501245 v->fourmvswitch = 0;
1251− v->qs_last = v->s.quarter_sample;
12521246 v->s.quarter_sample = 1;
12531247 v->s.mspel = 1;
12541248 status = bitplane_decoding(v->direct_mb_plane, &v->dmb_is_raw, v);
@@ -1274,7 +1268,6 @@ int ff_vc1_parse_frame_header_adv(VC1Context *v, GetBitContext* gb) · 19 unmodified lines
12741268 v->fourmvbp_vlc = ff_vc1_4mv_block_pattern_vlc[v->fourmvbptab];
12751269 } else {
12761270 v->mv_mode = get_bits1(gb) ? MV_PMODE_1MV : MV_PMODE_1MV_HPEL_BILIN;
1277− v->qs_last = v->s.quarter_sample;
12781271 v->s.quarter_sample = (v->mv_mode == MV_PMODE_1MV);
12791272 v->s.mspel = v->s.quarter_sample;
12801273 status = bitplane_decoding(v->direct_mb_plane, &v->dmb_is_raw, v);
libavcodec/vc1.h+0−1
@@ -365,7 +365,6 @@ typedef struct VC1Context{ · 364 unmodified lines
365365 int cur_field_type; ///< 0: top, 1: bottom
366366 int ref_field_type[2]; ///< forward and backward reference field type (top or bottom)
367367 int blocks_off, mb_off;
368− int qs_last; ///< if qpel has been used in the previous (tr.) picture
369368 int bmvtype;
370369 int frfd, brfd; ///< reference frame distance (forward or backward)
371370 int first_pic_header_flag;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t