[MPlayer-cvslog] r32411 - trunk/spudec.c
reimar
subversion at mplayerhq.hu
Wed Sep 29 21:06:03 CEST 2010
Author: reimar
Date: Wed Sep 29 21:06:03 2010
New Revision: 32411
Log:
Reindent.
Modified:
trunk/spudec.c
Modified: trunk/spudec.c
==============================================================================
--- trunk/spudec.c Wed Sep 29 21:05:13 2010 (r32410)
+++ trunk/spudec.c Wed Sep 29 21:06:03 2010 (r32411)
@@ -1368,20 +1368,20 @@ void spudec_set_paletted(void *this, con
packet->start_row = y;
packet->data_len = 2 * stride * h;
if (packet->data_len) { // size 0 is a special "clear" packet
- packet->packet = malloc(packet->data_len);
- img = packet->packet;
- aimg = packet->packet + stride * h;
- for (i = 0; i < 256; i++) {
- uint32_t pixel = pal[i];
- int alpha = pixel >> 24;
- int gray = (((pixel & 0x000000ff) >> 0) +
- ((pixel & 0x0000ff00) >> 7) +
- ((pixel & 0x00ff0000) >> 16)) >> 2;
- gray = FFMIN(gray, alpha);
- g8a8_pal[i] = (-alpha << 8) | gray;
- }
- pal2gray_alpha(g8a8_pal, pal_img, pal_stride,
- img, aimg, stride, w, h);
+ packet->packet = malloc(packet->data_len);
+ img = packet->packet;
+ aimg = packet->packet + stride * h;
+ for (i = 0; i < 256; i++) {
+ uint32_t pixel = pal[i];
+ int alpha = pixel >> 24;
+ int gray = (((pixel & 0x000000ff) >> 0) +
+ ((pixel & 0x0000ff00) >> 7) +
+ ((pixel & 0x00ff0000) >> 16)) >> 2;
+ gray = FFMIN(gray, alpha);
+ g8a8_pal[i] = (-alpha << 8) | gray;
+ }
+ pal2gray_alpha(g8a8_pal, pal_img, pal_stride,
+ img, aimg, stride, w, h);
}
packet->start_pts = 0;
packet->end_pts = 0x7fffffff;
More information about the MPlayer-cvslog
mailing list