Home
last modified time | relevance | path

Searched refs:bytewidth (Results 1 - 25 of 41) sorted by relevance

12

/third_party/libsnd/src/
H A Dnist.c73 psf->blockwidth = psf->bytewidth * psf->sf.channels ; in nist_open()
186 sscanf (cptr, "sample_n_bytes -i %d", &(psf->bytewidth)) ; in nist_read_header()
199 { if (psf->bytewidth == 0) in nist_read_header()
200 psf->bytewidth = bytes ; in nist_read_header()
201 else if (psf->bytewidth - bytes != 0) in nist_read_header()
202 { psf_log_printf (psf, "psf->bytewidth (%d) != bytes (%d)\n", psf->bytewidth, bytes) ; in nist_read_header()
227 psf->blockwidth = psf->sf.channels * psf->bytewidth ; in nist_read_header()
233 { switch (psf->bytewidth) in nist_read_header()
302 if (psf->bytewidth > in nist_write_header()
[all...]
H A Dvoc.c129 psf->blockwidth = psf->bytewidth * psf->sf.channels ; in voc_open()
267 psf->bytewidth = 1 ; in voc_read_header()
329 psf->bytewidth = 1 ; in voc_read_header()
389 psf->bytewidth = 1 ; in voc_read_header()
394 psf->bytewidth = 2 ; in voc_read_header()
399 psf->bytewidth = 1 ; in voc_read_header()
404 psf->bytewidth = 1 ; in voc_read_header()
434 psf->sf.frames = psf->datalength / (psf->bytewidth * psf->sf.channels) ; in voc_write_header()
487 psf->bytewidth = 1 ; in voc_write_header()
488 length = psf->sf.frames * psf->sf.channels * psf->bytewidth in voc_write_header()
[all...]
H A Dcaf.c141 psf->blockwidth = psf->bytewidth * psf->sf.channels ; in caf_open()
292 { psf->bytewidth = 4 ; in decode_desc_chunk()
296 { psf->bytewidth = 8 ; in decode_desc_chunk()
304 { psf->bytewidth = 4 ; in decode_desc_chunk()
308 { psf->bytewidth = 3 ; in decode_desc_chunk()
312 { psf->bytewidth = 2 ; in decode_desc_chunk()
316 { psf->bytewidth = 1 ; in decode_desc_chunk()
322 { psf->bytewidth = 1 ; in decode_desc_chunk()
327 { psf->bytewidth = 1 ; in decode_desc_chunk()
569 if (psf->bytewidth > in caf_read_header()
[all...]
H A Dmat4.c107 psf->blockwidth = psf->bytewidth * psf->sf.channels ; in mat4_open()
159 psf->sf.frames = psf->datalength / (psf->bytewidth * psf->sf.channels) ; in mat4_write_header()
292 psf->bytewidth = 8 ; in mat4_read_header()
298 psf->bytewidth = 4 ; in mat4_read_header()
304 psf->bytewidth = 4 ; in mat4_read_header()
310 psf->bytewidth = 2 ; in mat4_read_header()
318 if ((psf->filelength - psf->dataoffset) < psf->sf.channels * psf->sf.frames * psf->bytewidth) in mat4_read_header()
320 psf->filelength - psf->dataoffset, psf->sf.channels * psf->sf.frames * psf->bytewidth) ; in mat4_read_header()
322 else if ((psf->filelength - psf->dataoffset) > psf->sf.channels * psf->sf.frames * psf->bytewidth) in mat4_read_header()
323 psf->dataend = psf->dataoffset + rows * cols * psf->bytewidth ; in mat4_read_header()
[all...]
H A Dircam.c173 psf->bytewidth = 2 ; in ircam_read_header()
174 psf->blockwidth = psf->sf.channels * psf->bytewidth ; in ircam_read_header()
180 psf->bytewidth = 4 ; in ircam_read_header()
181 psf->blockwidth = psf->sf.channels * psf->bytewidth ; in ircam_read_header()
187 psf->bytewidth = 4 ; in ircam_read_header()
188 psf->blockwidth = psf->sf.channels * psf->bytewidth ; in ircam_read_header()
194 psf->bytewidth = 1 ; in ircam_read_header()
195 psf->blockwidth = psf->sf.channels * psf->bytewidth ; in ircam_read_header()
201 psf->bytewidth = 1 ; in ircam_read_header()
202 psf->blockwidth = psf->sf.channels * psf->bytewidth ; in ircam_read_header()
[all...]
H A Dau.c134 psf->blockwidth = psf->bytewidth * psf->sf.channels ; in au_open()
358 psf->bytewidth = 1 ; /* Before decoding */ in au_read_header()
364 psf->bytewidth = 1 ; in au_read_header()
370 psf->bytewidth = 2 ; in au_read_header()
376 psf->bytewidth = 3 ; in au_read_header()
382 psf->bytewidth = 4 ; in au_read_header()
388 psf->bytewidth = 4 ; in au_read_header()
394 psf->bytewidth = 8 ; in au_read_header()
400 psf->bytewidth = 1 ; /* Before decoding */ in au_read_header()
406 psf->bytewidth in au_read_header()
[all...]
H A Dpvf.c75 psf->blockwidth = psf->bytewidth * psf->sf.channels ; in pvf_open()
116 psf->sf.channels, psf->sf.samplerate, psf->bytewidth * 8) ; in pvf_write_header()
160 psf->bytewidth = 1 ; in pvf_read_header()
165 psf->bytewidth = 2 ; in pvf_read_header()
169 psf->bytewidth = 4 ; in pvf_read_header()
182 psf->blockwidth = psf->sf.channels * psf->bytewidth ; in pvf_read_header()
H A Davr.c100 psf->blockwidth = psf->bytewidth * psf->sf.channels ; in avr_open()
131 psf->bytewidth = 1 ; in avr_read_header()
136 psf->bytewidth = 1 ; in avr_read_header()
141 psf->bytewidth = 2 ; in avr_read_header()
173 psf->blockwidth = psf->sf.channels * psf->bytewidth ; in avr_read_header()
198 psf->sf.frames = psf->datalength / (psf->bytewidth * psf->sf.channels) ; in avr_write_header()
213 BHW2 (psf->sf.channels == 2 ? 0xFFFF : 0), BHW2 (psf->bytewidth * 8)) ; in avr_write_header()
H A Dmpc2k.c83 psf->blockwidth = psf->bytewidth * psf->sf.channels ; in mpc2k_open()
118 psf->sf.frames = psf->datalength / (psf->bytewidth * psf->sf.channels) ; in mpc2k_write_header()
140 psf->bytewidth = 2 ; in mpc2k_write_header()
191 psf->bytewidth = 2 ; in mpc2k_read_header()
195 psf->blockwidth = psf->sf.channels * psf->bytewidth ; in mpc2k_read_header()
H A Dw64.c148 psf->blockwidth = psf->bytewidth * psf->sf.channels ; in w64_open()
400 psf->sf.format = SF_FORMAT_W64 | u_bitwidth_to_subformat (psf->bytewidth * 8) ; in w64_read_header()
429 psf->sf.format |= (psf->bytewidth == 8) ? SF_FORMAT_DOUBLE : SF_FORMAT_FLOAT ; in w64_read_header()
453 if (psf->bytewidth) in w64_write_header()
454 psf->sf.frames = psf->datalength / (psf->bytewidth * psf->sf.channels) ; in w64_write_header()
479 psf_binheader_writef (psf, "e4", BHW4 (psf->sf.samplerate * psf->bytewidth * psf->sf.channels)) ; in w64_write_header()
481 psf_binheader_writef (psf, "e22", BHW2 (psf->bytewidth * psf->sf.channels), BHW2 (psf->bytewidth * 8)) ; in w64_write_header()
493 psf_binheader_writef (psf, "e4", BHW4 (psf->sf.samplerate * psf->bytewidth * psf->sf.channels)) ; in w64_write_header()
495 psf_binheader_writef (psf, "e22", BHW2 (psf->bytewidth * ps in w64_write_header()
[all...]
H A Dmat5.c117 psf->blockwidth = psf->bytewidth * psf->sf.channels ; in mat5_open()
175 psf->sf.frames = psf->datalength / (psf->bytewidth * psf->sf.channels) ; in mat5_write_header()
233 datasize = psf->sf.frames * psf->sf.channels * psf->bytewidth ; in mat5_write_header()
239 datasize = psf->sf.frames * psf->sf.channels * psf->bytewidth ; in mat5_write_header()
472 psf->bytewidth = 8 ; in mat5_read_header()
478 psf->bytewidth = 4 ; in mat5_read_header()
484 psf->bytewidth = 4 ; in mat5_read_header()
490 psf->bytewidth = 2 ; in mat5_read_header()
496 psf->bytewidth = 1 ; in mat5_read_header()
H A Dhtk.c79 psf->blockwidth = psf->bytewidth * psf->sf.channels ; in htk_open()
211 psf->bytewidth = 2 ; in htk_read_header()
219 psf->blockwidth = psf->sf.channels * psf->bytewidth ; in htk_read_header()
H A Dinterleave.c78 pdata->channel_len = psf->sf.frames * psf->bytewidth ; in interleave_init()
109 offset = psf->dataoffset + chan * psf->bytewidth * psf->read_current ; in interleave_read_short()
156 offset = psf->dataoffset + chan * psf->bytewidth * psf->read_current ; in interleave_read_int()
203 offset = psf->dataoffset + pdata->channel_len * chan + psf->read_current * psf->bytewidth ; in interleave_read_float()
254 offset = psf->dataoffset + chan * psf->bytewidth * psf->read_current ; in interleave_read_double()
H A Drf64.c119 psf->blockwidth = psf->bytewidth * psf->sf.channels ; in rf64_open()
436 psf->sf.format = SF_FORMAT_RF64 | u_bitwidth_to_subformat (psf->bytewidth * 8) ; in rf64_read_header()
467 psf->sf.format |= (psf->bytewidth == 8) ? SF_FORMAT_DOUBLE : SF_FORMAT_FLOAT ; in rf64_read_header()
548 psf_binheader_writef (psf, "4", BHW4 (psf->sf.samplerate * psf->bytewidth * psf->sf.channels)) ; in rf64_write_fmt_chunk()
550 psf_binheader_writef (psf, "22", BHW2 (psf->bytewidth * psf->sf.channels), BHW2 (psf->bytewidth * 8)) ; in rf64_write_fmt_chunk()
556 psf_binheader_writef (psf, "2", BHW2 (psf->bytewidth * 8)) ; in rf64_write_fmt_chunk()
657 if (psf->bytewidth > 0) in rf64_write_header()
658 psf->sf.frames = psf->datalength / (psf->bytewidth * psf->sf.channels) ; in rf64_write_header()
780 if (psf->bytewidth > in rf64_write_tailer()
[all...]
H A Dwav.c194 psf->blockwidth = psf->bytewidth * psf->sf.channels ; in wav_open()
727 psf->sf.format = SF_FORMAT_WAV | u_bitwidth_to_subformat (psf->bytewidth * 8) ; in wav_read_header()
758 psf->sf.format |= (psf->bytewidth == 8) ? SF_FORMAT_DOUBLE : SF_FORMAT_FLOAT ; in wav_read_header()
800 psf_binheader_writef (psf, "4", BHW4 (psf->sf.samplerate * psf->bytewidth * psf->sf.channels)) ; in wav_write_fmt_chunk()
802 psf_binheader_writef (psf, "22", BHW2 (psf->bytewidth * psf->sf.channels), BHW2 (psf->bytewidth * 8)) ; in wav_write_fmt_chunk()
812 psf_binheader_writef (psf, "4", BHW4 (psf->sf.samplerate * psf->bytewidth * psf->sf.channels)) ; in wav_write_fmt_chunk()
814 psf_binheader_writef (psf, "22", BHW2 (psf->bytewidth * psf->sf.channels), BHW2 (psf->bytewidth * 8)) ; in wav_write_fmt_chunk()
825 psf_binheader_writef (psf, "4", BHW4 (psf->sf.samplerate * psf->bytewidth * ps in wav_write_fmt_chunk()
[all...]
H A Dsvx.c91 psf->blockwidth = psf->sf.channels * psf->bytewidth ; in svx_open()
202 psf->bytewidth = 1 ; in svx_read_header()
206 psf->bytewidth = 2 ; in svx_read_header()
358 psf->sf.frames = psf->datalength / (psf->bytewidth * psf->sf.channels) ; in svx_write_header()
369 psf_binheader_writef (psf, "m", BHWm ((psf->bytewidth == 1) ? SVX8_MARKER : SV16_MARKER)) ; in svx_write_header()
378 psf_binheader_writef (psf, "E4", BHW4 ((psf->bytewidth == 1) ? 0xFF : 0xFFFF)) ; in svx_write_header()
H A Dogg_pcm.c109 psf->bytewidth = 1 ; in ogg_pcm_open()
110 psf->blockwidth = psf->bytewidth * psf->sf.channels ; in ogg_pcm_open()
H A Ddwd.c99 /*-psf->blockwidth = psf->bytewidth * psf->sf.channels ;-*/ in dwd_open()
161 psf->bytewidth = 1 ; in dwd_read_header()
166 psf->bytewidth = 2 ; in dwd_read_header()
H A Dpaf.c134 psf->bytewidth = 1 ; in paf_open()
139 psf->bytewidth = 2 ; in paf_open()
144 /* No bytewidth because of whacky 24 bit encoding. */ in paf_open()
222 psf->bytewidth = 1 ; in paf_read_header()
226 psf->blockwidth = psf->bytewidth * psf->sf.channels ; in paf_read_header()
232 psf->bytewidth = 2 ; in paf_read_header()
236 psf->blockwidth = psf->bytewidth * psf->sf.channels ; in paf_read_header()
242 psf->bytewidth = 3 ; in paf_read_header()
/third_party/ffmpeg/libavutil/
H A Dimgutils.c346 ptrdiff_t bytewidth, int height) in image_copy_plane()
350 av_assert0(FFABS(src_linesize) >= bytewidth); in image_copy_plane()
351 av_assert0(FFABS(dst_linesize) >= bytewidth); in image_copy_plane()
353 memcpy(dst, src, bytewidth); in image_copy_plane()
361 ptrdiff_t bytewidth, int height) in av_image_copy_plane_uc_from()
367 bytewidth, height); in av_image_copy_plane_uc_from()
371 image_copy_plane(dst, dst_linesize, src, src_linesize, bytewidth, height); in av_image_copy_plane_uc_from()
376 int bytewidth, int height) in av_image_copy_plane()
378 image_copy_plane(dst, dst_linesize, src, src_linesize, bytewidth, height); in av_image_copy_plane()
603 ptrdiff_t bytewidth in av_image_fill_black() local
344 image_copy_plane(uint8_t *dst, ptrdiff_t dst_linesize, const uint8_t *src, ptrdiff_t src_linesize, ptrdiff_t bytewidth, int height) image_copy_plane() argument
359 av_image_copy_plane_uc_from(uint8_t *dst, ptrdiff_t dst_linesize, const uint8_t *src, ptrdiff_t src_linesize, ptrdiff_t bytewidth, int height) av_image_copy_plane_uc_from() argument
374 av_image_copy_plane(uint8_t *dst, int dst_linesize, const uint8_t *src, int src_linesize, int bytewidth, int height) av_image_copy_plane() argument
680 size_t bytewidth = plane_line_bytes[plane]; av_image_fill_black() local
[all...]
H A Dimgutils.h115 * That is, copy "height" number of lines of "bytewidth" bytes each.
119 * bytewidth must be contained by both absolute values of dst_linesize
127 int bytewidth, int height);
135 * bytewidth must be contained by both absolute values of dst_linesize
145 ptrdiff_t bytewidth, int height);
/third_party/ffmpeg/libavfilter/dnn/
H A Ddnn_io_proc.c30 int bytewidth = av_image_get_linesize(frame->format, frame->width, 0); in ff_proc_from_dnn_to_frame() local
31 if (bytewidth < 0) { in ff_proc_from_dnn_to_frame()
63 output->data, bytewidth, in ff_proc_from_dnn_to_frame()
64 bytewidth, frame->height); in ff_proc_from_dnn_to_frame()
103 int bytewidth = av_image_get_linesize(frame->format, frame->width, 0); in ff_proc_from_frame_to_dnn() local
104 if (bytewidth < 0) { in ff_proc_from_frame_to_dnn()
136 av_image_copy_plane(input->data, bytewidth, in ff_proc_from_frame_to_dnn()
138 bytewidth, frame->height); in ff_proc_from_frame_to_dnn()
/third_party/ffmpeg/libavutil/x86/
H A Dimgutils_init.c31 ptrdiff_t bytewidth, int height);
35 ptrdiff_t bytewidth, int height) in ff_image_copy_plane_uc_from_x86()
38 ptrdiff_t bw_aligned = FFALIGN(bytewidth, 64); in ff_image_copy_plane_uc_from_x86()
33 ff_image_copy_plane_uc_from_x86(uint8_t *dst, ptrdiff_t dst_linesize, const uint8_t *src, ptrdiff_t src_linesize, ptrdiff_t bytewidth, int height) ff_image_copy_plane_uc_from_x86() argument
/third_party/ffmpeg/libavfilter/
H A Dvf_dnn_processing.c222 int bytewidth = av_image_get_linesize(in->format, in->width, i); in copy_uv_planes() local
223 if (bytewidth < 0) { in copy_uv_planes()
228 bytewidth, uv_height); in copy_uv_planes()
/third_party/ffmpeg/libavcodec/
H A Dscreenpresso.c94 int bytewidth, int height) in sum_delta_flipped()
99 for (i = 0; i < bytewidth; i++) in sum_delta_flipped()
92 sum_delta_flipped(uint8_t *dst, int dst_linesize, const uint8_t *src, int src_linesize, int bytewidth, int height) sum_delta_flipped() argument

Completed in 14 milliseconds

12