struct pipe_sampler_view *sampler_views[4];
struct pipe_surface **dst_surfaces;
const unsigned *plane_order;
- int i, j;
+ int i;
+ unsigned j;
assert(filter && prevprev && prev && cur && next && field <= 1);
create_stage1_frag_shader(struct vl_idct *idct)
{
struct ureg_program *shader;
-
struct ureg_src l_addr[2], r_addr[2];
-
struct ureg_dst l[4][2], r[2];
struct ureg_dst *fragment;
-
- int i, j;
+ unsigned i;
+ int j;
shader = ureg_create(PIPE_SHADER_FRAGMENT);
if (!shader)
struct ureg_dst t_sum;
struct ureg_dst o_fragment;
bool first;
- int i;
+ unsigned i;
shader = ureg_create(PIPE_SHADER_FRAGMENT);
if (!shader) {
struct ureg_dst *t_array = MALLOC(sizeof(struct ureg_dst) * num_offsets);
struct ureg_dst o_fragment;
const unsigned median = num_offsets >> 1;
- int i, j;
+ unsigned i, j;
assert(num_offsets & 1); /* we need an odd number of offsets */
if (!(num_offsets & 1)) { /* yeah, we REALLY need an odd number of offsets!!! */
generate_offsets(enum vl_median_filter_shape shape, unsigned size,
struct vertex2f **offsets, unsigned *num_offsets)
{
- int i = 0, half_size;
+ unsigned i = 0;
+ int half_size;
struct vertex2f v;
assert(offsets && num_offsets);
break;
}
- for(i=0; i<(1 << (17 - coeff.length)); ++i)
+ for(i = 0; i < (1u << (17 - coeff.length)); ++i)
dst[src->bitcode << 1 | i] = coeff;
if (has_sign) {
coeff.level = -coeff.level;
- for(; i<(1 << (18 - coeff.length)); ++i)
+ for(; i < (1u << (18 - coeff.length)); ++i)
dst[src->bitcode << 1 | i] = coeff;
}
}
}
for(; src_size > 0; --src_size, ++src) {
- for(i=0; i<(1 << (bits - src->entry.length)); ++i)
+ for(i = 0; i < (1u << (bits - src->entry.length)); ++i)
dst[src->bitcode >> (16 - bits) | i] = src->entry;
}
}
{
/* make sure we are on a byte boundary */
assert((vl_vlc_valid_bits(vlc) % 8) == 0);
- assert(num_bits == ~0 || (num_bits % 8) == 0);
+ assert(num_bits == ~0u || (num_bits % 8) == 0);
/* deplete the bit buffer */
while (vl_vlc_valid_bits(vlc) > 0) {
vl_vlc_eatbits(vlc, 8);
- if (num_bits != ~0) {
+ if (num_bits != ~0u) {
num_bits -= 8;
if (num_bits == 0)
return FALSE;
}
++vlc->data;
- if (num_bits != ~0) {
+ if (num_bits != ~0u) {
num_bits -= 8;
if (num_bits == 0) {
vl_vlc_align_data_ptr(vlc);
create_vert_shader(struct vl_zscan *zscan)
{
struct ureg_program *shader;
-
struct ureg_src scale;
struct ureg_src vrect, vpos, block_num;
-
struct ureg_dst tmp;
struct ureg_dst o_vpos;
struct ureg_dst *o_vtex;
-
- signed i;
+ unsigned i;
shader = ureg_create(PIPE_SHADER_VERTEX);
if (!shader)