Home
last modified time | relevance | path

Searched refs:crc_pos (Results 1 – 3 of 3) sorted by relevance

/third_party/ffmpeg/libavcodec/
Dsbcenc.c105 int crc_pos; in sbc_pack_frame() local
137 crc_pos = 16; in sbc_pack_frame()
143 crc_header[crc_pos >> 3] = joint; in sbc_pack_frame()
144 crc_pos += frame->subbands; in sbc_pack_frame()
150 crc_header[crc_pos >> 3] <<= 4; in sbc_pack_frame()
151 crc_header[crc_pos >> 3] |= frame->scale_factor[ch][sb] & 0x0F; in sbc_pack_frame()
152 crc_pos += 4; in sbc_pack_frame()
157 if (crc_pos % 8) in sbc_pack_frame()
158 crc_header[crc_pos >> 3] <<= 8 - (crc_pos % 8); in sbc_pack_frame()
160 avpkt->data[3] = ff_sbc_crc8(frame->crc_ctx, crc_header, crc_pos); in sbc_pack_frame()
Dsbcdec.c71 int crc_pos; in sbc_unpack_frame() local
118 crc_pos = 16; in sbc_unpack_frame()
128 crc_header[crc_pos / 8] = data[4] & 0xf0; in sbc_unpack_frame()
130 crc_header[crc_pos / 8] = data[4]; in sbc_unpack_frame()
133 crc_pos += frame->subbands; in sbc_unpack_frame()
144 crc_header[crc_pos >> 3] |= in sbc_unpack_frame()
145 frame->scale_factor[ch][sb] << (4 - (crc_pos & 0x7)); in sbc_unpack_frame()
148 crc_pos += 4; in sbc_unpack_frame()
152 if (data[3] != ff_sbc_crc8(frame->crc_ctx, crc_header, crc_pos)) in sbc_unpack_frame()
/third_party/ffmpeg/libavformat/
Doggenc.c107 uint8_t buf[4 + 1 + 1 + 8 + 4 + 4 + 4 + 1 + 255], *ptr = buf, *crc_pos; in ogg_write_page() local
117 crc_pos = ptr; in ogg_write_page()
124 bytestream_put_be32(&crc_pos, crc); in ogg_write_page()