/third_party/ffmpeg/libavcodec/ |
D | vcr1.c | 54 const uint8_t *bytestream = avpkt->data; in vcr1_decode_frame() local 55 const uint8_t *bytestream_end = bytestream + avpkt->size; in vcr1_decode_frame() 69 a->delta[i] = *bytestream++; in vcr1_decode_frame() 70 bytestream++; in vcr1_decode_frame() 81 av_assert0 (bytestream_end - bytestream >= 4 + avctx->width); in vcr1_decode_frame() 84 a->offset[i] = *bytestream++; in vcr1_decode_frame() 86 offset = a->offset[0] - a->delta[bytestream[2] & 0xF]; in vcr1_decode_frame() 88 luma[0] = offset += a->delta[bytestream[2] & 0xF]; in vcr1_decode_frame() 89 luma[1] = offset += a->delta[bytestream[2] >> 4]; in vcr1_decode_frame() 90 luma[2] = offset += a->delta[bytestream[0] & 0xF]; in vcr1_decode_frame() [all …]
|
D | pnmdec.c | 52 s->bytestream = (uint8_t *)buf; in pnm_decode_frame() 128 if (n * avctx->height > s->bytestream_end - s->bytestream) in pnm_decode_frame() 138 … while(s->bytestream < s->bytestream_end && (*s->bytestream < '0' || *s->bytestream > '9' )) in pnm_decode_frame() 139 s->bytestream++; in pnm_decode_frame() 140 if(s->bytestream >= s->bytestream_end) in pnm_decode_frame() 144 v = (*s->bytestream++)&1; in pnm_decode_frame() 149 c = (*s->bytestream++) - '0'; in pnm_decode_frame() 168 samplecpy(ptr, s->bytestream, n, s->maxval); in pnm_decode_frame() 172 ptr[j] = (s->bytestream[j] * f + 64) >> 7; in pnm_decode_frame() 176 v = AV_RB16(s->bytestream + 2*j); in pnm_decode_frame() [all …]
|
D | pnmenc.c | 31 uint8_t *bytestream, *bytestream_start, *bytestream_end; in pnm_encode_frame() local 41 bytestream = pkt->data; in pnm_encode_frame() 88 snprintf(bytestream, bytestream_end - bytestream, in pnm_encode_frame() 90 bytestream += strlen(bytestream); in pnm_encode_frame() 92 snprintf(bytestream, bytestream_end - bytestream, in pnm_encode_frame() 94 bytestream += strlen(bytestream); in pnm_encode_frame() 98 snprintf(bytestream, bytestream_end - bytestream, in pnm_encode_frame() 100 bytestream += strlen(bytestream); in pnm_encode_frame() 110 AV_WN32(bytestream + 0, av_float2int(r[j])); in pnm_encode_frame() 111 AV_WN32(bytestream + 4, av_float2int(g[j])); in pnm_encode_frame() [all …]
|
D | pnm.c | 41 uint8_t *bs = sc->bytestream; in pnm_get() 62 sc->bytestream = bs; in pnm_get() 71 if (s->bytestream_end - s->bytestream < 3 || in ff_pnm_decode_header() 72 s->bytestream[0] != 'P' || in ff_pnm_decode_header() 73 (s->bytestream[1] < '1' || in ff_pnm_decode_header() 74 s->bytestream[1] > '7' && in ff_pnm_decode_header() 75 s->bytestream[1] != 'f' && in ff_pnm_decode_header() 76 s->bytestream[1] != 'F')) { in ff_pnm_decode_header() 77 s->bytestream += s->bytestream_end > s->bytestream; in ff_pnm_decode_header() 78 s->bytestream += s->bytestream_end > s->bytestream; in ff_pnm_decode_header() [all …]
|
D | cabac.c | 167 c->bytestream= buf; in ff_init_cabac_decoder() 171 c->low = (*c->bytestream++)<<18; in ff_init_cabac_decoder() 172 c->low+= (*c->bytestream++)<<10; in ff_init_cabac_decoder() 176 if(((uintptr_t)c->bytestream & 1) == 0) { in ff_init_cabac_decoder() 180 c->low += ((*c->bytestream++) << 2) + 2; in ff_init_cabac_decoder() 183 c->low = (*c->bytestream++)<<10; in ff_init_cabac_decoder() 184 c->low+= ((*c->bytestream++)<<2) + 2; in ff_init_cabac_decoder()
|
D | pamenc.c | 28 uint8_t *bytestream_start, *bytestream, *bytestream_end; in pam_encode_frame() local 98 bytestream = pkt->data; in pam_encode_frame() 101 snprintf(bytestream, bytestream_end - bytestream, in pam_encode_frame() 104 bytestream += strlen(bytestream); in pam_encode_frame() 113 *bytestream++ = ptr[j >> 3] >> (7 - j & 7) & 1; in pam_encode_frame() 118 memcpy(bytestream, ptr, n); in pam_encode_frame() 119 bytestream += n; in pam_encode_frame() 124 pkt->size = bytestream - bytestream_start; in pam_encode_frame()
|
D | cabac_functions.h | 61 c->low+= (c->bytestream[0]<<9) + (c->bytestream[1]<<1); in refill() 63 c->low+= c->bytestream[0]<<1; in refill() 67 if (c->bytestream < c->bytestream_end) in refill() 69 c->bytestream += CABAC_BITS / 8; in refill() 97 x+= (c->bytestream[0]<<9) + (c->bytestream[1]<<1); in refill2() 99 x+= c->bytestream[0]<<1; in refill2() 104 if (c->bytestream < c->bytestream_end) in refill2() 106 c->bytestream += CABAC_BITS/8; in refill2() 188 return c->bytestream - c->bytestream_start; in get_cabac_terminate() 199 const uint8_t *ptr = c->bytestream; in skip_bytes()
|
D | gif.c | 293 uint8_t **bytestream, uint8_t *end, in gif_image_write_image() argument 335 bytestream_put_buffer(bytestream, gif89a_sig, sizeof(gif89a_sig)); in gif_image_write_image() 336 bytestream_put_le16(bytestream, avctx->width); in gif_image_write_image() 337 bytestream_put_le16(bytestream, avctx->height); in gif_image_write_image() 341 …bytestream_put_byte(bytestream, ((uint8_t) s->use_global_palette << 7) | 0x70 | (s->use_global_pal… in gif_image_write_image() 342 …bytestream_put_byte(bytestream, bcid < 0 ? DEFAULT_TRANSPARENCY_INDEX : bcid); /* background color… in gif_image_write_image() 343 bytestream_put_byte(bytestream, aspect); in gif_image_write_image() 347 bytestream_put_be24(bytestream, v); in gif_image_write_image() 370 bytestream_put_byte(bytestream, GIF_EXTENSION_INTRODUCER); in gif_image_write_image() 371 bytestream_put_byte(bytestream, GIF_GCE_EXT_LABEL); in gif_image_write_image() [all …]
|
D | rangecoder.h | 43 uint8_t *bytestream; member 69 *c->bytestream++ = c->outstanding_byte; in renorm_encoder() 71 *c->bytestream++ = 0xFF; in renorm_encoder() 74 *c->bytestream++ = c->outstanding_byte + 1; in renorm_encoder() 76 *c->bytestream++ = 0x00; in renorm_encoder() 89 int x = c->bytestream - c->bytestream_start + c->outstanding_count; in get_rac_count() 119 if (c->bytestream < c->bytestream_end) { in refill() 120 c->low += c->bytestream[0]; in refill() 121 c->bytestream++; in refill()
|
D | fitsenc.c | 41 uint8_t *bytestream, *bytestream_start, *ptr; in fits_encode_frame() local 87 bytestream = pkt->data; in fits_encode_frame() 95 bytestream_put_be16(&bytestream, AV_RB16(ptr) ^ flip); in fits_encode_frame() 99 memcpy(bytestream, ptr, avctx->width); in fits_encode_frame() 100 bytestream += avctx->width; in fits_encode_frame() 106 memset(bytestream, 0, bytes_left); in fits_encode_frame() 107 bytestream += bytes_left; in fits_encode_frame() 109 pkt->size = bytestream - bytestream_start; in fits_encode_frame()
|
D | pnm_parser.c | 64 pnmctx.bytestream = pc->buffer; in pnm_parse() 68 pnmctx.bytestream = (uint8_t *) buf + skip; /* casts avoid warnings */ in pnm_parse() 72 if (pnmctx.bytestream < pnmctx.bytestream_end) { in pnm_parse() 77 unsigned step = FFMAX(1, pnmctx.bytestream - pnmctx.bytestream_start); in pnm_parse() 84 uint8_t *bs = pnmctx.bytestream; in pnm_parse() 110 pnmpc->ascii_scan = sync - pnmctx.bytestream + skip; in pnm_parse() 113 next = pnmctx.bytestream - pnmctx.bytestream_start + skip; in pnm_parse()
|
D | pngenc.c | 52 uint8_t *bytestream; member 251 png_write_chunk(&s->bytestream, MKTAG('I', 'D', 'A', 'T'), buf, length); in png_write_image_data() 255 bytestream_put_be32(&s->bytestream, length + 4); in png_write_image_data() 257 bytestream_put_be32(&s->bytestream, MKBETAG('f', 'd', 'A', 'T')); in png_write_image_data() 258 bytestream_put_be32(&s->bytestream, s->sequence_number); in png_write_image_data() 259 crc = av_crc(crc_table, crc, s->bytestream - 8, 8); in png_write_image_data() 262 memcpy(s->bytestream, buf, length); in png_write_image_data() 263 s->bytestream += length; in png_write_image_data() 265 bytestream_put_be32(&s->bytestream, ~crc); in png_write_image_data() 283 if (s->bytestream_end - s->bytestream > IOBUF_SIZE + 100) in png_write_row() [all …]
|
D | rangecoder.c | 45 c->bytestream = buf; in ff_init_range_encoder() 59 c->low = AV_RB16(c->bytestream); in ff_init_range_decoder() 60 c->bytestream += 2; in ff_init_range_decoder() 64 c->bytestream_end = c->bytestream; in ff_init_range_decoder() 122 return c->bytestream - c->bytestream_start; in ff_rac_terminate()
|
D | dirac_arith.c | 103 c->bytestream = gb->buffer + get_bits_count(gb)/8; in ff_dirac_init_arith_decoder() 104 c->bytestream_end = c->bytestream + length; in ff_dirac_init_arith_decoder() 110 if (c->bytestream < c->bytestream_end) in ff_dirac_init_arith_decoder() 111 c->low |= *c->bytestream++; in ff_dirac_init_arith_decoder()
|
D | lagarithrac.h | 47 const uint8_t *bytestream; /**< Current position in input bytestream. */ member 65 l->low |= 0xff & (AV_RB16(l->bytestream) >> 1); in lag_rac_refill() 66 if (l->bytestream < l->bytestream_end) in lag_rac_refill() 67 l->bytestream++; in lag_rac_refill()
|
D | dirac_arith.h | 80 const uint8_t *bytestream; member 113 int new = bytestream_get_be16(&c->bytestream); in refill() 116 if (c->bytestream > c->bytestream_end) { in refill() 118 if (c->bytestream > c->bytestream_end+1) in refill() 121 c->bytestream = c->bytestream_end; in refill()
|
D | lagarithrac.c | 43 l->bytestream = gb->buffer + get_bits_count(gb) / 8; in ff_lag_rac_init() 47 l->low = *l->bytestream >> 1; in ff_lag_rac_init()
|
D | pnm.h | 28 uint8_t *bytestream; member
|
/third_party/ffmpeg/libavcodec/tests/ |
D | rangecoder.c | 42 if (c->bytestream == tmp.bytestream && c->bytestream > c->bytestream_start) in rac_check_termination() 43 tmp.low -= *--tmp.bytestream; in rac_check_termination() 44 tmp.bytestream_end = tmp.bytestream; in rac_check_termination() 49 if (c->bytestream_end != c->bytestream) in rac_check_termination() 94 if (c.bytestream - c.bytestream_start - actual_length != version) { in main()
|
/third_party/ffmpeg/libavformat/ |
D | msnwc_tcp.c | 46 const uint8_t *bytestream = p->buf + i; in msnwc_tcp_probe() local 48 if (bytestream_get_le16(&bytestream) != HEADER_SIZE) in msnwc_tcp_probe() 50 width = bytestream_get_le16(&bytestream); in msnwc_tcp_probe() 51 height = bytestream_get_le16(&bytestream); in msnwc_tcp_probe() 55 bytestream += 2; // keyframe in msnwc_tcp_probe() 56 bytestream += 4; // size in msnwc_tcp_probe() 57 fourcc = bytestream_get_le32(&bytestream); in msnwc_tcp_probe()
|
/third_party/mindspore/tests/ut/python/mindrecord/ |
D | test_mnist_to_mr.py | 103 with gzip.open(filename) as bytestream: 104 bytestream.read(16) 105 buf = bytestream.read( 114 with gzip.open(filename) as bytestream: 115 bytestream.read(8) 116 buf = bytestream.read(1 * num_images)
|
/third_party/gstreamer/gstreamer/docs/random/ |
D | typefind | 7 bytestream. 9 2) Typefinding, bytestream & autoplugging: 12 bytestream: 14 currently, bytestream collects incoming buffers and adds 26 Surely, this does not mean that bytestream will read any 72 to take care that the state of the bytestream is exactly the 74 skip (and therefore lose) data. If the bytestream supports 80 the bytestream and for emptying the cache and reusing it in the
|
/third_party/mindspore/mindspore/mindrecord/tools/ |
D | mnist_to_mr.py | 84 with gzip.open(real_file_path) as bytestream: 85 bytestream.read(16) 86 buf = bytestream.read() 94 with gzip.open(real_file_path) as bytestream: 95 bytestream.read(8) 96 buf = bytestream.read()
|
/third_party/ffmpeg/libavcodec/x86/ |
D | cabac.h | 204 "i"(offsetof(CABACContext, bytestream)), in get_cabac_inline_x86() 253 "i"(offsetof(CABACContext, bytestream)), in get_cabac_bypass_sign_x86() 293 "i"(offsetof(CABACContext, bytestream)), in get_cabac_bypass_x86()
|
D | h264_cabac.c | 113 "i"(offsetof(CABACContext, bytestream)), in decode_significance_x86() 199 "i"(offsetof(CABACContext, bytestream)), in decode_significance_8x8_x86()
|