33 int buf_size = avpkt->
size;
37 int i, j, n, linesize, h, upgrade = 0;
39 int components, sample_len;
89 n = (avctx->
width + 7) >> 3;
98 for (i=0; i<avctx->
height; i++) {
101 for(j=0; j<avctx->
width * components; j++){
118 for (i = 0; i < avctx->
height; i++) {
121 else if (upgrade == 1) {
122 unsigned int j, f = (255 * 128 + s->
maxval / 2) / s->
maxval;
123 for (j = 0; j < n; j++)
125 }
else if (upgrade == 2) {
126 unsigned int j, v, f = (65535 * 32768 + s->
maxval / 2) / s->
maxval;
127 for (j = 0; j < n / 2; j++) {
129 ((uint16_t *)ptr)[j] = (v * f + 16384) >> 15;
139 unsigned char *ptr1, *ptr2;
146 for (i = 0; i < avctx->
height; i++) {
155 for (i = 0; i < h; i++) {
170 for (i = 0; i < avctx->
height; i++) {
173 for (j = 0; j < avctx->
width; j++) {
178 ((uint32_t *)ptr)[j] = (a << 24) | (r << 16) | (g << 8) | b;
191 #if CONFIG_PGM_DECODER
200 .capabilities = CODEC_CAP_DR1,
205 #if CONFIG_PGMYUV_DECODER
214 .capabilities = CODEC_CAP_DR1,
219 #if CONFIG_PPM_DECODER
228 .capabilities = CODEC_CAP_DR1,
233 #if CONFIG_PBM_DECODER
242 .capabilities = CODEC_CAP_DR1,
247 #if CONFIG_PAM_DECODER
256 .capabilities = CODEC_CAP_DR1,