Home
last modified time | relevance | path

Searched refs:align (Results 1 – 25 of 51) sorted by relevance

123

/device/generic/goldfish-opengl/system/OpenglSystemCommon/
DFormatConversions.cpp54 uint32_t align = 16; in get_yv12_offsets() local
55 uint32_t yStride = (width + (align - 1)) & ~(align-1); in get_yv12_offsets()
56 uint32_t uvStride = (yStride / 2 + (align - 1)) & ~(align-1); in get_yv12_offsets()
69 uint32_t align = 1; in get_yuv420p_offsets() local
70 uint32_t yStride = (width + (align - 1)) & ~(align-1); in get_yuv420p_offsets()
71 uint32_t uvStride = (yStride / 2 + (align - 1)) & ~(align-1); in get_yuv420p_offsets()
93 int align = 16; in rgb565_to_yv12() local
94 int yStride = (width + (align -1)) & ~(align-1); in rgb565_to_yv12()
95 int cStride = (yStride / 2 + (align - 1)) & ~(align-1); in rgb565_to_yv12()
134 int align = 16; in rgb888_to_yv12() local
[all …]
/device/generic/goldfish-opengl/android-emu/android/base/
DAlignedBuf.h35 template <class T, size_t align>
39 static_assert(align && ((align & (align - 1)) == 0), in AlignedBuf()
103 size_t pad = std::max(align, sizeof(T)); in resizeImpl()
105 size_t newSizeBytes = ((align - 1 + newSize * sizeof(T) + pad) / align) * align; in resizeImpl()
122 size_t actualAlign = std::max(align, sizeof(void*)); in reallocImpl()
149 void* aligned_buf_alloc(size_t align, size_t size);
DAlignedBuf.cpp20 void* aligned_buf_alloc(size_t align, size_t size) { in aligned_buf_alloc() argument
21 size_t actualAlign = std::max(align, sizeof(void*)); in aligned_buf_alloc()
/device/google/cuttlefish/common/libs/utils/
Dsize_utils.cpp24 uint32_t align = 1 << align_log; in AlignToPowerOf2() local
25 return ((val + (align - 1)) / align) * align; in AlignToPowerOf2()
/device/linaro/hikey/hifi/xaf/hifi-dpf/ipc/xt-shmem/hikey/
Dint_vector.S35 .align 16 /* minimize crossing cache boundaries */
42 .align 16,,8 /* try to keep it all in one cache line */
49 .align 16,,XCHAL_CP_MAX<<2 /* minimize crossing cache boundaries */
54 .align 4
63 .align 4
88 .align 4
109 .align 4
123 .align 4
138 .align 4
152 .align 4
[all …]
Darch_hifi330.S46 .align 4
49 .align 4
77 .align 4
116 .align 4
150 .align 4
165 .align 4
180 .align 4
234 .align 4
302 .align 4
366 .align 4
[all …]
/device/linaro/hikey/hifi/xaf/hifi-dpf/include/sys/xt-shmem/
Dxf-mem.h62 static inline void * xf_mem_alloc(u32 size, u32 align, u32 core, u32 shared) in xf_mem_alloc() argument
77 #define xf_mem_alloc(size, align, core, shared) \ argument
82 __data = (xf_mem_alloc)(size, align, core, shared); \
159 static inline int xf_mm_alloc_buffer(u32 size, u32 align, u32 core, xf_mm_buffer_t *b) in xf_mm_alloc_buffer() argument
163 XF_CHK_ERR(b->addr = xf_mem_alloc(size, align, core, 0), -ENOMEM); in xf_mm_alloc_buffer()
/device/linaro/hikey/hifi/xaf/hifi-dpf/core/util/gdbstub/
Dgdbstub-entry.S45 .align 4
53 .align 4
57 .align 4
167 .align 4
184 .align 4
193 .align 4
/device/linaro/hikey/hifi/xaf/hifi-dpf/audio/
Dxa-class-base.h50 …xa_codec_memtab_f)(XACodecBase *codec, WORD32 i, WORD32 type, WORD32 size, WORD32 align, u32 core);
218 #define XMALLOC(p, size, align, core) \ argument
221 if (xf_mm_alloc_buffer((size), (align), (core), (p)) != 0) \
227 if (((u32)((p)->addr) & ((align) - 1)) != 0) \
229 TRACE(ERROR, _x("Invalid %d-algnment: %p"), (align), (p)->addr); \
Dxa-class-base.c101 WORD32 size, align, type; in xa_base_postinit() local
112 XA_API(base, XA_API_CMD_GET_MEM_INFO_ALIGNMENT, i, &align); in xa_base_postinit()
122 XF_CHK_ERR((XF_CFG_CODEC_SCRATCHMEM_ALIGN & (align - 1)) == 0, XA_API_FATAL_MEM_ALIGN); in xa_base_postinit()
127 …TRACE(INIT, _b("Mem tab %d: sz=%d al=%d ty=%d Scratch memory (%p)"), i, size, align, type, base->s… in xa_base_postinit()
133 XMALLOC(&base->persist, size, align, core); in xa_base_postinit()
138 …TRACE(INIT, _b("Mem tab %d: sz=%d al=%d ty=%d Persistent memory (%p)"), i, size, align, type, base… in xa_base_postinit()
145 CODEC_API(base, memtab, i, type, size, align, core); in xa_base_postinit()
151 TRACE(ERROR, _x("Invalid memory type: [%d]=(%u, %u, %u)"), i, type, size, align); in xa_base_postinit()
/device/generic/goldfish/camera/
DConverters.cpp99 const int y_stride = align(width, 16); in YV12ToRGB565()
100 const int uv_stride = align(y_stride / 2, 16); in YV12ToRGB565()
111 const int y_stride = align(width, 16); in YV12ToRGB32()
112 const int uv_stride = align(y_stride / 2, 16); in YV12ToRGB32()
123 const int y_stride = align(width, 16); in YU12ToRGB32()
124 const int uv_stride = align(y_stride / 2, 16); in YU12ToRGB32()
DEmulatedFakeRotatingCameraDevice.cpp72 int align = 16; in rgba8888_to_nv21() local
73 int yStride = (width + (align -1)) & ~(align-1); in rgba8888_to_nv21()
96 int align = 16; in nv21_to_rgba8888() local
97 int yStride = (width + (align -1)) & ~(align-1); in nv21_to_rgba8888()
DAlignment.h8 inline int align(int value, int alignment) { in align() function
/device/generic/goldfish-opengl/shared/OpenglCodecCommon/
DGLESTextureUtils.cpp18 #define HIGHEST_MULTIPLE_OF(align, x) \ argument
19 (( ( x ) + ( align ) - 1) & ~( ( align ) - 1)) \
201 static int computePitch(GLsizei inputWidth, GLenum format, GLenum type, int align) { in computePitch() argument
203 return HIGHEST_MULTIPLE_OF(align, unaligned_width); in computePitch()
206 …kingOffset(GLenum format, GLenum type, GLsizei width, GLsizei height, int align, int skipPixels, i… in computePackingOffset() argument
207 GLsizei alignedPitch = computePitch(width, format, type, align); in computePackingOffset()
/device/google/cuttlefish/guest/hals/gralloc/legacy/
Dgralloc_vsoc_priv.h50 static int align(int input) { in align() function
261 out->ystride = cuttlefish::screen::ScreenRegionView::align(width); in formatToYcbcr()
263 cuttlefish::screen::ScreenRegionView::align(out->ystride / 2); in formatToYcbcr()
305 w16 = cuttlefish::screen::ScreenRegionView::align(w); in formatToBytesPerFrame()
306 h16 = cuttlefish::screen::ScreenRegionView::align(h); in formatToBytesPerFrame()
Dgralloc.cpp64 bytes_per_line = ScreenRegionView::align(bytes_per_pixel * w); in gralloc_alloc_buffer()
66 bytes_per_line = ScreenRegionView::align(bytes_per_pixel * w); in gralloc_alloc_buffer()
/device/google/contexthub/firmware/lib/libc/
Dmemcpy-armv7m.S84 .align 2
109 .align 2
131 .align 2
153 .align 2
188 .align 2
/device/generic/opengl-transport/host/libs/virglrenderer/libOpenglRender/
DYUVConverter.cpp41 uint32_t align; in getPlanarYUVSizes() local
44 align = 16; in getPlanarYUVSizes()
47 align = 1; in getPlanarYUVSizes()
57 uint32_t yStride = (width + (align - 1)) & ~(align - 1); in getPlanarYUVSizes()
58 uint32_t cStride = (yStride / 2 + (align - 1)) & ~(align - 1); in getPlanarYUVSizes()
/device/generic/goldfish-opengl/system/gralloc/
Dgralloc_old.cpp662 int align = 1; in gralloc_alloc() local
707 align = 16*bpp; in gralloc_alloc()
732 align = 1; in gralloc_alloc()
738 align = 16; in gralloc_alloc()
747 align = 1; in gralloc_alloc()
810 size_t yStride = (w*bpp + (align - 1)) & ~(align-1); in gralloc_alloc()
811 size_t uvStride = (yStride / 2 + (align - 1)) & ~(align-1); in gralloc_alloc()
816 size_t bpr = (w*bpp + (align-1)) & ~(align-1); in gralloc_alloc()
1400 size_t align; in gralloc_lock_ycbcr() local
1412 align = 16; in gralloc_lock_ycbcr()
[all …]
/device/linaro/hikey/hifi/xaf/hifi-dpf/core/
Dxf-io.c52 int xf_input_port_init(xf_input_port_t *port, u32 size, u32 align, u32 core) in xf_input_port_init() argument
58 XF_CHK_ERR(port->buffer = xf_mem_alloc(size, align, core, 0), -ENOMEM); in xf_input_port_init()
78 TRACE(INIT, _b("input-port[%p] created - %p@%u[%u]"), port, port->buffer, align, size); in xf_input_port_init()
396 int xf_output_port_route(xf_output_port_t *port, u32 id, u32 n, u32 length, u32 align) in xf_output_port_route() argument
419 m->buffer = xf_mem_alloc(length, align, core, shared); in xf_output_port_route()
/device/linaro/hikey/hifi/xaf/hifi-dpf/include/
Dxf-io.h234 extern int xf_input_port_init(xf_input_port_t *port, u32 size, u32 align, u32 core);
274 extern int xf_output_port_route(xf_output_port_t *port, u32 id, u32 n, u32 length, u32 align);
/device/google/contexthub/firmware/lib/builtins/
Daeabi_uldivmod.S19 .align 2
Daeabi_ldivmod.S19 .align 2
/device/generic/goldfish/audio/
Dutil.cpp69 size_t align(size_t v, size_t a) { in align() function
75 return align(sample_rate * duration_ms / 1000, 16); in getBufferSizeFrames()
/device/generic/goldfish-opengl/system/hals/
Dallocator3.cpp102 int align = 1; in allocateImpl() local
158 align = 16 * bpp; in allocateImpl()
186 align = 16; in allocateImpl()
208 const size_t align1 = align - 1; in allocateImpl()

123