Home
last modified time | relevance | path

Searched refs:w (Results 1 – 25 of 368) sorted by relevance

12345678910>>...15

/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/encoder/
Dvp9_subexp.c81 static void encode_uniform(vp9_writer *w, int v) { in encode_uniform() argument
85 vp9_write_literal(w, v, l - 1); in encode_uniform()
87 vp9_write_literal(w, m + ((v - m) >> 1), l - 1); in encode_uniform()
88 vp9_write_literal(w, (v - m) & 1, 1); in encode_uniform()
92 static INLINE int write_bit_gte(vp9_writer *w, int word, int test) { in write_bit_gte() argument
93 vp9_write_literal(w, word >= test, 1); in write_bit_gte()
97 static void encode_term_subexp(vp9_writer *w, int word) { in encode_term_subexp() argument
98 if (!write_bit_gte(w, word, 16)) { in encode_term_subexp()
99 vp9_write_literal(w, word, 4); in encode_term_subexp()
100 } else if (!write_bit_gte(w, word, 32)) { in encode_term_subexp()
[all …]
Dvp9_encodemv.c32 static void encode_mv_component(vp9_writer* w, int comp, in encode_mv_component() argument
45 vp9_write(w, sign, mvcomp->sign); in encode_mv_component()
48 vp9_write_token(w, vp9_mv_class_tree, mvcomp->classes, in encode_mv_component()
53 vp9_write_token(w, vp9_mv_class0_tree, mvcomp->class0, in encode_mv_component()
59 vp9_write(w, (d >> i) & 1, mvcomp->bits[i]); in encode_mv_component()
63 vp9_write_token(w, vp9_mv_fp_tree, in encode_mv_component()
69 vp9_write(w, hp, in encode_mv_component()
136 static int update_mv(vp9_writer *w, const unsigned int ct[2], vp9_prob *cur_p, in update_mv() argument
141 vp9_write(w, update, upd_p); in update_mv()
144 vp9_write_literal(w, new_p >> 1, 7); in update_mv()
[all …]
Dvp9_bitstream.c50 static void write_intra_mode(vp9_writer *w, MB_PREDICTION_MODE mode, in write_intra_mode() argument
52 vp9_write_token(w, vp9_intra_mode_tree, probs, &intra_mode_encodings[mode]); in write_intra_mode()
55 static void write_inter_mode(vp9_writer *w, MB_PREDICTION_MODE mode, in write_inter_mode() argument
58 vp9_write_token(w, vp9_inter_mode_tree, probs, in write_inter_mode()
70 int n, vp9_writer *w) { in prob_diff_update() argument
79 vp9_cond_prob_diff_update(w, &probs[i], branch_ct[i]); in prob_diff_update()
84 vp9_writer *w) { in write_selected_tx_size() argument
89 vp9_write(w, tx_size != TX_4X4, tx_probs[0]); in write_selected_tx_size()
91 vp9_write(w, tx_size != TX_8X8, tx_probs[1]); in write_selected_tx_size()
93 vp9_write(w, tx_size != TX_16X16, tx_probs[2]); in write_selected_tx_size()
[all …]
Dvp9_writer.h86 static void vp9_write_bit(vp9_writer *w, int bit) { in vp9_write_bit() argument
87 vp9_write(w, bit, 128); // vp9_prob_half in vp9_write_bit()
90 static void vp9_write_literal(vp9_writer *w, int data, int bits) { in vp9_write_literal() argument
94 vp9_write_bit(w, 1 & (data >> bit)); in vp9_write_literal()
97 #define vp9_write_prob(w, v) vp9_write_literal((w), (v), 8) argument
Dvp9_treewriter.h31 static INLINE void vp9_write_tree(vp9_writer *w, const vp9_tree_index *tree, in vp9_write_tree() argument
36 vp9_write(w, bit, probs[i >> 1]); in vp9_write_tree()
41 static INLINE void vp9_write_token(vp9_writer *w, const vp9_tree_index *tree, in vp9_write_token() argument
44 vp9_write_tree(w, tree, probs, token->value, token->len, 0); in vp9_write_token()
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/common/
Dvp9_convolve.c24 int x0_q4, int x_step_q4, int w, int h) { in convolve_horiz() argument
29 for (x = 0; x < w; ++x) { in convolve_horiz()
46 int x0_q4, int x_step_q4, int w, int h) { in convolve_avg_horiz() argument
51 for (x = 0; x < w; ++x) { in convolve_avg_horiz()
69 int y0_q4, int y_step_q4, int w, int h) { in convolve_vert() argument
73 for (x = 0; x < w; ++x) { in convolve_vert()
92 int y0_q4, int y_step_q4, int w, int h) { in convolve_avg_vert() argument
96 for (x = 0; x < w; ++x) { in convolve_avg_vert()
119 int w, int h) { in convolve() argument
127 assert(w <= 64); in convolve()
[all …]
/hardware/ti/omap4xxx/camera/
DNV12_resize.c127 mmUchar w; in VT_resizeFrame_Video_opt2_lp() local
147 w = bWeights[xf][yf][0]; in VT_resizeFrame_Video_opt2_lp()
148 accum_1 = (w * in11); in VT_resizeFrame_Video_opt2_lp()
154 w = bWeights[xf][yf][1]; in VT_resizeFrame_Video_opt2_lp()
155 accum_1 += (w * in12); in VT_resizeFrame_Video_opt2_lp()
161 w = bWeights[xf][yf][3]; in VT_resizeFrame_Video_opt2_lp()
162 accum_1 += (w * in21); in VT_resizeFrame_Video_opt2_lp()
168 w = bWeights[xf][yf][2]; in VT_resizeFrame_Video_opt2_lp()
169 accum_1 += (w * in22); in VT_resizeFrame_Video_opt2_lp()
215 mmUchar w; in VT_resizeFrame_Video_opt2_lp() local
[all …]
/hardware/ti/omap4-aah/camera/
DNV12_resize.cpp128 mmUchar w; in VT_resizeFrame_Video_opt2_lp() local
145 w = bWeights[xf][yf][0]; in VT_resizeFrame_Video_opt2_lp()
146 accum_1 = (w * in11); in VT_resizeFrame_Video_opt2_lp()
152 w = bWeights[xf][yf][1]; in VT_resizeFrame_Video_opt2_lp()
153 accum_1 += (w * in12); in VT_resizeFrame_Video_opt2_lp()
159 w = bWeights[xf][yf][3]; in VT_resizeFrame_Video_opt2_lp()
160 accum_1 += (w * in21); in VT_resizeFrame_Video_opt2_lp()
166 w = bWeights[xf][yf][2]; in VT_resizeFrame_Video_opt2_lp()
167 accum_1 += (w * in22); in VT_resizeFrame_Video_opt2_lp()
210 mmUchar w; in VT_resizeFrame_Video_opt2_lp() local
[all …]
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp8/encoder/
Dencodemv.c24 vp8_writer *const w, in encode_mvcomponent() argument
34 vp8_write(w, 0, p [mvpis_short]); in encode_mvcomponent()
35 vp8_treed_write(w, vp8_small_mvtree, p + MVPshort, x, 3); in encode_mvcomponent()
44 vp8_write(w, 1, p [mvpis_short]); in encode_mvcomponent()
47 vp8_write(w, (x >> i) & 1, p [MVPbits + i]); in encode_mvcomponent()
54 vp8_write(w, (x >> i) & 1, p [MVPbits + i]); in encode_mvcomponent()
59 vp8_write(w, (x >> 3) & 1, p [MVPbits + 3]); in encode_mvcomponent()
62 vp8_write(w, v < 0, p [MVPsign]); in encode_mvcomponent()
68 void vp8_encode_motion_vector(vp8_writer *w, const MV *mv, const MV_CONTEXT *mvc) in vp8_encode_motion_vector() argument
95 encode_mvcomponent(w, mv->row >> 1, &mvc[0]); in vp8_encode_motion_vector()
[all …]
Dbitstream.c65 vp8_writer *const w, in update_mode() argument
95 vp8_write_bit(w, 1); in update_mode()
101 vp8_write_literal(w, Pcur[j] = p ? p : 1, 8); in update_mode()
106 vp8_write_bit(w, 0); in update_mode()
113 vp8_writer *const w = cpi->bc; in update_mbintra_mode_probs() local
120 w, VP8_YMODES, vp8_ymode_encodings, vp8_ymode_tree, in update_mbintra_mode_probs()
129 w, VP8_UV_MODES, vp8_uv_mode_encodings, vp8_uv_mode_tree, in update_mbintra_mode_probs()
163 void vp8_pack_tokens_c(vp8_writer *w, const TOKENEXTRA *p, int xcount) in vp8_pack_tokens_c() argument
168 int count = w->count; in vp8_pack_tokens_c()
169 unsigned int range = w->range; in vp8_pack_tokens_c()
[all …]
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/common/x86/
Dvp9_asm_stubs.c31 int w, int h) { \
34 while (w >= 16) { \
43 w -= 16; \
45 while (w >= 8) { \
54 w -= 8; \
56 while (w >= 4) { \
65 w -= 4; \
68 while (w >= 16) { \
77 w -= 16; \
79 while (w >= 8) { \
[all …]
/hardware/libhardware/include/hardware/
Dcamera.h74 int (*dequeue_buffer)(struct preview_stream_ops* w,
76 int (*enqueue_buffer)(struct preview_stream_ops* w,
78 int (*cancel_buffer)(struct preview_stream_ops* w,
80 int (*set_buffer_count)(struct preview_stream_ops* w, int count);
82 int w, int h, int format);
83 int (*set_crop)(struct preview_stream_ops *w,
85 int (*set_usage)(struct preview_stream_ops* w, int usage);
86 int (*set_swap_interval)(struct preview_stream_ops *w, int interval);
87 int (*get_min_undequeued_buffer_count)(const struct preview_stream_ops *w,
89 int (*lock_buffer)(struct preview_stream_ops* w,
[all …]
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/common/arm/neon/
Dvp9_convolve_neon.c19 int w, int h) { in vp9_convolve8_neon() argument
33 w, h); in vp9_convolve8_neon()
43 w, intermediate_height); in vp9_convolve8_neon()
49 w, h); in vp9_convolve8_neon()
56 int w, int h) { in vp9_convolve8_avg_neon() argument
65 w, h); in vp9_convolve8_avg_neon()
73 w, intermediate_height); in vp9_convolve8_avg_neon()
77 w, h); in vp9_convolve8_avg_neon()
/hardware/intel/common/libmix/mix_vbp/viddec_fw/fw/codecs/h264/parser/
Dviddec_h264_workload.c16 #define PUT_BSD_PP1_IMG_DISPOSABLE_FLAG_BIT(w) (((uint32_t)w)&0x1) argument
17 #define PUT_BSD_PP1_SLICE_TYPE_BITS(w) ((((uint32_t)w)&0x7)<<1) argument
18 #define PUT_BSD_PP1_WEIGHTED_BIPRED_IDC_BITS(w) ((((uint32_t)w)&0x3)<<4) argument
19 #define PUT_BSD_PP1_WEIGHTED_PRED_FLAG_BIT(w) ((((uint32_t)w)&0x1)<<6) argument
20 #define PUT_BSD_PP1_NUM_REF_IDX_L0_BITS(w) ((((uint32_t)w)&0x3F)<<8) argument
21 #define PUT_BSD_PP1_NUM_REF_IDX_L1_BITS(w) ((((uint32_t)w)&0x3F)<<16) argument
24 #define PUT_BSD_PP2_CABAC_INIT_IDC_BITS(w) (((uint32_t)w)&0x3) argument
25 #define PUT_BSD_PP2_QP_BITS(w) ((((uint32_t)w)&0x3F)<<2) argument
26 #define PUT_BSD_PP2_DISABLE_DBF_IDC_BITS(w) ((((uint32_t)w)&0x3)<<8) argument
27 #define PUT_BSD_PP2_ALPHA_C0_OFFSET_DIV2_BITS(w) ((((uint32_t)w)&0xF)<<10) argument
[all …]
/hardware/intel/img/hwcomposer/moorefield_hdmi/common/planes/
DDisplayPlane.cpp93 void DisplayPlane::checkPosition(int& x, int& y, int& w, int& h) in checkPosition() argument
104 if ((x + w) > mode->hdisplay) in checkPosition()
105 w = mode->hdisplay - x; in checkPosition()
110 void DisplayPlane::setPosition(int x, int y, int w, int h) in setPosition() argument
112 ALOGTRACE("Position = %d, %d - %dx%d", x, y, w, h); in setPosition()
118 mPosition.w = (int) (((float)w/DEFAULT_DRM_FB_WIDTH)*mDisplayWidth); in setPosition()
123 mDisplayCrop.w = mDisplayWidth; in setPosition()
130 mPosition.w != w || mPosition.h != h) { in setPosition()
134 mPosition.w = w; in setPosition()
139 void DisplayPlane::setSourceCrop(int x, int y, int w, int h) in setSourceCrop() argument
[all …]
/hardware/intel/img/hwcomposer/merrifield/common/planes/
DDisplayPlane.cpp87 void DisplayPlane::checkPosition(int& x, int& y, int& w, int& h) in checkPosition() argument
98 if ((x + w) > mode->hdisplay) in checkPosition()
99 w = mode->hdisplay - x; in checkPosition()
104 void DisplayPlane::setPosition(int x, int y, int w, int h) in setPosition() argument
106 ATRACE("Position = %d, %d - %dx%d", x, y, w, h); in setPosition()
109 mPosition.w != w || mPosition.h != h) { in setPosition()
113 mPosition.w = w; in setPosition()
118 void DisplayPlane::setSourceCrop(int x, int y, int w, int h) in setSourceCrop() argument
120 ATRACE("Source crop = %d, %d - %dx%d", x, y, w, h); in setSourceCrop()
123 mSrcCrop.w != w || mSrcCrop.h != h) { in setSourceCrop()
[all …]
/hardware/qcom/display/msm8960/libtilerenderer/
Dtilerenderer.cpp59 int l = left, t = (height - bottom), w = (right - left), h = (bottom - top), preserve = 0; in startTileRendering() local
67 if (w > width || h > height) { in startTileRendering()
68 w = (w > width) ? width : w; in startTileRendering()
77 glStartTilingQCOM(l, t, w, h, GL_COLOR_BUFFER_BIT0_QCOM); in startTileRendering()
79 glStartTilingQCOM(l, t, w, h, GL_NONE); in startTileRendering()
/hardware/qcom/display/msm8960/liboverlay/
DoverlayUtils.h158 w(0), h(0), in Dim()
162 w(_w), h(_h) {} in Dim()
165 w(_w), h(_h), in Dim()
168 return (x+w <= _w && y+h <= _h); in check()
174 d.w == w && d.h == h &&
185 uint32_t w; member
193 Whf() : w(0), h(0), format(0), size(0) {} in Whf()
195 w(wi), h(he), format(f), size(0) {} in Whf()
197 w(wi), h(he), format(f), size(s) {} in Whf()
200 return whf.w == w && whf.h == h &&
[all …]
/hardware/intel/img/hwcomposer/merrifield/test/
Dnv12_ved_test.cpp32 void fillYUVBuffer(uint8_t* buf, int w, int h, int stride) { in fillYUVBuffer() argument
33 const int blockWidth = w > 16 ? w / 16 : 1; in fillYUVBuffer()
41 for (int x = 0; x < w; x++) { in fillYUVBuffer()
47 if (x < w / 2 && y < h / 2) { in fillYUVBuffer()
49 if (x * 2 < w / 2 && y * 2 < h / 2) { in fillYUVBuffer()
64 void loadYUVBufferFromFile(uint8_t* buf, int w, int h, int stride) { in loadYUVBufferFromFile() argument
75 printf("buf=%p, w=%d,h=%d,stride=%d\n", buf, w, h, stride); in loadYUVBufferFromFile()
80 fread(buf + offset, w, 1, fp); in loadYUVBufferFromFile()
/hardware/qcom/display/msm8994/liboverlay/
DoverlayMdssRot.cpp81 return utils::Whf(mRotInfo.dst_rect.w, mRotInfo.dst_rect.h, in getDstWhf()
87 mRotInfo.dst_rect.w, mRotInfo.dst_rect.h); in getDstDimensions()
117 mRotInfo.src.width = whf.w; in setSource()
124 mRotInfo.src_rect.w = crop.w; in setCrop()
150 utils::swap(mRotInfo.dst_rect.w, mRotInfo.dst_rect.h); in doTransform()
155 mRotInfo.src_rect.w,mRotInfo.src_rect.h); in commit()
162 mRotInfo.src_rect.w = adjCrop.w; in commit()
167 mRotInfo.dst_rect.w = mDownscale ? in commit()
168 mRotInfo.src_rect.w / mDownscale : mRotInfo.src_rect.w; in commit()
311 ovutils::Whf destWhf(mRotInfo.dst_rect.w, mRotInfo.dst_rect.h, in calcOutputBufSize()
[all …]
/hardware/qcom/display/msm8909/liboverlay/
DoverlayMdssRot.cpp81 return utils::Whf(mRotInfo.dst_rect.w, mRotInfo.dst_rect.h, in getDstWhf()
87 mRotInfo.dst_rect.w, mRotInfo.dst_rect.h); in getDstDimensions()
117 mRotInfo.src.width = whf.w; in setSource()
124 mRotInfo.src_rect.w = crop.w; in setCrop()
150 utils::swap(mRotInfo.dst_rect.w, mRotInfo.dst_rect.h); in doTransform()
155 mRotInfo.src_rect.w,mRotInfo.src_rect.h); in commit()
162 mRotInfo.src_rect.w = adjCrop.w; in commit()
167 mRotInfo.dst_rect.w = mDownscale ? in commit()
168 mRotInfo.src_rect.w / mDownscale : mRotInfo.src_rect.w; in commit()
311 ovutils::Whf destWhf(mRotInfo.dst_rect.w, mRotInfo.dst_rect.h, in calcOutputBufSize()
[all …]
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/common/mips/dspr2/
Dvp9_convolve8_avg_dspr2.c28 int32_t w, in convolve_avg_vert_4_dspr2() argument
54 for (x = 0; x < w; x += 4) { in convolve_avg_vert_4_dspr2()
351 int w, int h) { in vp9_convolve8_avg_vert_dspr2() argument
357 w, h); in vp9_convolve8_avg_vert_dspr2()
363 w, h); in vp9_convolve8_avg_vert_dspr2()
377 switch (w) { in vp9_convolve8_avg_vert_dspr2()
384 filter_y, w, h); in vp9_convolve8_avg_vert_dspr2()
397 w, h); in vp9_convolve8_avg_vert_dspr2()
405 w, h); in vp9_convolve8_avg_vert_dspr2()
414 int w, int h) { in vp9_convolve8_avg_dspr2() argument
[all …]
Dvp9_convolve8_dspr2.c915 const int16_t *filter, int w, int h) { in convolve_horiz_transposed() argument
919 for (x = 0; x < w; ++x) { in convolve_horiz_transposed()
935 int w, int h) { in copy_horiz_transposed() argument
939 for (x = 0; x < w; ++x) { in copy_horiz_transposed()
952 int w, int h) { in vp9_convolve8_dspr2() argument
972 w, h); in vp9_convolve8_dspr2()
980 w, h); in vp9_convolve8_dspr2()
986 w, intermediate_height); in vp9_convolve8_dspr2()
991 w, intermediate_height); in vp9_convolve8_dspr2()
999 switch (w) { in vp9_convolve8_dspr2()
[all …]
/hardware/qcom/display/msm8084/liboverlay/
DoverlayUtils.h162 w(0), h(0), in Dim()
166 w(_w), h(_h) {} in Dim()
169 w(_w), h(_h), in Dim()
172 return (x+w <= _w && y+h <= _h); in check()
178 d.w == w && d.h == h &&
189 uint32_t w; member
197 Whf() : w(0), h(0), format(0), size(0) {} in Whf()
199 w(wi), h(he), format(f), size(0) {} in Whf()
201 w(wi), h(he), format(f), size(s) {} in Whf()
204 return whf.w == w && whf.h == h &&
[all …]
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp8/encoder/arm/armv5te/
Dboolhuff_armv5te.asm95 sub r4, r4, #1 ; x = w->pos-1
99 strb r9, [r7, r4] ; w->buffer[x] =(unsigned char)0
109 ldrb r9, [r7, r4] ; w->buffer[x]
111 strb r9, [r7, r4] ; w->buffer[x] + 1
116 ldr r4, [r0, #vp8_writer_pos] ; w->pos
119 add r1, r4, #1 ; w->pos++
126 strb r7, [r9, r4] ; w->buffer[w->pos++]
171 sub r4, r4, #1 ; x = w->pos-1
175 strb r9, [r7, r4] ; w->buffer[x] =(unsigned char)0
185 ldrb r9, [r7, r4] ; w->buffer[x]
[all …]

12345678910>>...15