Lines Matching defs:bpp
37 int bpp;
42 static void targa_decode_rle(AVCodecContext *avctx, TargaContext *s, const uint8_t *src, uint8_t *dst, int w, int h, int stride, int bpp)
45 int depth = (bpp + 1) >> 3;
101 int idlen, pal, compr, x, y, w, h, bpp, flags;
115 bpp = *buf++;
119 s->bpp = bpp;
122 switch(s->bpp){
139 av_log(avctx, AV_LOG_ERROR, "Bit depth %i is not supported\n", s->bpp);
197 targa_decode_rle(avctx, s, buf, dst, avctx->width, avctx->height, stride, bpp);
201 if((s->bpp + 1) >> 3 == 2){
205 }else if((s->bpp + 1) >> 3 == 4){
211 memcpy(dst, buf, s->width * ((s->bpp + 1) >> 3));
214 buf += s->width * ((s->bpp + 1) >> 3);