Home
last modified time | relevance | path

Searched refs:bytestream (Results 1 - 25 of 44) sorted by relevance

12

/third_party/ffmpeg/libavcodec/
H A Dvcr1.c54 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[ in vcr1_decode_frame()
[all...]
H A Dpnmenc.c41 uint8_t *bytestream, *bytestream_start, *bytestream_end; in pnm_encode_frame() local
51 bytestream = pkt->data; in pnm_encode_frame()
114 snprintf(bytestream, bytestream_end - bytestream, in pnm_encode_frame()
116 bytestream += strlen(bytestream); in pnm_encode_frame()
121 snprintf(bytestream, bytestream_end - bytestream, in pnm_encode_frame()
124 bytestream += strlen(bytestream); in pnm_encode_frame()
[all...]
H A Dpnmdec.c55 s->bytestream = (uint8_t *)buf; in pnm_decode_frame()
131 if (n * avctx->height > s->bytestream_end - s->bytestream) in pnm_decode_frame()
141 while(s->bytestream < s->bytestream_end && (*s->bytestream < '0' || *s->bytestream > '9' )) in pnm_decode_frame()
142 s->bytestream++; in pnm_decode_frame()
143 if(s->bytestream >= s->bytestream_end) in pnm_decode_frame()
147 v = (*s->bytestream++)&1; in pnm_decode_frame()
152 c = (*s->bytestream++) - '0'; in pnm_decode_frame()
171 samplecpy(ptr, s->bytestream, in pnm_decode_frame()
[all...]
H A Dpnm.c41 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[1] != 'H' && in ff_pnm_decode_header()
78 s->bytestream[ in ff_pnm_decode_header()
[all...]
H A Dcabac.c164 c->bytestream= buf; in ff_init_cabac_decoder()
168 c->low = (*c->bytestream++)<<18; in ff_init_cabac_decoder()
169 c->low+= (*c->bytestream++)<<10; in ff_init_cabac_decoder()
173 if(((uintptr_t)c->bytestream & 1) == 0) { in ff_init_cabac_decoder()
177 c->low += ((*c->bytestream++) << 2) + 2; in ff_init_cabac_decoder()
180 c->low = (*c->bytestream++)<<10; in ff_init_cabac_decoder()
181 c->low+= ((*c->bytestream++)<<2) + 2; in ff_init_cabac_decoder()
H A Dcabac_functions.h66 c->low+= (c->bytestream[0]<<9) + (c->bytestream[1]<<1); in refill()
68 c->low+= c->bytestream[0]<<1; in refill()
72 if (c->bytestream < c->bytestream_end) in refill()
74 c->bytestream += CABAC_BITS / 8; in refill()
102 x+= (c->bytestream[0]<<9) + (c->bytestream[1]<<1); in refill2()
104 x+= c->bytestream[0]<<1; in refill2()
109 if (c->bytestream < c->bytestream_end) in refill2()
111 c->bytestream in refill2()
[all...]
H A Dgif.c37 #include "bytestream.h"
294 uint8_t **bytestream, uint8_t *end, in gif_image_write_image()
336 bytestream_put_buffer(bytestream, gif89a_sig, sizeof(gif89a_sig)); in gif_image_write_image()
337 bytestream_put_le16(bytestream, avctx->width); in gif_image_write_image()
338 bytestream_put_le16(bytestream, avctx->height); in gif_image_write_image()
342 bytestream_put_byte(bytestream, ((uint8_t) s->use_global_palette << 7) | 0x70 | (s->use_global_palette ? 7 : 0)); /* flags: global clut, 256 entries */ in gif_image_write_image()
343 bytestream_put_byte(bytestream, bcid < 0 ? DEFAULT_TRANSPARENCY_INDEX : bcid); /* background color index */ in gif_image_write_image()
344 bytestream_put_byte(bytestream, aspect); in gif_image_write_image()
348 bytestream_put_be24(bytestream, v); in gif_image_write_image()
371 bytestream_put_byte(bytestream, GIF_EXTENSION_INTRODUCE in gif_image_write_image()
293 gif_image_write_image(AVCodecContext *avctx, uint8_t **bytestream, uint8_t *end, const uint32_t *palette, const uint8_t *buf, const int linesize, AVPacket *pkt) gif_image_write_image() argument
[all...]
H A Drangecoder.h43 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()
H A Dpngenc.c25 #include "bytestream.h"
54 uint8_t *bytestream; member
254 png_write_chunk(&s->bytestream, MKTAG('I', 'D', 'A', 'T'), buf, length); in png_write_image_data()
258 bytestream_put_be32(&s->bytestream, length + 4); in png_write_image_data()
260 bytestream_put_be32(&s->bytestream, MKBETAG('f', 'd', 'A', 'T')); in png_write_image_data()
261 bytestream_put_be32(&s->bytestream, s->sequence_number); in png_write_image_data()
262 crc = av_crc(crc_table, crc, s->bytestream - 8, 8); in png_write_image_data()
265 memcpy(s->bytestream, buf, length); in png_write_image_data()
266 s->bytestream += length; in png_write_image_data()
268 bytestream_put_be32(&s->bytestream, ~cr in png_write_image_data()
[all...]
H A Dfitsenc.c34 #include "bytestream.h"
42 uint8_t *bytestream, *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()
H A Dpamenc.c31 uint8_t *bytestream, *ptr; in pam_encode_frame() local
104 bytestream = pkt->data; in pam_encode_frame()
105 memcpy(bytestream, header, header_size); in pam_encode_frame()
106 bytestream += header_size; in pam_encode_frame()
115 *bytestream++ = ptr[j >> 3] >> (7 - j & 7) & 1; in pam_encode_frame()
120 memcpy(bytestream, ptr, n); in pam_encode_frame()
121 bytestream += n; in pam_encode_frame()
H A Dpnm_parser.c64 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()
H A Ddirac_arith.h32 #include "bytestream.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()
H A Drangecoder.c45 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()
H A Ddirac_arith.c103 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()
H A Dlagarithrac.h45 const uint8_t *bytestream_start; /**< Start of input bytestream. */
46 const uint8_t *bytestream; /**< Current position in input bytestream. */ member
47 const uint8_t *bytestream_end; /**< End position of input bytestream. */
64 l->low |= 0xff & (AV_RB16(l->bytestream) >> 1); in lag_rac_refill()
65 if (l->bytestream < l->bytestream_end) in lag_rac_refill()
66 l->bytestream++; in lag_rac_refill()
H A Dlagarithrac.c43 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()
H A Dpnm.h28 uint8_t *bytestream; member
/third_party/ffmpeg/libavcodec/tests/
H A Drangecoder.c43 if (c->bytestream == tmp.bytestream && c->bytestream > c->bytestream_start) in rac_check_termination()
44 tmp.low -= *--tmp.bytestream; in rac_check_termination()
45 tmp.bytestream_end = tmp.bytestream; in rac_check_termination()
50 if (c->bytestream_end != c->bytestream) in rac_check_termination()
95 if (c.bytestream - c.bytestream_start - actual_length != version) { in main()
/third_party/ffmpeg/libavformat/
H A Dmsnwc_tcp.c21 #include "libavcodec/bytestream.h"
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/ffmpeg/libavcodec/loongarch/
H A Dcabac.h133 [c_bytestream]"+&r"(c->bytestream) in get_cabac_inline_loongarch()
181 [c_bytestream]"+&r"(c->bytestream), [res]"+&r"(res) in get_cabac_bypass_loongarch()
227 [c_bytestream]"+&r"(c->bytestream) in get_cabac_bypass_sign_loongarch()
H A Dh264_cabac.c66 [c_bytestream]"+&r"(c->bytestream), [index]"+&r"(index) in decode_significance_loongarch()
124 [c_bytestream]"+&r"(c->bytestream), [index]"+&r"(index) in decode_significance_8x8_loongarch()
/third_party/ffmpeg/libavcodec/mips/
H A Dcabac.h108 [c_bytestream]"+&r"(c->bytestream) in get_cabac_inline_mips()
164 [c_bytestream]"+&r"(c->bytestream) in get_cabac_bypass_mips()
217 [c_bytestream]"+&r"(c->bytestream) in get_cabac_bypass_sign_mips()
/third_party/ffmpeg/libavcodec/x86/
H A Dh264_cabac.c113 "i"(offsetof(CABACContext, bytestream)), in decode_significance_x86()
199 "i"(offsetof(CABACContext, bytestream)), in decode_significance_8x8_x86()
H A Dcabac.h209 "i"(offsetof(CABACContext, bytestream)), in get_cabac_inline_x86()
258 "i"(offsetof(CABACContext, bytestream)), in get_cabac_bypass_sign_x86()
298 "i"(offsetof(CABACContext, bytestream)), in get_cabac_bypass_x86()

Completed in 10 milliseconds

12