Searched refs:format (Results 1 - 25 of 1036) 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
65 format.getString(MediaFormat.KEY_MIME));
69 + format.getString(MediaFormat.KEY_MIME), e);
71 mediaCodec.configure(format, null, null, 0);
/frameworks/support/v17/leanback/
H A Dgeneratev4.py26 print "copy {}Fragment to {}SupportFragment".format(w, w)
28 file = open('src/android/support/v17/leanback/app/{}Fragment.java'.format(w), 'r')
29 outfile = open('src/android/support/v17/leanback/app/{}SupportFragment.java'.format(w), 'w')
31 outfile.write("/* This file is auto-generated from {}Fragment.java. DO NOT MODIFY. */\n\n".format(w))
35 line = line.replace('{}Fragment'.format(w), '{}SupportFragment'.format(w))
/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) {
42 ssize_t bitsPerPixel(PixelFormat format) { argument
43 switch (format) {
/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.java23 import android.filterfw.format.ObjectFormat;
35 SimpleFrame(FrameFormat format, FrameManager frameManager) { argument
36 super(format, frameManager);
37 initWithFormat(format);
42 FrameFormat format = ObjectFormat.fromObject(object, FrameFormat.TARGET_SIMPLE);
43 SimpleFrame result = new SimpleFrame(format, frameManager);
48 private void initWithFormat(FrameFormat format) { argument
49 final int count = format.getLength();
50 final int baseType = format.getBaseType();
132 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/base/media/java/android/media/
H A DAudioDevicePortConfig.java30 int format, AudioGainConfig gain) {
31 super((AudioPort)devicePort, samplingRate, channelMask, format, gain);
35 this(config.port(), config.samplingRate(), config.channelMask(), config.format(),
29 AudioDevicePortConfig(AudioDevicePort devicePort, int samplingRate, int channelMask, int format, AudioGainConfig gain) argument
H A DAudioMixPortConfig.java29 AudioMixPortConfig(AudioMixPort mixPort, int samplingRate, int channelMask, int format, argument
31 super((AudioPort)mixPort, samplingRate, channelMask, format, gain);
H A DAudioMixPort.java38 public AudioMixPortConfig buildConfig(int samplingRate, int channelMask, int format, argument
40 return new AudioMixPortConfig(this, samplingRate, channelMask, format, gain);
/frameworks/base/core/java/android/hardware/camera2/params/
H A DReprocessFormatsMap.java51 * The inner array always contains {@code [format, length, ...]} where ... has length elements.
64 * (missing output format length or too few output formats)
86 String.format("Input %x had no output format length listed", inputFormat));
101 String.format(
121 * <p>Use this input format to look up the available output formats with {@link #getOutputs}.
134 final int format = mEntry[i];
141 String.format("Input %x had no output format length listed", format));
178 getOutputs(final int format) argument
[all...]
H A DStreamConfigurationMap.java49 * for that format) that are supported by a camera device.</p>
51 * <p>This also contains the minimum frame durations and stall durations for each format/size
105 // For each format, track how many sizes there are available to configure
142 * Get the image {@code format} output formats in this stream configuration.
150 * @return an array of integer format
160 * Get the image {@code format} input formats in this stream configuration.
165 * @return an array of integer format
177 * Get the supported input sizes for this input format.
179 * <p>The format must have come from {@link #getInputFormats}; otherwise
182 * @param format
187 getInputSizes(final int format) argument
215 isOutputSupportedFor(int format) argument
408 getOutputSizes(int format) argument
599 getOutputMinFrameDuration(int format, Size size) argument
741 getOutputStallDuration(int format, Size size) argument
825 checkArgumentFormatSupported(int format, boolean output) argument
856 checkArgumentFormatInternal(int format) argument
890 checkArgumentFormat(int format) argument
928 imageFormatToPublic(int format) argument
990 imageFormatToInternal(int format) argument
1024 getPublicFormatSizes(int format, boolean output) argument
1036 getInternalFormatSizes(int format, boolean output) argument
1087 getInternalFormatDuration(int format, Size size, int duration) argument
[all...]
/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>For the {@link android.hardware.camera2} API, the {@link #YUV_420_888} format is
60 * <p>For the older camera API, this format is guaranteed to be supported for
79 * <p>Android Y8 format.</p>
81 * <p>Y8 is a YUV planar format comprised of a WxH Y plane only, with each pixel
83 * format
366 getBitsPerPixel(int format) argument
404 isPublicFormat(int format) 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("unknown pixel format " + format);
122 public static boolean formatHasAlpha(int format) { argument
123 switch (format) {
140 * Determine whether or not this is a public-visible and non-deprecated {@code format}
152 isPublicFormat(int format) argument
[all...]
/frameworks/base/telecomm/java/android/telecom/
H A DLog.java47 public static void d(String prefix, String format, Object... args) { argument
49 android.util.Log.d(TAG, buildMessage(prefix, format, args));
53 public static void d(Object objectPrefix, String format, Object... args) { argument
55 android.util.Log.d(TAG, buildMessage(getPrefixFromObject(objectPrefix), format, args));
59 public static void i(String prefix, String format, Object... args) { argument
61 android.util.Log.i(TAG, buildMessage(prefix, format, args));
65 public static void i(Object objectPrefix, String format, Object... args) { argument
67 android.util.Log.i(TAG, buildMessage(getPrefixFromObject(objectPrefix), format, args));
71 public static void v(String prefix, String format, Object... args) { argument
73 android.util.Log.v(TAG, buildMessage(prefix, format, arg
77 v(Object objectPrefix, String format, Object... args) argument
83 w(String prefix, String format, Object... args) argument
89 w(Object objectPrefix, String format, Object... args) argument
95 e(String prefix, Throwable tr, String format, Object... args) argument
101 e(Object objectPrefix, Throwable tr, String format, Object... args) argument
108 wtf(String prefix, Throwable tr, String format, Object... args) argument
112 wtf(Object objectPrefix, Throwable tr, String format, Object... args) argument
117 wtf(String prefix, String format, Object... args) argument
122 wtf(Object objectPrefix, String format, Object... args) argument
169 buildMessage(String prefix, String format, Object... args) argument
[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...]
H A DPixelBuffer.h59 * Creates a new PixelBuffer object with the specified format and
66 static PixelBuffer* create(GLenum format, uint32_t width, uint32_t height,
73 * Returns the format of this render buffer.
162 * Returns the number of bytes per pixel in the specified format.
168 static uint32_t formatSize(GLenum format) { argument
169 switch (format) {
179 * Returns the alpha channel offset in the specified format.
185 static uint32_t formatAlphaOffset(GLenum format) { argument
186 switch (format) {
193 ALOGE("unsupported format
202 PixelBuffer(GLenum format, uint32_t width, uint32_t height) argument
[all...]
/frameworks/av/include/media/nbaio/
H A DNBAIO.h38 NEGOTIATE = 0x80000010, // Must (re-)negotiate format. For negotiate() only, the offeree
47 // Negotiation of format is based on the data provider and data sink, or the data consumer and
51 // attributes, rather than a struct with separate fields for format, sample rate, channel count,
68 size_t Format_frameSize(const NBAIO_Format& format);
72 NBAIO_Format Format_from_SR_C(unsigned sampleRate, unsigned channelCount, audio_format_t format);
75 unsigned Format_sampleRate(const NBAIO_Format& format);
78 unsigned Format_channelCount(const NBAIO_Format& format);
86 bool Format_isValid(const NBAIO_Format& format);
124 // Return the current negotiated format, or Format_Invalid if negotiation has not been done,
126 virtual NBAIO_Format format() cons function in class:android::NBAIO_Port
129 NBAIO_Port(const NBAIO_Format& format) argument
[all...]
/frameworks/av/media/libnbaio/
H A DNBAIO.cpp25 size_t Format_frameSize(const NBAIO_Format& format) argument
27 return format.mFrameSize;
32 unsigned Format_sampleRate(const NBAIO_Format& format) argument
34 if (!Format_isValid(format)) {
37 return format.mSampleRate;
40 unsigned Format_channelCount(const NBAIO_Format& format) argument
42 if (!Format_isValid(format)) {
45 return format.mChannelCount;
49 audio_format_t format)
51 if (sampleRate == 0 || channelCount == 0 || !audio_is_valid_format(format)) {
48 Format_from_SR_C(unsigned sampleRate, unsigned channelCount, audio_format_t format) argument
159 Format_isValid(const NBAIO_Format& format) argument
[all...]
/frameworks/av/media/libstagefright/omx/
H A DSoftVideoEncoderOMXComponent.cpp70 mFramerate(30 << 16), // Q16 format
99 def.format.video.pNativeRender = NULL;
100 def.format.video.nFrameWidth = mWidth;
101 def.format.video.nFrameHeight = mHeight;
102 def.format.video.nStride = def.format.video.nFrameWidth;
103 def.format.video.nSliceHeight = def.format.video.nFrameHeight;
104 def.format.video.nBitrate = 0;
105 // frameRate is in Q16 format
241 const OMX_VIDEO_PARAM_PORTFORMATTYPE* format = local
499 int format; local
[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/opt/bluetooth/src/android/bluetooth/client/pbap/
H A DBluetoothPbapRequestPullVcardEntry.java40 public BluetoothPbapRequestPullVcardEntry(String handle, long filter, byte format) { argument
45 /* make sure format is one of allowed values */
46 if (format != BluetoothPbapClient.VCARD_TYPE_21
47 && format != BluetoothPbapClient.VCARD_TYPE_30) {
48 format = BluetoothPbapClient.VCARD_TYPE_21;
57 oap.add(OAP_TAGID_FORMAT, format);
60 mFormat = format;

Completed in 466 milliseconds

1234567891011>>