Home
last modified time | relevance | path

Searched refs:bs (Results 1 – 20 of 20) sorted by relevance

/hardware/intel/common/libmix/videoencoder/
Dbitstream.h41 static void bitstream_start(bitstream *bs) in bitstream_start() argument
43 bs->max_size_in_dword = BITSTREAM_ALLOCATE_STEPPING; in bitstream_start()
44 bs->buffer = (unsigned int*)calloc(bs->max_size_in_dword * sizeof(int), 1); in bitstream_start()
45 bs->bit_offset = 0; in bitstream_start()
48 static void bitstream_end(bitstream *bs) in bitstream_end() argument
50 int pos = (bs->bit_offset >> 5); in bitstream_end()
51 int bit_offset = (bs->bit_offset & 0x1f); in bitstream_end()
55 bs->buffer[pos] = va_swap32((bs->buffer[pos] << bit_left)); in bitstream_end()
59 static void bitstream_put_ui(bitstream *bs, unsigned int val, int size_in_bits) in bitstream_put_ui() argument
61 int pos = (bs->bit_offset >> 5); in bitstream_put_ui()
[all …]
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/common/
Dvp9_reconintra.c48 static INLINE void d207_predictor(uint8_t *dst, ptrdiff_t stride, int bs, in d207_predictor() argument
53 for (r = 0; r < bs - 1; ++r) in d207_predictor()
55 dst[(bs - 1) * stride] = left[bs - 1]; in d207_predictor()
59 for (r = 0; r < bs - 2; ++r) in d207_predictor()
62 dst[(bs - 2) * stride] = ROUND_POWER_OF_TWO(left[bs - 2] + in d207_predictor()
63 left[bs - 1] * 3, 2); in d207_predictor()
64 dst[(bs - 1) * stride] = left[bs - 1]; in d207_predictor()
68 for (c = 0; c < bs - 2; ++c) in d207_predictor()
69 dst[(bs - 1) * stride + c] = left[bs - 1]; in d207_predictor()
71 for (r = bs - 2; r >= 0; --r) in d207_predictor()
[all …]
Dvp9_onyxc_int.h307 const int bs = num_8x8_blocks_wide_lookup[bsize]; in update_partition_context() local
312 vpx_memset(above_ctx, partition_context_lookup[subsize].above, bs); in update_partition_context()
313 vpx_memset(left_ctx, partition_context_lookup[subsize].left, bs); in update_partition_context()
323 const int bs = 1 << bsl; in partition_plane_context() local
329 for (i = 0; i < bs; i++) { in partition_plane_context()
333 above = (above & bs) > 0; in partition_plane_context()
334 left = (left & bs) > 0; in partition_plane_context()
Dvp9_blockd.h291 BLOCK_SIZE bs = ss_size_lookup[bsize][pd->subsampling_x][pd->subsampling_y]; in get_plane_block_size() local
292 assert(bs < BLOCK_SIZES); in get_plane_block_size()
293 return bs; in get_plane_block_size()
/hardware/intel/common/libva/test/encode/
Davcenc.c766 bitstream_start(bitstream *bs) in bitstream_start() argument
768 bs->max_size_in_dword = BITSTREAM_ALLOCATE_STEPPING; in bitstream_start()
769 bs->buffer = calloc(bs->max_size_in_dword * sizeof(int), 1); in bitstream_start()
770 bs->bit_offset = 0; in bitstream_start()
774 bitstream_end(bitstream *bs) in bitstream_end() argument
776 int pos = (bs->bit_offset >> 5); in bitstream_end()
777 int bit_offset = (bs->bit_offset & 0x1f); in bitstream_end()
781 bs->buffer[pos] = va_swap32((bs->buffer[pos] << bit_left)); in bitstream_end()
786 bitstream_put_ui(bitstream *bs, unsigned int val, int size_in_bits) in bitstream_put_ui() argument
788 int pos = (bs->bit_offset >> 5); in bitstream_put_ui()
[all …]
Dmpeg2enc.c175 bitstream_start(bitstream *bs) in bitstream_start() argument
177 bs->max_size_in_dword = BITSTREAM_ALLOCATE_STEPPING; in bitstream_start()
178 bs->buffer = calloc(bs->max_size_in_dword * sizeof(int), 1); in bitstream_start()
179 bs->bit_offset = 0; in bitstream_start()
183 bitstream_end(bitstream *bs) in bitstream_end() argument
185 int pos = (bs->bit_offset >> 5); in bitstream_end()
186 int bit_offset = (bs->bit_offset & 0x1f); in bitstream_end()
190 bs->buffer[pos] = swap32((bs->buffer[pos] << bit_left)); in bitstream_end()
195 bitstream_put_ui(bitstream *bs, unsigned int val, int size_in_bits) in bitstream_put_ui() argument
197 int pos = (bs->bit_offset >> 5); in bitstream_put_ui()
[all …]
Dmpeg2vaenc.c175 bitstream_start(bitstream *bs) in bitstream_start() argument
177 bs->max_size_in_dword = BITSTREAM_ALLOCATE_STEPPING; in bitstream_start()
178 bs->buffer = calloc(bs->max_size_in_dword * sizeof(int), 1); in bitstream_start()
179 bs->bit_offset = 0; in bitstream_start()
183 bitstream_end(bitstream *bs) in bitstream_end() argument
185 int pos = (bs->bit_offset >> 5); in bitstream_end()
186 int bit_offset = (bs->bit_offset & 0x1f); in bitstream_end()
190 bs->buffer[pos] = swap32((bs->buffer[pos] << bit_left)); in bitstream_end()
195 bitstream_put_ui(bitstream *bs, unsigned int val, int size_in_bits) in bitstream_put_ui() argument
197 int pos = (bs->bit_offset >> 5); in bitstream_put_ui()
[all …]
Dh264encode.c184 bitstream_start(bitstream *bs) in bitstream_start() argument
186 bs->max_size_in_dword = BITSTREAM_ALLOCATE_STEPPING; in bitstream_start()
187 bs->buffer = calloc(bs->max_size_in_dword * sizeof(int), 1); in bitstream_start()
188 bs->bit_offset = 0; in bitstream_start()
192 bitstream_end(bitstream *bs) in bitstream_end() argument
194 int pos = (bs->bit_offset >> 5); in bitstream_end()
195 int bit_offset = (bs->bit_offset & 0x1f); in bitstream_end()
199 bs->buffer[pos] = va_swap32((bs->buffer[pos] << bit_left)); in bitstream_end()
204 bitstream_put_ui(bitstream *bs, unsigned int val, int size_in_bits) in bitstream_put_ui() argument
206 int pos = (bs->bit_offset >> 5); in bitstream_put_ui()
[all …]
/hardware/intel/common/libva/test/transcode/
Dmpeg2transcode.cpp2473 bitstream_start(bitstream *bs) in bitstream_start() argument
2475 bs->max_size_in_dword = BITSTREAM_ALLOCATE_STEPPING; in bitstream_start()
2476 bs->buffer = (unsigned int *)calloc(bs->max_size_in_dword * sizeof(int), 1); in bitstream_start()
2477 bs->bit_offset = 0; in bitstream_start()
2481 bitstream_end(bitstream *bs) in bitstream_end() argument
2483 int pos = (bs->bit_offset >> 5); in bitstream_end()
2484 int bit_offset = (bs->bit_offset & 0x1f); in bitstream_end()
2488 bs->buffer[pos] = swap32((bs->buffer[pos] << bit_left)); in bitstream_end()
2493 bitstream_put_ui(bitstream *bs, unsigned int val, int size_in_bits) in bitstream_put_ui() argument
2495 int pos = (bs->bit_offset >> 5); in bitstream_put_ui()
[all …]
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vpx_mem/memory_manager/
Dhmm_shrink.c40 U(size_bau) bs = BLOCK_BAUS(last_block); in U()
49 (PREV_BLOCK_BAUS(last_block) && (n_baus_to_shrink == bs)) || in U()
50 (n_baus_to_shrink <= (U(size_bau))(bs - MIN_BLOCK_BAUS)); in U()
55 (U(size_bau))(bs + DUMMY_END_BLOCK_BAUS)))) { in U()
59 bs -= n_baus_to_shrink; in U()
61 if (bs) { in U()
65 last_block->block_size = bs; in U()
70 (head_record *) BAUS_FORWARD(last_block, bs); in U()
71 dummy_end_block->previous_block_size = bs; in U()
/hardware/intel/common/libva/va/
Dva_enc.h82 VAEncBitstream *bs,
135 va_enc_bitstream_destroy(VAEncBitstream *bs);
149 va_enc_bitstream_write_ui(VAEncBitstream *bs, unsigned int value, int length);
163 va_enc_bitstream_write_si(VAEncBitstream *bs, int value, int length);
168 va_enc_bitstream_skip(VAEncBitstream *bs, unsigned int length);
182 va_enc_bitstream_align(VAEncBitstream *bs, unsigned int value);
197 va_enc_bitstream_flush(VAEncBitstream *bs);
Dva_enc_h264.h747 va_enc_bitstream_h264_destroy(VAEncBitstream *bs);
760 va_enc_bitstream_h264_write_ue(VAEncBitstream *bs, unsigned int value);
773 va_enc_bitstream_h264_write_se(VAEncBitstream *bs, int value);
782 va_enc_bitstream_h264_write_trailing_bits(VAEncBitstream *bs);
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/encoder/
Dvp9_segmentation.c174 const int bs = num_8x8_blocks_wide_lookup[bsize], hbs = bs / 2; in count_segs_sb() local
182 if (bw == bs && bh == bs) { in count_segs_sb()
184 t_unpred_seg_counts, bs, bs, mi_row, mi_col); in count_segs_sb()
185 } else if (bw == bs && bh < bs) { in count_segs_sb()
187 t_unpred_seg_counts, bs, hbs, mi_row, mi_col); in count_segs_sb()
189 temporal_predictor_count, t_unpred_seg_counts, bs, hbs, in count_segs_sb()
191 } else if (bw < bs && bh == bs) { in count_segs_sb()
193 t_unpred_seg_counts, hbs, bs, mi_row, mi_col); in count_segs_sb()
196 hbs, bs, mi_row, mi_col + hbs); in count_segs_sb()
201 assert(bw < bs && bh < bs); in count_segs_sb()
Dvp9_aq_variance.c116 BLOCK_SIZE bs) { in block_variance() argument
125 const int bw = 8 * num_8x8_blocks_wide_lookup[bs] - right_overflow; in block_variance()
126 const int bh = 8 * num_8x8_blocks_high_lookup[bs] - bottom_overflow; in block_variance()
133 var = cpi->fn_ptr[bs].vf(x->plane[0].src.buf, in block_variance()
136 return (256 * var) >> num_pels_log2_lookup[bs]; in block_variance()
140 int vp9_block_energy(VP9_COMP *cpi, MACROBLOCK *x, BLOCK_SIZE bs) { in vp9_block_energy() argument
142 unsigned int var = block_variance(cpi, x, bs); in vp9_block_energy()
Dvp9_aq_variance.h28 int vp9_block_energy(VP9_COMP *cpi, MACROBLOCK *x, BLOCK_SIZE bs);
Dvp9_bitstream.c424 const int bs = (1 << bsl) / 4; in write_modes_sb() local
433 write_partition(cm, xd, bs, mi_row, mi_col, partition, bsize, w); in write_modes_sb()
444 if (mi_row + bs < cm->mi_rows) in write_modes_sb()
445 write_modes_b(cpi, tile, w, tok, tok_end, mi_row + bs, mi_col); in write_modes_sb()
449 if (mi_col + bs < cm->mi_cols) in write_modes_sb()
450 write_modes_b(cpi, tile, w, tok, tok_end, mi_row, mi_col + bs); in write_modes_sb()
454 write_modes_sb(cpi, tile, w, tok, tok_end, mi_row, mi_col + bs, in write_modes_sb()
456 write_modes_sb(cpi, tile, w, tok, tok_end, mi_row + bs, mi_col, in write_modes_sb()
458 write_modes_sb(cpi, tile, w, tok, tok_end, mi_row + bs, mi_col + bs, in write_modes_sb()
Dvp9_rdopt.c441 const BLOCK_SIZE bs = get_plane_block_size(bsize, pd); in model_rd_for_sb() local
443 (void) cpi->fn_ptr[bs].vf(p->src.buf, p->src.stride, in model_rd_for_sb()
466 vp9_model_rd_from_var_lapndz(sse, 1 << num_pels_log2_lookup[bs], in model_rd_for_sb()
483 BLOCK_SIZE bs; in model_rd_for_sb_y_tx() local
493 bs = BLOCK_4X4; in model_rd_for_sb_y_tx()
495 bs = BLOCK_8X8; in model_rd_for_sb_y_tx()
497 bs = BLOCK_16X16; in model_rd_for_sb_y_tx()
499 bs = BLOCK_32X32; in model_rd_for_sb_y_tx()
510 cpi->fn_ptr[bs].vf(&p->src.buf[j * p->src.stride + k], p->src.stride, in model_rd_for_sb_y_tx()
777 BLOCK_SIZE bs) { in choose_largest_txfm_size() argument
[all …]
Dvp9_encodeframe.c107 BLOCK_SIZE bs) { in get_sby_perpixel_variance() argument
109 var = cpi->fn_ptr[bs].vf(x->plane[0].src.buf, x->plane[0].src.stride, in get_sby_perpixel_variance()
111 return ROUND_POWER_OF_TWO(var, num_pels_log2_lookup[bs]); in get_sby_perpixel_variance()
118 BLOCK_SIZE bs) { in get_sby_perpixel_diff_variance() argument
122 var = cpi->fn_ptr[bs].vf(x->plane[0].src.buf, in get_sby_perpixel_diff_variance()
127 return ROUND_POWER_OF_TWO(var, num_pels_log2_lookup[bs]); in get_sby_perpixel_diff_variance()
/hardware/intel/common/utils/ituxd/src/com/intel/thermal/
DThermalManager.java337 for (int bs : mZoneToCoolDevBucketSize) { in printMappedAttributes()
338 s.append(bs); in printMappedAttributes()
344 for (int bs : mCoolDevToThrottBucketSize) { in printMappedAttributes()
345 s.append(bs); in printMappedAttributes()
/hardware/intel/bootstub/
Dbootstub.mk59 $(hide) cat $< /dev/zero | dd bs=$(BOOTSTUB_SIZE) count=1 > $@