avcodec/pngdec: fix some indentation/whitespaces
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
6499e63f7b
commit
c25b6ae8a2
@ -820,7 +820,7 @@ skip_tag:
|
||||
}
|
||||
exit_loop:
|
||||
|
||||
if (s->bits_per_pixel == 1 && s->color_type == PNG_COLOR_TYPE_PALETTE){
|
||||
if (s->bits_per_pixel == 1 && s->color_type == PNG_COLOR_TYPE_PALETTE) {
|
||||
int i, j, k;
|
||||
uint8_t *pd = p->data[0];
|
||||
for (j = 0; j < s->height; j++) {
|
||||
@ -846,7 +846,7 @@ exit_loop:
|
||||
uint8_t *pd = p->data[0];
|
||||
for (j = 0; j < s->height; j++) {
|
||||
i = s->width / 4;
|
||||
if (s->color_type == PNG_COLOR_TYPE_PALETTE){
|
||||
if (s->color_type == PNG_COLOR_TYPE_PALETTE) {
|
||||
if ((s->width&3) >= 3) pd[4*i + 2]= (pd[i] >> 2) & 3;
|
||||
if ((s->width&3) >= 2) pd[4*i + 1]= (pd[i] >> 4) & 3;
|
||||
if ((s->width&3) >= 1) pd[4*i + 0]= pd[i] >> 6;
|
||||
@ -875,7 +875,7 @@ exit_loop:
|
||||
uint8_t *pd = p->data[0];
|
||||
for (j = 0; j < s->height; j++) {
|
||||
i = s->width/2;
|
||||
if (s->color_type == PNG_COLOR_TYPE_PALETTE){
|
||||
if (s->color_type == PNG_COLOR_TYPE_PALETTE) {
|
||||
if (s->width&1) pd[2*i+0]= pd[i]>>4;
|
||||
for (i--; i >= 0; i--) {
|
||||
pd[2*i + 1] = pd[i] & 15;
|
||||
|
Loading…
x
Reference in New Issue
Block a user