Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 98efd552 authored by Hans Verkuil's avatar Hans Verkuil Committed by Mauro Carvalho Chehab
Browse files

media: vicodec: simplify blocktype checking



Simplify some blocktype/is_intra checks.

Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+samsung@kernel.org>
parent 56ba4d03
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -663,11 +663,10 @@ static u32 encode_plane(u8 *input, u8 *refp, __be16 **rlco, __be16 *rlco_max,
			if (!is_intra)
				blocktype = decide_blocktype(input, refp,
					deltablock, width, input_step);
			if (is_intra || blocktype == IBLOCK) {
			if (blocktype == IBLOCK) {
				fwht(input, cf->coeffs, width, input_step, 1);
				quantize_intra(cf->coeffs, cf->de_coeffs,
					       cf->i_frame_qp);
				blocktype = IBLOCK;
			} else {
				/* inter code */
				encoding |= FRAME_PCODED;