Searched refs:nb_bytes (Results 1 – 2 of 2) sorted by relevance
/third_party/ffmpeg/libavcodec/ |
D | libopenjpegdec.c | 105 static OPJ_SIZE_T stream_read(void *out_buffer, OPJ_SIZE_T nb_bytes, void *user_data) in stream_read() argument 114 if (nb_bytes > remaining) { in stream_read() 115 nb_bytes = remaining; in stream_read() 117 memcpy(out_buffer, reader->buffer + reader->pos, nb_bytes); in stream_read() 118 reader->pos += (int)nb_bytes; in stream_read() 119 return nb_bytes; in stream_read() 122 static OPJ_OFF_T stream_skip(OPJ_OFF_T nb_bytes, void *user_data) in stream_skip() argument 125 if (nb_bytes < 0) { in stream_skip() 129 if (nb_bytes + reader->pos < 0) { in stream_skip() 130 nb_bytes = -reader->pos; in stream_skip() [all …]
|
D | libopenjpegenc.c | 69 static OPJ_SIZE_T stream_write(void *out_buffer, OPJ_SIZE_T nb_bytes, void *user_data) in stream_write() argument 74 if (nb_bytes > remaining) { in stream_write() 75 OPJ_SIZE_T needed = nb_bytes - remaining; in stream_write() 84 memcpy(packet->data + writer->pos, out_buffer, nb_bytes); in stream_write() 85 writer->pos += (int)nb_bytes; in stream_write() 86 return nb_bytes; in stream_write() 89 static OPJ_OFF_T stream_skip(OPJ_OFF_T nb_bytes, void *user_data) in stream_skip() argument 93 if (nb_bytes < 0) { in stream_skip() 97 if (nb_bytes + writer->pos < 0) { in stream_skip() 98 nb_bytes = -writer->pos; in stream_skip() [all …]
|