Home
last modified time | relevance | path

Searched refs:bitbuf (Results 1 – 14 of 14) sorted by relevance

/OK3568_Linux_fs/external/mpp/mpp/hal/vpu/vp8e/
H A Dhal_vp8e_putbit.c22 MPP_RET vp8e_set_buffer(Vp8ePutBitBuf *bitbuf, RK_U8 *data, RK_S32 size) in vp8e_set_buffer() argument
24 if ((bitbuf == NULL) || (data == NULL) || (size < 1)) in vp8e_set_buffer()
27 bitbuf->data = data; in vp8e_set_buffer()
28 bitbuf->p_data = data; in vp8e_set_buffer()
29 bitbuf->size = size; in vp8e_set_buffer()
31 bitbuf->range = 255; in vp8e_set_buffer()
32 bitbuf->bottom = 0; in vp8e_set_buffer()
33 bitbuf->bits_left = 24; in vp8e_set_buffer()
35 bitbuf->byte_cnt = 0; in vp8e_set_buffer()
40 MPP_RET vp8e_put_bool(Vp8ePutBitBuf *bitbuf, RK_S32 prob, RK_S32 bool_value) in vp8e_put_bool() argument
[all …]
H A Dhal_vp8e_base.c221 static void set_hdr_segmentation(Vp8ePutBitBuf *bitbuf, Vp8ePps *ppss, in set_hdr_segmentation() argument
240 vp8e_put_lit(bitbuf, sgm->map_modified, 1); in set_hdr_segmentation()
241 vp8e_put_lit(bitbuf, data_modified, 1); in set_hdr_segmentation()
244 vp8e_put_lit(bitbuf, 1, 1); in set_hdr_segmentation()
248 vp8e_put_lit(bitbuf, 1, 1); in set_hdr_segmentation()
249 vp8e_put_lit(bitbuf, MPP_ABS(tmp), 7); in set_hdr_segmentation()
250 vp8e_put_lit(bitbuf, tmp < 0, 1); in set_hdr_segmentation()
255 vp8e_put_lit(bitbuf, 1, 1); in set_hdr_segmentation()
256 vp8e_put_lit(bitbuf, MPP_ABS(tmp), 6); in set_hdr_segmentation()
257 vp8e_put_lit(bitbuf, tmp < 0, 1); in set_hdr_segmentation()
[all …]
H A Dhal_vp8e_putbit.h44 MPP_RET vp8e_put_lit(Vp8ePutBitBuf *bitbuf, RK_S32 value, RK_S32 number);
45 MPP_RET vp8e_buffer_gap(Vp8ePutBitBuf *bitbuf, RK_S32 gap);
46 MPP_RET vp8e_buffer_overflow(Vp8ePutBitBuf *bitbuf);
47 MPP_RET vp8e_put_byte(Vp8ePutBitBuf *bitbuf, RK_S32 byte);
48 MPP_RET vp8e_put_bool(Vp8ePutBitBuf *bitbuf, RK_S32 prob, RK_S32 boolValue);
49 MPP_RET vp8e_set_buffer(Vp8ePutBitBuf *bitbuf, RK_U8 *data, RK_S32 size);
H A Dhal_vp8e_entropy.c371 MPP_RET vp8e_calc_coeff_prob(Vp8ePutBitBuf *bitbuf, RK_S32 (*curr)[4][8][3][11], in vp8e_calc_coeff_prob() argument
386 vp8e_put_bool(bitbuf, prob, 0); in vp8e_calc_coeff_prob()
388 vp8e_put_bool(bitbuf, prob, 1); in vp8e_calc_coeff_prob()
389 vp8e_put_lit(bitbuf, new, 8); in vp8e_calc_coeff_prob()
398 MPP_RET vp8e_calc_mv_prob(Vp8ePutBitBuf *bitbuf, RK_S32 (*curr)[2][19], in vp8e_calc_mv_prob() argument
411 vp8e_put_bool(bitbuf, prob, 0); in vp8e_calc_mv_prob()
413 vp8e_put_bool(bitbuf, prob, 1); in vp8e_calc_mv_prob()
414 vp8e_put_lit(bitbuf, new >> 1, 7); in vp8e_calc_mv_prob()
H A Dhal_vp8e_entropy.h20 MPP_RET vp8e_calc_coeff_prob(Vp8ePutBitBuf *bitbuf,
22 MPP_RET vp8e_calc_mv_prob(Vp8ePutBitBuf *bitbuf,
H A Dhal_vp8e_base.h350 Vp8ePutBitBuf bitbuf[4]; member
H A Dhal_vp8e_vepu1_v2.c467 ctx->bitbuf[1].size = 0; in hal_vp8e_vepu1_wait_v2()
H A Dhal_vp8e_vepu2_v2.c470 ctx->bitbuf[1].size = 0; in hal_vp8e_vepu2_wait_v2()
/OK3568_Linux_fs/kernel/drivers/net/hamradio/
H A Dhdlcdrv.c173 s->hdlcrx.bitbuf >>= 16; in hdlcdrv_receiver()
174 s->hdlcrx.bitbuf |= word << 16; in hdlcdrv_receiver()
186 hdlc_rx_add_bytes(s, s->hdlcrx.bitbuf in hdlcdrv_receiver()
199 s->hdlcrx.bitbuf = (s->hdlcrx.bitbuf & (~mask6)) | in hdlcdrv_receiver()
200 ((s->hdlcrx.bitbuf & mask6) << 1); in hdlcdrv_receiver()
203 s->hdlcrx.numbits -= hdlc_rx_add_bytes(s, s->hdlcrx.bitbuf, in hdlcdrv_receiver()
269 hdlcdrv_hbuf_put(&s->hdlctx.hbuf, s->hdlctx.bitbuf); in hdlcdrv_transmitter()
270 s->hdlctx.bitbuf >>= 16; in hdlcdrv_transmitter()
281 s->hdlctx.bitbuf |= in hdlcdrv_transmitter()
325 s->hdlctx.bitbuf |= *s->hdlctx.bp << in hdlcdrv_transmitter()
[all …]
H A Dbaycom_epp.c176 unsigned int bitbuf, bitstream, numbits, state; member
363 unsigned bitstream, notbitstream, bitbuf, numbit, crc; in encode_hdlc() local
380 bitstream = bitbuf = numbit = 0; in encode_hdlc()
384 bitbuf |= ((unsigned int)*bp) << numbit; in encode_hdlc()
393 bitbuf = (bitbuf & (((2 << j) << numbit) - 1)) | in encode_hdlc()
394 ((bitbuf & ~(((2 << j) << numbit) - 1)) << 1); in encode_hdlc()
400 *wp++ = bitbuf; in encode_hdlc()
401 bitbuf >>= 8; in encode_hdlc()
405 bitbuf |= 0x7e7e << numbit; in encode_hdlc()
408 *wp++ = bitbuf; in encode_hdlc()
[all …]
/OK3568_Linux_fs/kernel/include/linux/
H A Dhdlcdrv.h112 unsigned int bitbuf; member
136 unsigned int bitbuf; member
/OK3568_Linux_fs/external/rknpu2/examples/librknn_api_android_demo/include/stb/
H A Dstb_image_write.h842 #define stbiw__zlib_flush() (out = stbiw__zlib_flushf(out, &bitbuf, &bitcount))
844 (bitbuf |= (code) << bitcount, bitcount += (codebits), stbiw__zlib_flush())
868 unsigned int bitbuf=0; in stbi_zlib_compress()
/OK3568_Linux_fs/external/rknpu2/examples/3rdparty/stb/
H A Dstb_image_write.h842 #define stbiw__zlib_flush() (out = stbiw__zlib_flushf(out, &bitbuf, &bitcount))
844 (bitbuf |= (code) << bitcount, bitcount += (codebits), stbiw__zlib_flush())
868 unsigned int bitbuf=0; in stbi_zlib_compress()
/OK3568_Linux_fs/kernel/drivers/net/wireless/admtek/
H A Dadm8211.c509 u32 reg, bitbuf; \
513 bitbuf = (value << v_shift) | (addr << a_shift); \
526 if (bitbuf & (1 << (bits - i))) \