/external/qemu/distrib/sdl-1.2.15/src/audio/mint/ |
SDL_mintaudio_gsxb.c | 204 Uint16 test_format = SDL_FirstAudioFormat(spec->format); 207 resolution = spec->format & 0x00ff; 208 format_signed = ((spec->format & 0x8000)!=0); 209 format_bigendian = ((spec->format & 0x1000)!=0); 211 DEBUG_PRINT((DEBUG_NAME "asked: %d bits, ",spec->format & 0x00ff)); 212 DEBUG_PRINT(("signed=%d, ", ((spec->format & 0x8000)!=0))); 213 DEBUG_PRINT(("big endian=%d, ", ((spec->format & 0x1000)!=0))); 224 spec->format = test_format; 225 resolution = spec->format & 0xff; 226 format_signed = (spec->format & (1<<15)) [all...] |
/external/qemu/distrib/sdl-1.2.15/src/audio/nto/ |
SDL_nto_audio.c | 126 cpars->format.format = SND_PCM_SFMT_S16_LE; 127 cpars->format.interleave = 1; 128 cpars->format.rate = DEFAULT_CPARAMS_RATE; 129 cpars->format.voices = DEFAULT_CPARAMS_VOICES; 350 int format; local 384 /* Try for a closest match on audio format */ 385 format = 0; 386 /* can't use format as SND_PCM_SFMT_U8 = 0 in nto */ 389 for (test_format=SDL_FirstAudioFormat(spec->format); !found ; [all...] |
/external/chromium_org/media/filters/ |
skcanvas_video_renderer.cc | 15 static bool IsEitherYV12OrYV16(media::VideoFrame::Format format) { 16 return format == media::VideoFrame::YV12 || format == media::VideoFrame::YV16; 19 static bool IsEitherYV12OrYV16OrNative(media::VideoFrame::Format format) { 20 return IsEitherYV12OrYV16(format) || 21 format == media::VideoFrame::NATIVE_TEXTURE; 24 static bool IsEitherYV12OrYV12AOrYV16(media::VideoFrame::Format format) { [all...] |
/external/chromium_org/third_party/icu/source/test/intltest/ |
caltztst.cpp | 136 // Tries to mimic the Java Date.toString() format. 148 DateFormat* format = getDateFormat(); local 149 if (format == 0) 154 format->format(d, str); 155 releaseDateFormat(format); 164 DateFormat* format = getDateFormat(); local 165 if (format == 0) 170 TimeZone* save = format->getTimeZone().clone(); 171 format->setTimeZone(tz) [all...] |
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/gallivm/ |
lp_bld_printf.c | 87 char format[2 + 5 * LP_MAX_VECTOR_LENGTH + 2] = "%s"; local 119 /* Create format string and arguments */ 120 assert(strlen(format) + strlen(type_fmt) * length + 2 <= sizeof format); 124 util_strncat(format, type_fmt, sizeof(format) - strlen(format) - 1); 128 util_strncat(format, type_fmt, sizeof(format) - strlen(format) - 1) [all...] |
/external/chromium_org/third_party/mesa/src/src/glx/ |
singlepix.c | 38 __indirect_glGetSeparableFilter(GLenum target, GLenum format, GLenum type, 54 __GLX_SINGLE_PUT_LONG(4, format); 67 widthsize = __glImageSize(width, 1, 1, format, type, 0); 68 heightsize = __glImageSize(height, 1, 1, format, type, 0); 82 __glEmptyImage(gc, 1, width, 1, 1, format, type, rowBuf, row); 96 __glEmptyImage(gc, 1, height, 1, 1, format, type, colBuf, column); 111 void gl_dispatch_stub_GetSeparableFilterEXT (GLenum target, GLenum format, 123 p(target, format, type, row, column, span); 142 (void) memcpy((void *) (pc + 4), (void *) (&format), 4); 154 __glImageSize(width, 1, 1, format, type, 0) [all...] |
/external/compiler-rt/lib/sanitizer_common/tests/ |
sanitizer_scanf_interceptor_test.cc | 32 const char *format, ...) { 34 va_start(ap, format); 35 scanf_common(ctx, result, allowGnuMalloc, format, ap); 39 static void testScanf2(const char *format, int scanf_result, 44 testScanf3((void *)&scanf_sizes, scanf_result, allowGnuMalloc, format, 48 ASSERT_EQ(n, scanf_sizes.size()) << "Unexpected number of format arguments: '" 49 << format << "'"; 52 << "Unexpect write size for argument " << i << ", format string '" 53 << format << "'"; local 56 static void testScanf(const char *format, unsigned n, ...) [all...] |
/external/icu4c/test/intltest/ |
caltztst.cpp | 136 // Tries to mimic the Java Date.toString() format. 148 DateFormat* format = getDateFormat(); local 149 if (format == 0) 154 format->format(d, str); 155 releaseDateFormat(format); 164 DateFormat* format = getDateFormat(); local 165 if (format == 0) 170 TimeZone* save = format->getTimeZone().clone(); 171 format->setTimeZone(tz) [all...] |
/external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/heightmap/ |
RawHeightMap.java | 52 * Format specification for 8 bit precision heightmaps
56 * Format specification for 16 bit little endian heightmaps
60 * Format specification for 16 bit big endian heightmaps
63 private int format;
field in class:RawHeightMap 88 this.format = FORMAT_8BIT;
91 public RawHeightMap(String filename, int size, int format, boolean swapxy) throws Exception {
98 setup(new FileInputStream(filename), size, format, swapxy);
104 public RawHeightMap(InputStream stream, int size, int format, boolean swapxy) throws Exception {
105 setup(stream, size, format, swapxy);
108 public RawHeightMap(URL resource, int size, int format, boolean swapxy) throws Exception { 117 setup(resource.openStream(), size, format, swapxy); local [all...] |
/external/mesa3d/src/gallium/auxiliary/gallivm/ |
lp_bld_printf.c | 87 char format[2 + 5 * LP_MAX_VECTOR_LENGTH + 2] = "%s"; local 119 /* Create format string and arguments */ 120 assert(strlen(format) + strlen(type_fmt) * length + 2 <= sizeof format); 124 util_strncat(format, type_fmt, sizeof(format) - strlen(format) - 1); 128 util_strncat(format, type_fmt, sizeof(format) - strlen(format) - 1) [all...] |
/external/mesa3d/src/glx/ |
singlepix.c | 38 __indirect_glGetSeparableFilter(GLenum target, GLenum format, GLenum type, 54 __GLX_SINGLE_PUT_LONG(4, format); 67 widthsize = __glImageSize(width, 1, 1, format, type, 0); 68 heightsize = __glImageSize(height, 1, 1, format, type, 0); 82 __glEmptyImage(gc, 1, width, 1, 1, format, type, rowBuf, row); 96 __glEmptyImage(gc, 1, height, 1, 1, format, type, colBuf, column); 111 void gl_dispatch_stub_GetSeparableFilterEXT (GLenum target, GLenum format, 123 p(target, format, type, row, column, span); 142 (void) memcpy((void *) (pc + 4), (void *) (&format), 4); 154 __glImageSize(width, 1, 1, format, type, 0) [all...] |
/bionic/libc/bionic/ |
libc_logging.cpp | 127 /* Parse a decimal string from 'format + *ppos', 133 static unsigned parse_decimal(const char *format, int *ppos) { 134 const char* p = format + *ppos; 148 *ppos = p - format; 228 static void out_vformat(Out& o, const char* format, va_list args) { 240 char buffer[32]; /* temporary buffer used to format numbers */ 248 c = format[mm]; 255 o.Send(format+nn, mm-nn); 268 c = format[nn++]; 292 width = (int)parse_decimal(format, &nn) [all...] |
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/util/ |
u_pack_color.h | 64 enum pipe_format format, union util_color *uc) 66 switch (format) { 154 util_format_write_4ub(format, src, 0, uc, 0, 0, 0, 1, 1); 164 util_unpack_color_ub(enum pipe_format format, union util_color *uc, 167 switch (format) { 320 util_format_read_4ub(format, dst, 0, uc, 0, 0, 0, 1, 1); 334 util_pack_color(const float rgba[4], enum pipe_format format, union util_color *uc) 341 if (util_format_get_component_bits(format, UTIL_FORMAT_COLORSPACE_RGB, 0) <= 8) { 342 /* format uses 8-bit components or less */ 349 switch (format) { [all...] |
/external/chromium_org/third_party/mesa/src/src/mesa/state_tracker/ |
st_cb_eglimage.c | 44 * Return the base format just like _mesa_base_fbo_format does. 47 st_pipe_format_to_base_format(enum pipe_format format) 51 if (util_format_is_depth_or_stencil(format)) { 52 if (util_format_is_depth_and_stencil(format)) { 56 if (format == PIPE_FORMAT_S8_UINT) 64 if (util_format_has_alpha(format)) 88 strb->Base.Format = st_pipe_format_to_mesa_format(ps->format); 89 strb->Base._BaseFormat = st_pipe_format_to_base_format(ps->format); 110 /* map pipe format to base format * [all...] |
/external/mdnsresponder/mDNSCore/ |
mDNSDebug.h | 34 // warning: `#' flag used with `%s' printf format (for %#s -- pascal string format) 35 // warning: repeated `#' flag in format (for %##s -- DNS name string format) 36 // warning: double format, pointer arg (arg 2) (for %.4a, %.16a, %#a -- IP address formats) 61 #define IS_A_PRINTF_STYLE_FUNCTION(F,A) __attribute__ ((format(printf,F,A))) 119 extern void LogMsg_(const char *format, ...) IS_A_PRINTF_STYLE_FUNCTION(1,2); 120 extern void LogOperation_(const char *format, ...) IS_A_PRINTF_STYLE_FUNCTION(1,2); 121 extern void LogSPS_(const char *format, ...) IS_A_PRINTF_STYLE_FUNCTION(1,2); 122 extern void LogInfo_(const char *format, ...) IS_A_PRINTF_STYLE_FUNCTION(1,2) [all...] |
/external/mesa3d/src/gallium/auxiliary/util/ |
u_pack_color.h | 64 enum pipe_format format, union util_color *uc) 66 switch (format) { 154 util_format_write_4ub(format, src, 0, uc, 0, 0, 0, 1, 1); 164 util_unpack_color_ub(enum pipe_format format, union util_color *uc, 167 switch (format) { 320 util_format_read_4ub(format, dst, 0, uc, 0, 0, 0, 1, 1); 334 util_pack_color(const float rgba[4], enum pipe_format format, union util_color *uc) 341 if (util_format_get_component_bits(format, UTIL_FORMAT_COLORSPACE_RGB, 0) <= 8) { 342 /* format uses 8-bit components or less */ 349 switch (format) { [all...] |
/external/mesa3d/src/mesa/state_tracker/ |
st_cb_eglimage.c | 44 * Return the base format just like _mesa_base_fbo_format does. 47 st_pipe_format_to_base_format(enum pipe_format format) 51 if (util_format_is_depth_or_stencil(format)) { 52 if (util_format_is_depth_and_stencil(format)) { 56 if (format == PIPE_FORMAT_S8_UINT) 64 if (util_format_has_alpha(format)) 88 strb->Base.Format = st_pipe_format_to_mesa_format(ps->format); 89 strb->Base._BaseFormat = st_pipe_format_to_base_format(ps->format); 110 /* map pipe format to base format * [all...] |
/frameworks/base/graphics/java/android/graphics/ |
YuvImage.java | 39 * The YUV format as defined in {@link ImageFormat}. 70 * @param format The YUV data format as defined in {@link ImageFormat}. 75 * padding and derives the row bytes by format and width itself. 76 * @throws IllegalArgumentException if format is not support; width or height <= 0; or yuv is 79 public YuvImage(byte[] yuv, int format, int width, int height, int[] strides) { 80 if (format != ImageFormat.NV21 && 81 format != ImageFormat.YUY2) { 97 mStrides = calculateStrides(width, format); 103 mFormat = format; [all...] |
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/ |
ImageStitcher.java | 29 import android.filterfw.format.ImageFormat; 75 private FrameFormat calcOutputFormatForInput(FrameFormat format) { 76 MutableFrameFormat outputFormat = format.mutableCopy(); 78 mInputWidth = format.getWidth(); 79 mInputHeight = format.getHeight(); 95 FrameFormat format = input.getFormat(); local 99 mOutputFrame = context.getFrameManager().newFrame(calcOutputFormatForInput(format)); 101 if ((format.getWidth() != mInputWidth) || 102 (format.getHeight() != mInputHeight)) { 103 // CHECK input format her [all...] |
/hardware/akm/AK8975_FS/akmdfs/ |
AKFS_Common.h | 105 #define AKMDEBUG(level, format, ...) \ 107 ? (fprintf(stdout, (format), ##__VA_ARGS__)) \ 110 #define AKMDEBUG(level, format, ...) 115 #define AKMDATA(flag, format, ...) \ 117 ? (fprintf(stdout, (format), ##__VA_ARGS__)) \ 120 #define AKMDATA(flag, format, ...) 125 #define AKM_LOG(format, ...) ALOGD((format), ##__VA_ARGS__) 127 #define AKM_LOG(format, ...)
|
/libcore/luni/src/test/java/libcore/java/text/ |
SimpleDateFormatTest.java | 179 SimpleDateFormat format = new SimpleDateFormat("EEE MMM dd HH:mm:ss yyyy", Locale.US); local 180 format.setTimeZone(TimeZone.getTimeZone("UTC")); 183 format.format(new Date(((long) Integer.MIN_VALUE + Integer.MIN_VALUE) * 1000L))); 185 format.format(new Date(Integer.MIN_VALUE * 1000L))); 187 format.format(new Date(0L))); 189 format.format(new Date(Integer.MAX_VALUE * 1000L))) 278 SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm zzzz", Locale.US); local 285 SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm zzzz", Locale.US); local 293 SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm zzzz", Locale.US); local 302 SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm zzzz", Locale.US); local 310 SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm zzzz", Locale.US); local [all...] |
/ndk/tests/build/issue20862-libpng-O0/jni/ |
pngdebug.h | 113 char format[256]; \ 114 snprintf(format,256,"%s%s%s",(num_tabs==1 ? "\t" : \ 117 fprintf(PNG_DEBUG_FILE,format); \ 124 char format[256]; \ 125 snprintf(format,256,"%s%s%s",(num_tabs==1 ? "\t" : \ 128 fprintf(PNG_DEBUG_FILE,format,p1); \ 135 char format[256]; \ 136 snprintf(format,256,"%s%s%s",(num_tabs==1 ? "\t" : \ 139 fprintf(PNG_DEBUG_FILE,format,p1,p2); \
|
/packages/apps/Mms/src/com/android/mms/ |
LogTag.java | 70 private static String logFormat(String format, Object... args) { 76 String s = String.format(format, args); 81 public static void debug(String format, Object... args) { 82 Log.d(TAG, logFormat(format, args)); 85 public static void warn(String format, Object... args) { 86 Log.w(TAG, logFormat(format, args)); 89 public static void error(String format, Object... args) { 90 Log.e(TAG, logFormat(format, args));
|
/cts/tests/tests/hardware/src/android/hardware/camera2/cts/ |
CameraTestUtils.java | 119 * Check if the format is a legal YUV format camera supported. 121 public static void checkYuvFormat(int format) { 122 if ((format != ImageFormat.YUV_420_888) && 123 (format != ImageFormat.NV21) && 124 (format != ImageFormat.YV12) && 125 (format != ImageFormat.Y8) && 126 (format != ImageFormat.Y16)) { 127 fail("Wrong formats: " + format); 132 * Check if image size and format match given size and format 155 int format = image.getFormat(); local 229 int format = image.getFormat(); local [all...] |
/cts/tests/tests/jni/libjnitest/ |
helper.c | 27 char *failure(const char *format, ...) { 31 va_start(args, format); 32 LOG_PRI_VA(ANDROID_LOG_ERROR, LOG_TAG, format, args); 35 va_start(args, format); 36 int count = vasprintf(&result, format, args);
|