Searched refs:format (Results 1 - 25 of 828) sorted by relevance

1234567891011>>

/frameworks/base/media/mca/filterfw/java/android/filterfw/format/
H A Dpackage-info.java4 package android.filterfw.format;
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/decoder/
H A DDecoderUtil.java25 public static boolean isAudioFormat(MediaFormat format) { argument
26 return format.getString(MediaFormat.KEY_MIME).startsWith("audio/");
29 public static boolean isVideoFormat(MediaFormat format) { argument
30 return format.getString(MediaFormat.KEY_MIME).startsWith("video/");
H A DAudioTrackDecoder.java45 public AudioTrackDecoder(int trackIndex, MediaFormat format, Listener listener) { argument
46 super(trackIndex, format, listener);
48 if (!DecoderUtil.isAudioFormat(format)) {
56 mAudioSampleRate = format.getInteger(MediaFormat.KEY_SAMPLE_RATE);
57 mAudioChannelCount = format.getInteger(MediaFormat.KEY_CHANNEL_COUNT);
61 protected MediaCodec initMediaCodec(MediaFormat format) { argument
63 format.getString(MediaFormat.KEY_MIME));
64 mediaCodec.configure(format, null, null, 0);
/frameworks/base/tools/layoutlib/create/src/com/android/tools/layoutlib/create/
H A DLog.java30 public void debug(String format, Object... args) { argument
32 info(format, args);
37 public void debugNoln(String format, Object... args) { argument
39 String s = String.format(format, args);
44 public void info(String format, Object... args) { argument
45 String s = String.format(format, args);
49 public void error(String format, Object... args) { argument
50 String s = String.format(forma
54 exception(Throwable t, String format, Object... args) argument
[all...]
H A DLogAbortException.java24 public LogAbortException(String format, Object... args) { argument
25 mFormat = format;
/frameworks/native/libs/ui/
H A DPixelFormat.cpp24 ssize_t bytesPerPixel(PixelFormat format) { argument
25 switch (format) {
40 ssize_t bitsPerPixel(PixelFormat format) { argument
41 switch (format) {
/frameworks/av/libvideoeditor/osal/src/
H A DM4OSA_CharStar.c307 M4OSA_Char *format, ...)
326 "M4OSA_Char* %x)",pStrOut,strOutMaxLen,format);
329 M4OSA_DEBUG_IF2(M4OSA_NULL == format, M4ERR_PARAMETER,
332 va_start(marker,format);
335 pTemp = format;
387 err= vsnprintf((char *)pStrOut, (size_t)strOutMaxLen + 1, (const char *)format, marker);
401 newFormatLength = strlen((const char *)format) + 1;
412 /* copy format to newFormat, replacing %[flags][width][.precision]ll[conversion]
414 while(*format)
416 nbChar = strcspn((const char *)format, "
306 M4OSA_chrSPrintf(M4OSA_Char *pStrOut, M4OSA_UInt32 strOutMaxLen, M4OSA_Char *format, ...) argument
[all...]
H A DM4PSW_Trace.c40 * M4OSA_Char* format, ...)
46 * @param format (IN): the "printf" formated string
53 M4OSA_Int32 level, M4OSA_Char* format, ...)
60 va_start(marker,format); /* set ptr to first argument in the list of arguments passed to the function */
61 vsprintf((char *)message, (const char *)format,marker ); /* formats and writes the data into message */
52 M4OSA_Trace(M4OSA_Int32 line, M4OSA_Char* file , M4OSA_Int32 level, M4OSA_Char* format, ...) argument
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
H A DSimpleFrameManager.java37 public Frame newFrame(FrameFormat format) { argument
38 return createNewFrame(format);
42 public Frame newBoundFrame(FrameFormat format, int bindingType, long bindingId) { argument
44 switch(format.getTarget()) {
46 GLFrame glFrame = new GLFrame(format, this, bindingType, bindingId);
54 + FrameFormat.targetToString(format.getTarget()) + "!");
59 private Frame createNewFrame(FrameFormat format) { argument
61 switch(format.getTarget()) {
63 result = new SimpleFrame(format, this);
67 result = new NativeFrame(format, thi
[all...]
H A DSimpleFrame.java24 import android.filterfw.format.ObjectFormat;
37 SimpleFrame(FrameFormat format, FrameManager frameManager) { argument
38 super(format, frameManager);
39 initWithFormat(format);
44 FrameFormat format = ObjectFormat.fromObject(object, FrameFormat.TARGET_SIMPLE);
45 SimpleFrame result = new SimpleFrame(format, frameManager);
50 private void initWithFormat(FrameFormat format) { argument
51 final int count = format.getLength();
52 final int baseType = format.getBaseType();
134 MutableFrameFormat format
[all...]
H A DCachedFrameManager.java44 public Frame newFrame(FrameFormat format) { argument
45 Frame result = findAvailableFrame(format, Frame.NO_BINDING, 0);
47 result = super.newFrame(format);
54 public Frame newBoundFrame(FrameFormat format, int bindingType, long bindingId) { argument
55 Frame result = findAvailableFrame(format, bindingType, bindingId);
57 result = super.newBoundFrame(format, bindingType, bindingId);
130 private Frame findAvailableFrame(FrameFormat format, int bindingType, long bindingId) { argument
131 // Look for a frame that is compatible with the requested format
135 // Check that format is compatible
136 if (frame.getFormat().isReplaceableBy(format)) {
[all...]
/frameworks/av/media/libnbaio/
H A DNBAIO.cpp25 size_t Format_frameSize(NBAIO_Format format) argument
27 return Format_channelCount(format) * sizeof(short);
30 size_t Format_frameBitShift(NBAIO_Format format) argument
33 return Format_channelCount(format);
54 unsigned Format_sampleRate(NBAIO_Format format) argument
56 if (format == Format_Invalid) {
59 switch (format & Format_SR_Mask) {
81 unsigned Format_channelCount(NBAIO_Format format) argument
83 if (format == Format_Invalid) {
86 switch (format
98 NBAIO_Format format; local
[all...]
/frameworks/base/libs/hwui/
H A DRenderBuffer.h32 * Creates a new render buffer in the specified format and dimensions.
33 * The format must be one of the formats allowed by glRenderbufferStorage().
35 RenderBuffer(GLenum format, uint32_t width, uint32_t height): argument
36 mFormat(format), mWidth(width), mHeight(height), mAllocated(false) {
55 * Returns the format of this render buffer.
124 * Returns the number of bits per component in the specified format.
125 * The format must be one of the formats allowed by glRenderbufferStorage().
127 static uint32_t formatSize(GLenum format) { argument
128 switch (format) {
145 * Indicates whether the specified format represent
147 isStencilBuffer(GLenum format) argument
160 formatName(GLenum format) argument
[all...]
/frameworks/av/media/libstagefright/omx/
H A DSoftVideoDecoderOMXComponent.cpp83 def.format.video.cMIMEType = const_cast<char *>(mimeType);
84 def.format.video.pNativeRender = NULL;
86 def.format.video.nBitrate = 0;
87 def.format.video.xFramerate = 0;
88 def.format.video.bFlagErrorConcealment = OMX_FALSE;
89 def.format.video.eCompressionFormat = mCodingType;
90 def.format.video.eColorFormat = OMX_COLOR_FormatUnused;
91 def.format.video.pNativeWindow = NULL;
105 def.format.video.cMIMEType = const_cast<char *>("video/raw");
106 def.format
[all...]
/frameworks/av/include/media/nbaio/
H A DNBAIO.h37 NEGOTIATE = 0x80000010, // Must (re-)negotiate format. For negotiate() only, the offeree
46 // Negotiation of format is based on the data provider and data sink, or the data consumer and
50 // attributes, rather than a struct with separate fields for format, sample rate, channel count,
61 size_t Format_frameSize(NBAIO_Format format);
64 size_t Format_frameBitShift(NBAIO_Format format);
70 unsigned Format_sampleRate(NBAIO_Format format);
73 unsigned Format_channelCount(NBAIO_Format format);
113 // Return the current negotiated format, or Format_Invalid if negotiation has not been done,
115 virtual NBAIO_Format format() const { return mNegotiated ? mFormat : Format_Invalid; } function in class:android::NBAIO_Port
118 NBAIO_Port(NBAIO_Format format) argument
[all...]
/frameworks/volley/src/com/android/volley/
H A DVolleyLog.java48 public static void v(String format, Object... args) { argument
50 Log.v(TAG, buildMessage(format, args));
54 public static void d(String format, Object... args) { argument
55 Log.d(TAG, buildMessage(format, args));
58 public static void e(String format, Object... args) { argument
59 Log.e(TAG, buildMessage(format, args));
62 public static void e(Throwable tr, String format, Object... args) { argument
63 Log.e(TAG, buildMessage(format, args), tr);
66 public static void wtf(String format, Object... args) { argument
67 Log.wtf(TAG, buildMessage(format, arg
70 wtf(Throwable tr, String format, Object... args) argument
78 buildMessage(String format, Object... args) argument
[all...]
/frameworks/base/tools/layoutlib/bridge/src/android/text/format/
H A DDateFormat_Delegate.java17 package android.text.format;
/frameworks/base/graphics/java/android/graphics/
H A DImageFormat.java28 * RGB format used for pictures encoded as RGB_565. See
34 * <p>Android YUV format.</p>
36 * <p>This format is exposed to software decoders and applications.</p>
38 * <p>YV12 is a 4:2:0 YCrCb planar format comprised of a WxH Y plane followed
41 * <p>This format assumes
57 * <p>This format is guaranteed to be supported for camera preview images since
76 * <p>Android Y8 format.</p>
78 * <p>Y8 is a YUV planar format comprised of a WxH Y plane only, with each pixel
80 * format.</p>
82 * <p>This format assume
229 getBitsPerPixel(int format) argument
[all...]
H A DYuvImage.java39 * 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) { argument
80 if (format != ImageFormat.NV21 &&
81 format != ImageFormat.YUY2) {
97 mStrides = calculateStrides(width, format);
103 mFormat = format;
199 calculateStrides(int width, int format) argument
237 nativeCompressToJpeg(byte[] oriYuv, int format, int width, int height, int[] offsets, int[] strides, int quality, OutputStream stream, byte[] tempStorage) argument
[all...]
H A DPixelFormat.java25 /** System chooses a format that supports translucency (many alpha bits) */
29 * System chooses a format that supports transparency
34 /** System chooses an opaque format (no alpha bits required) */
84 public static void getPixelFormatInfo(int format, PixelFormat info) { argument
85 switch (format) {
118 throw new IllegalArgumentException("unkonwon pixel format " + format);
122 public static boolean formatHasAlpha(int format) { argument
123 switch (format) {
/frameworks/base/media/java/android/media/
H A DMediaFormat.java24 * Encapsulates the information describing the format of media data,
27 * The format of the media data is specified as string/value pairs.
33 * <tr><td>{@link #KEY_MIME}</td><td>String</td><td>The type of the format.</td></tr>
44 * for encoders, readable in the output format of decoders</b></td></tr>
74 * <tr><td>{@link #KEY_MIME}</td><td>String</td><td>The type of the format.</td></tr>
94 * A key describing the sample rate of an audio format.
100 * A key describing the number of channels in an audio format.
106 * A key describing the width of the content in a video format.
112 * A key describing the height of the content in a video format.
119 * decoder format, i
[all...]
/frameworks/base/core/java/android/text/format/
H A DFormatter.java17 package android.text.format;
76 value = String.format("%.2f", result);
79 value = String.format("%.1f", result);
81 value = String.format("%.2f", result);
85 value = String.format("%.0f", result);
87 value = String.format("%.2f", result);
90 value = String.format("%.0f", result);
98 * Returns a string in the canonical IPv4 format ###.###.###.### from a packed integer
100 * format (LSB first). That is, 0x01020304 will return "4.3.2.1".
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/
H A DImageStitcher.java29 import android.filterfw.format.ImageFormat;
75 private FrameFormat calcOutputFormatForInput(FrameFormat format) { argument
76 MutableFrameFormat outputFormat = format.mutableCopy();
78 mInputWidth = format.getWidth();
79 mInputHeight = format.getHeight();
95 FrameFormat format = input.getFormat();
99 mOutputFrame = context.getFrameManager().newFrame(calcOutputFormatForInput(format));
101 if ((format.getWidth() != mInputWidth) ||
102 (format.getHeight() != mInputHeight)) {
103 // CHECK input format her
[all...]
/frameworks/base/native/graphics/jni/
H A Dbitmap.cpp39 info->format = ANDROID_BITMAP_FORMAT_RGBA_8888;
42 info->format = ANDROID_BITMAP_FORMAT_RGB_565;
45 info->format = ANDROID_BITMAP_FORMAT_RGBA_4444;
48 info->format = ANDROID_BITMAP_FORMAT_A_8;
51 info->format = ANDROID_BITMAP_FORMAT_NONE;
/frameworks/wilhelm/tests/sandbox/
H A Dconfigbq.c95 PCM *format; local
98 for (format = formats; format->numChannels; ++format) {
100 printf("Channels: %d, sample rate: %u, bits: %u\n", format->numChannels,
101 format->milliHz / 1000, format->bitsPerSample);
109 format_pcm.numChannels = format->numChannels;
110 format_pcm.samplesPerSec = format->milliHz;
111 format_pcm.bitsPerSample = format
[all...]

Completed in 715 milliseconds

1234567891011>>