Home
last modified time | relevance | path

Searched refs:bytes_per_channel (Results 1 - 6 of 6) sorted by relevance

/third_party/ffmpeg/libavcodec/
H A Dsgienc.c102 unsigned int bytes_per_channel, pixmax, put_be; in encode_frame() local
106 bytes_per_channel = 1; in encode_frame()
126 bytes_per_channel = 2; in encode_frame()
134 bytes_per_channel = 2; in encode_frame()
142 bytes_per_channel = 2; in encode_frame()
158 if ((ret = ff_alloc_packet(avctx, pkt, bytes_per_channel * length)) < 0) in encode_frame()
166 bytestream2_put_byte(&pbc, bytes_per_channel); in encode_frame()
199 if (!(encode_buf = av_malloc(width * bytes_per_channel))) in encode_frame()
203 in_buf = p->data[0] + p->linesize[0] * (height - 1) + z * bytes_per_channel; in encode_frame()
208 for (x = 0; x < width * bytes_per_channel; in encode_frame()
[all...]
H A Dsgidec.c34 unsigned int bytes_per_channel; member
152 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()
223 s->bytes_per_channel = bytestream2_get_byteu(&s->g); in decode_frame()
229 if (s->bytes_per_channel != 1 && s->bytes_per_channel != 2) { in decode_frame()
241 avctx->pix_fmt = s->bytes_per_channel == 2 ? AV_PIX_FMT_GRAY16BE : AV_PIX_FMT_GRAY8; in decode_frame()
243 avctx->pix_fmt = s->bytes_per_channel == 2 ? AV_PIX_FMT_RGB48BE : AV_PIX_FMT_RGB24; in decode_frame()
245 avctx->pix_fmt = s->bytes_per_channel in decode_frame()
[all...]
/third_party/backends/backend/
H A Davision.h759 uint8_t bytes_per_channel; member
H A Dmustek.c2706 SANE_Int i, j, table = 0, len = 0, bytes_per_channel, num_channels = 1; in gamma_correction() local
2770 bytes_per_channel = 4096; in gamma_correction()
2771 len = bytes_per_channel; in gamma_correction()
2796 bytes_per_channel = 256; in gamma_correction()
2797 len = num_channels * bytes_per_channel; in gamma_correction()
2819 for (i = 0; i < bytes_per_channel; ++i) in gamma_correction()
2822 val = s->gamma_table[table][i * 256 / bytes_per_channel]; in gamma_correction()
2824 val = i * 256 / bytes_per_channel; in gamma_correction()
H A Dhp3900_rts8822.c14545 SANE_Int bytes_per_channel; in WShading_Calibrate() local
14547 bytes_per_channel = (myscancfg->depth > 8) ? 2 : 1; in WShading_Calibrate()
14554 wshading->count = bytes_per_line / bytes_per_channel; in WShading_Calibrate()
14573 ((x * bytes_per_channel) + in WShading_Calibrate()
14574 (bytes_per_line * y)), bytes_per_channel); in WShading_Calibrate()
14585 data_lsb_set (avg_colors + (x * bytes_per_channel), a, in WShading_Calibrate()
14586 bytes_per_channel); in WShading_Calibrate()
14596 data_lsb_get (avg_colors + (x * bytes_per_channel), in WShading_Calibrate()
14597 bytes_per_channel); in WShading_Calibrate()
14628 data_lsb_get (pattern + (x * bytes_per_channel), in WShading_Calibrate()
[all...]
H A Davision.c5196 format->bytes_per_channel = result[2]; in get_calib_format()
5421 const size_t stride = format->bytes_per_channel * elements_per_line; in sort_and_average()
5444 uint8_t* ptr1 = data + i * format->bytes_per_channel; in sort_and_average()
5451 if (format->bytes_per_channel == 1) in sort_and_average()
5628 /* size = lines * bytes_per_channel * pixels_per_line * channel */ in normal_calibration()
5629 calib_bytes_per_line = calib_format.bytes_per_channel * in normal_calibration()
5686 write_pnm_header (f, AV_GRAYSCALE, calib_format.bytes_per_channel * 8, in normal_calibration()

Completed in 32 milliseconds