History

avcodec/rv60: consistent indentation

Peter Ross committed 1 year ago

Commit 7b3bc4a1 parent f7e7d631 file · +8 −8Browse files

Unified · Split

libavcodec/rv60dec.c+8−8
@@ -309,8 +309,8 @@ static int update_dimensions_clear_info(RV60Context *s, int width, int height) · 308 unmodified lines
309309 return ret;
310310
311311 for (int j = 0; j < s->cu_height << 4; j++)
312− for (int i = 0; i < s->cu_width << 4; i++)
313− s->blk_info[j*s->blk_stride + i].mv.mvref = MVREF_NONE;
312+ for (int i = 0; i < s->cu_width << 4; i++)
313+ s->blk_info[j*s->blk_stride + i].mv.mvref = MVREF_NONE;
314314
315315 if (s->deblock) {
316316 int size;
@@ -335,7 +335,7 @@ static int update_dimensions_clear_info(RV60Context *s, int width, int height) · 18 unmodified lines
335335 static int read_code012(GetBitContext * gb)
336336 {
337337 if (!get_bits1(gb))
338− return 0;
338+ return 0;
339339 return get_bits1(gb) + 1;
340340 }
341341
@@ -1400,10 +1400,10 @@ static void avg_plane(uint8_t * dst, int dst_stride, const uint8_t * src, int sr · 1058 unmodified lines
14001400 static void avg(AVFrame * frame, uint8_t * prev_frame_data[3], int prev_frame_linesize[3], int x, int y, int w, int h)
14011401 {
14021402 for (int plane = 0; plane < 3; plane++) {
1403− int shift = !plane ? 0 : 1;
1404− avg_plane(frame->data[plane] + (y >> shift) * frame->linesize[plane] + (x >> shift), frame->linesize[plane],
1405− prev_frame_data[plane], prev_frame_linesize[plane],
1406− w >> shift, h >> shift);
1403+ int shift = !plane ? 0 : 1;
1404+ avg_plane(frame->data[plane] + (y >> shift) * frame->linesize[plane] + (x >> shift), frame->linesize[plane],
1405+ prev_frame_data[plane], prev_frame_linesize[plane],
1406+ w >> shift, h >> shift);
14071407 }
14081408 }
14091409
@@ -2151,7 +2151,7 @@ static void deblock_cu_r(RV60Context * s, AVFrame * frame, ThreadContext * threa · 741 unmodified lines
21512151 enum CUType cu_type;
21522152
21532153 if (xpos >= s->awidth || ypos >= s->aheight)
2154− return;
2154+ return;
21552155
21562156 if (thread->cu_split[thread->cu_split_pos++]) {
21572157 int hsize = 1 << (log_size - 1);

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