Home
last modified time | relevance | path

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

12345678910>>...13

/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
/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/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/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/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp8/encoder/
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 …]
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 …]
/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/img/hwcomposer/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/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/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/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/samsung_slsi/exynos5/gralloc/
Dgralloc.cpp71 int l, int t, int w, int h,
129 static int gralloc_alloc_rgb(int ionfd, int w, int h, int format, int usage, in gralloc_alloc_rgb() argument
167 *stride = w; in gralloc_alloc_rgb()
169 size = w * h; in gralloc_alloc_rgb()
176 bpr = ALIGN(w*bpp, 64); in gralloc_alloc_rgb()
193 *hnd = new private_handle_t(fd, size, usage, w, h, format, *stride, in gralloc_alloc_rgb()
199 static int gralloc_alloc_framework_yuv(int ionfd, int w, int h, int format, in gralloc_alloc_framework_yuv() argument
209 *stride = ALIGN(w, 16); in gralloc_alloc_framework_yuv()
213 *stride = w; in gralloc_alloc_framework_yuv()
225 *hnd = new private_handle_t(fd, size, usage, w, h, format, *stride, h); in gralloc_alloc_framework_yuv()
[all …]
/hardware/qcom/display/msm8974/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/samsung_slsi/exynos5/include/
DExynosRect.h43 int w; //!< width member
61 w = _w_;
73 w = other->w; in ExynosRect()
85 w = other.w;
98 && w == other.w
Dexynos_format.h84 #define GET_32BPP_FRAME_SIZE(w, h) (((w) * (h)) << 2) argument
85 #define GET_24BPP_FRAME_SIZE(w, h) (((w) * (h)) * 3) argument
86 #define GET_16BPP_FRAME_SIZE(w, h) (((w) * (h)) << 1) argument
DExynosCamera.h347 bool setVideoSize(int w, int h);
349 bool getVideoSize(int *w, int *h);
461 bool getJpegThumbnailSize(int *w, int *h);
488 bool getPictureSize(int *w, int *h);
502 bool getPreviewSize(int *w, int *h);
520 bool getSupportedJpegThumbnailSizes(int *w, int *h);
525 bool getSupportedPictureSizes(int *w, int *h);
534 bool getSupportedPreviewSizes(int *w, int *h);
540 bool getSupportedVideoSizes(int *w, int *h);
636 bool setJpegThumbnailSize(int w, int h);
[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 …]
/hardware/intel/img/hwcomposer/ips/anniedale/
DAnnOverlayPlane.cpp193 uint32_t w = mapper.getWidth(); in bufferOffsetSetup() local
341 backBuffer->SWIDTH = mapper.getCrop().w; in coordinateSetup()
343 backBuffer->SWIDTHSW = calculateSWidthSW(0, mapper.getCrop().w) << 2; in coordinateSetup()
362 int x, y, w, h; in scalingSetup() local
374 x = mode->hdisplay - mPosition.x - mPosition.w; in scalingSetup()
386 w = mPosition.w; in scalingSetup()
390 checkPosition(x, y, w, h); in scalingSetup()
391 VLOGTRACE("final position (%d, %d, %d, %d)", x, y, w, h); in scalingSetup()
393 if ((w <= 0) || (h <= 0)) { in scalingSetup()
400 backBuffer->DWINSZ = (h << 16) | w; in scalingSetup()
[all …]

12345678910>>...13