Lines Matching refs:outbuf
32 * @param outbuf Output buffer
40 static int targa_encode_rle(uint8_t *outbuf, int out_size, AVFrame *pic,
46 out = outbuf;
57 return out - outbuf;
60 static int targa_encode_normal(uint8_t *outbuf, AVFrame *pic, int bpp, int w, int h)
63 uint8_t *out = outbuf;
72 return out - outbuf;
76 unsigned char *outbuf,
96 memset(outbuf, 0, 12);
97 AV_WL16(outbuf+12, avctx->width);
98 AV_WL16(outbuf+14, avctx->height);
99 outbuf[17] = 0x20; /* origin is top-left. no alpha */
104 outbuf[2] = 3; /* uncompressed grayscale image */
105 outbuf[16] = 8; /* bpp */
108 outbuf[2] = 2; /* uncompresses true-color image */
109 outbuf[16] = 16; /* bpp */
112 outbuf[2] = 2; /* uncompressed true-color image */
113 outbuf[16] = 24; /* bpp */
118 bpp = outbuf[16] >> 3;
120 out = outbuf + 18; /* skip past the header we just output */
127 outbuf[2] |= 8;
139 return out + 26 - outbuf;