Home
last modified time | relevance | path

Searched refs:bytes_per_channel (Results 1 – 25 of 127) sorted by relevance

123456

/dports/multimedia/handbrake/ffmpeg-4.4/libavcodec/
H A Dsgienc.c101 unsigned int bytes_per_channel, pixmax, put_be; in encode_frame() local
119 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()
179 bytestream2_put_byte(&pbc, bytes_per_channel); in encode_frame()
212 if (!(encode_buf = av_malloc(width * bytes_per_channel))) in encode_frame()
221 for (x = 0; x < width * bytes_per_channel; x += bytes_per_channel) in encode_frame()
222 if (bytes_per_channel == 1) { in encode_frame()
233 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()
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()
/dports/multimedia/ffmpeg/ffmpeg-4.4.1/libavcodec/
H A Dsgienc.c101 unsigned int bytes_per_channel, pixmax, put_be; in encode_frame() local
119 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()
179 bytestream2_put_byte(&pbc, bytes_per_channel); in encode_frame()
212 if (!(encode_buf = av_malloc(width * bytes_per_channel))) in encode_frame()
221 for (x = 0; x < width * bytes_per_channel; x += bytes_per_channel) in encode_frame()
222 if (bytes_per_channel == 1) { in encode_frame()
233 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()
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()
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/ffmpeg/libavcodec/
H A Dsgienc.c101 unsigned int bytes_per_channel, pixmax, put_be; in encode_frame() local
119 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()
179 bytestream2_put_byte(&pbc, bytes_per_channel); in encode_frame()
212 if (!(encode_buf = av_malloc(width * bytes_per_channel))) in encode_frame()
221 for (x = 0; x < width * bytes_per_channel; x += bytes_per_channel) in encode_frame()
222 if (bytes_per_channel == 1) { in encode_frame()
233 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()
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()
/dports/multimedia/gstreamer1-libav/gst-libav-1.16.2/gst-libs/ext/libav/libavcodec/
H A Dsgienc.c101 unsigned int bytes_per_channel, pixmax, put_be; in encode_frame() local
119 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()
221 for (x = 0; x < width * bytes_per_channel; x += bytes_per_channel) in encode_frame()
225 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()
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()
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/third_party/ffmpeg/libavcodec/
H A Dsgienc.c101 unsigned int bytes_per_channel, pixmax, put_be; in encode_frame() local
119 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()
221 for (x = 0; x < width * bytes_per_channel; x += bytes_per_channel) in encode_frame()
225 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()
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()
/dports/emulators/vice/vice-3.5/src/lib/libffmpeg/libavcodec/
H A Dsgidec.c34 unsigned int bytes_per_channel; member
148 linesize = s->width * s->depth * s->bytes_per_channel; in read_rle_sgi()
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()
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()
H A Dsgienc.c54 unsigned int bytes_per_channel, pixmax, put_be; in encode_frame() local
62 bytes_per_channel = 1; in encode_frame()
83 bytes_per_channel = 2; in encode_frame()
92 bytes_per_channel = 2; in encode_frame()
101 bytes_per_channel = 2; in encode_frame()
117 if ((ret = ff_alloc_packet2(avctx, pkt, bytes_per_channel * length)) < 0) in encode_frame()
125 bytestream_put_byte(&buf, bytes_per_channel); in encode_frame()
182 in_buf = p->data[0] + p->linesize[0] * (height - 1) + z * bytes_per_channel; in encode_frame()
186 if (bytes_per_channel == 1) { in encode_frame()
/dports/emulators/libretro-vice/vice-libretro-5725415/vice/src/lib/libffmpeg/libavcodec/
H A Dsgidec.c34 unsigned int bytes_per_channel; member
148 linesize = s->width * s->depth * s->bytes_per_channel; in read_rle_sgi()
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()
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()
H A Dsgienc.c54 unsigned int bytes_per_channel, pixmax, put_be; in encode_frame() local
62 bytes_per_channel = 1; in encode_frame()
83 bytes_per_channel = 2; in encode_frame()
92 bytes_per_channel = 2; in encode_frame()
101 bytes_per_channel = 2; in encode_frame()
117 if ((ret = ff_alloc_packet2(avctx, pkt, bytes_per_channel * length)) < 0) in encode_frame()
125 bytestream_put_byte(&buf, bytes_per_channel); in encode_frame()
182 in_buf = p->data[0] + p->linesize[0] * (height - 1) + z * bytes_per_channel; in encode_frame()
186 if (bytes_per_channel == 1) { in encode_frame()
/dports/graphics/gscan2pdf/gscan2pdf-2.12.4/lib/Gscan2pdf/
H A DNetPBM.pm19 my ( $magic_value, $width, $height, $bytes_per_channel, $header ) =
27 my $datasize = $padded_width * $height * $bytes_per_channel * (
43 my $bytes_per_channel = 1;
64 $bytes_per_channel = log( $maxval + 1 ) / log(2) / $BITS_PER_BYTE;
73 return $magic_value, $width, $height, $bytes_per_channel, length $header;
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/media/base/
H A Daudio_buffer.cc78 int bytes_per_channel = SampleFormatToBytesPerChannel(sample_format); in AudioBuffer() local
79 DCHECK_LE(bytes_per_channel, kChannelAlignment); in AudioBuffer()
87 int data_size_per_channel = frame_count * bytes_per_channel; in AudioBuffer()
329 int bytes_per_channel = SampleFormatToBytesPerChannel(sample_format_); in ReadFrames() local
330 int frame_size = channel_count_ * bytes_per_channel; in ReadFrames()
333 bytes_per_channel); in ReadFrames()
375 const int bytes_per_channel = SampleFormatToBytesPerChannel(sample_format_); in TrimRange() local
385 memmove(channel_data_[ch] + start * bytes_per_channel, in TrimRange()
386 channel_data_[ch] + end * bytes_per_channel, in TrimRange()
387 bytes_per_channel * frames_to_copy); in TrimRange()
[all …]
H A Daudio_decoder_config.cc69 (bytes_per_channel() == config.bytes_per_channel()) && in Matches()
86 << ", bytes_per_channel: " << bytes_per_channel() in AsHumanReadableString()
/dports/www/chromium-legacy/chromium-88.0.4324.182/media/base/
H A Daudio_buffer.cc83 int bytes_per_channel = SampleFormatToBytesPerChannel(sample_format); in AudioBuffer() local
84 DCHECK_LE(bytes_per_channel, kChannelAlignment); in AudioBuffer()
92 int data_size_per_channel = frame_count * bytes_per_channel; in AudioBuffer()
310 const int bytes_per_channel = SampleFormatToBytesPerChannel(sample_format_); in ReadFrames() local
311 const int frame_size = channel_count_ * bytes_per_channel; in ReadFrames()
374 const int bytes_per_channel = SampleFormatToBytesPerChannel(sample_format_); in TrimRange() local
384 memmove(channel_data_[ch] + start * bytes_per_channel, in TrimRange()
385 channel_data_[ch] + end * bytes_per_channel, in TrimRange()
386 bytes_per_channel * frames_to_copy); in TrimRange()
395 const int frame_size = channel_count_ * bytes_per_channel; in TrimRange()
H A Daudio_decoder_config.cc69 (bytes_per_channel() == config.bytes_per_channel()) && in Matches()
86 << ", bytes_per_channel: " << bytes_per_channel() in AsHumanReadableString()
/dports/graphics/open3d/Open3D-0.2/src/Python/Core/
H A Dopen3d_image.cpp44 int width, height, num_of_channels = 0, bytes_per_channel; in pybind_image() local
47 bytes_per_channel = 1; in pybind_image()
51 bytes_per_channel = 2; in pybind_image()
53 bytes_per_channel = 4; in pybind_image()
57 if (info.strides[info.ndim - 1] != bytes_per_channel) { in pybind_image()
68 num_of_channels, bytes_per_channel); in pybind_image()
/dports/graphics/py-open3d-python/Open3D-0.2/src/Python/Core/
H A Dopen3d_image.cpp44 int width, height, num_of_channels = 0, bytes_per_channel; in pybind_image() local
47 bytes_per_channel = 1; in pybind_image()
51 bytes_per_channel = 2; in pybind_image()
53 bytes_per_channel = 4; in pybind_image()
57 if (info.strides[info.ndim - 1] != bytes_per_channel) { in pybind_image()
68 num_of_channels, bytes_per_channel); in pybind_image()
/dports/graphics/flam3/flam3-3.1.1-5-g7fb50c8/
H A Dflam3-render.c271 f.bytes_per_channel = 2; in main()
273 f.bytes_per_channel = 1; in main()
289 * (double)cps[i].height * f.bytes_per_channel; in main()
297 * (size_t)cps[i].height * f.bytes_per_channel; in main()
323 … size_t ssoff = (size_t)cps[i].height * strip * cps[i].width * channels * f.bytes_per_channel; in main()
378 write_png(fp, image, cps[i].width, real_height, &fpc, f.bytes_per_channel); in main()
/dports/multimedia/mencoder/mplayer-export-2021-12-29/libmpcodecs/
H A Dvd_sgi.c54 char bytes_per_channel; member
265 info->bytes_per_channel = buf[3]; in read_sgi_header()
294 if (info->bytes_per_channel != 1) { in decode()
296 "Unsupported bytes per channel value %i.\n", info->bytes_per_channel); in decode()
/dports/www/chromium-legacy/chromium-88.0.4324.182/chromecast/public/media/
H A Ddecoder_config.h289 int bytes_per_channel; member
305 bytes_per_channel(0), in AudioConfig()
369 config.channel_number > 0 && config.bytes_per_channel > 0 && in IsValidConfig()
370 config.bytes_per_channel <= kMaxBytesPerSample) || in IsValidConfig()
/dports/multimedia/mplayer/mplayer-export-2021-12-29/libmpcodecs/
H A Dvd_sgi.c54 char bytes_per_channel; member
265 info->bytes_per_channel = buf[3]; in read_sgi_header()
294 if (info->bytes_per_channel != 1) { in decode()
296 "Unsupported bytes per channel value %i.\n", info->bytes_per_channel); in decode()

123456