Searched refs:bytes_per_channel (Results 1 – 2 of 2) sorted by relevance
101 unsigned int bytes_per_channel, pixmax, put_be; in encode_frame() local119 bytes_per_channel = 1; in encode_frame()139 bytes_per_channel = 2; in encode_frame()147 bytes_per_channel = 2; in encode_frame()155 bytes_per_channel = 2; in encode_frame()171 if ((ret = ff_alloc_packet2(avctx, pkt, bytes_per_channel * length, 0)) < 0) in encode_frame()179 bytestream2_put_byte(&pbc, bytes_per_channel); in encode_frame()212 if (!(encode_buf = av_malloc(width * bytes_per_channel))) in encode_frame()216 in_buf = p->data[0] + p->linesize[0] * (height - 1) + z * bytes_per_channel; in encode_frame()221 for (x = 0; x < width * bytes_per_channel; x += bytes_per_channel) in encode_frame()[all …]
34 unsigned int bytes_per_channel; member152 if (s->bytes_per_channel == 1) in read_rle_sgi()172 unsigned int offset = s->height * s->width * s->bytes_per_channel; in read_uncompressed_sgi()188 if (s->bytes_per_channel == 1) { in read_uncompressed_sgi()225 s->bytes_per_channel = bytestream2_get_byteu(&s->g); in decode_frame()231 if (s->bytes_per_channel != 1 && s->bytes_per_channel != 2) { in decode_frame()243 avctx->pix_fmt = s->bytes_per_channel == 2 ? AV_PIX_FMT_GRAY16BE : AV_PIX_FMT_GRAY8; in decode_frame()245 avctx->pix_fmt = s->bytes_per_channel == 2 ? AV_PIX_FMT_RGB48BE : AV_PIX_FMT_RGB24; in decode_frame()247 avctx->pix_fmt = s->bytes_per_channel == 2 ? AV_PIX_FMT_RGBA64BE : AV_PIX_FMT_RGBA; in decode_frame()