Searched defs:format (Results 51 - 75 of 246) sorted by relevance

12345678910

/frameworks/native/libs/ui/
H A DGraphicBufferAllocator.cpp69 rec.w, rec.s, rec.h, rec.format, rec.usage);
73 rec.w, rec.s, rec.h, rec.format, rec.usage);
93 status_t GraphicBufferAllocator::alloc(uint32_t w, uint32_t h, PixelFormat format, argument
105 err = mAllocDev->alloc(mAllocDev, w, h, format, usage, handle, stride);
108 w, h, format, usage, err, strerror(-err));
113 int bpp = bytesPerPixel(format);
115 // probably a HAL custom format. in any case, we don't know
123 rec.format = format;
H A DPixelFormat.cpp78 ssize_t bytesPerPixel(PixelFormat format) argument
81 status_t err = getPixelFormatInfo(format, &info);
85 ssize_t bitsPerPixel(PixelFormat format) argument
88 status_t err = getPixelFormatInfo(format, &info);
92 status_t getPixelFormatInfo(PixelFormat format, PixelFormatInfo* info) argument
94 if (format <= 0)
100 // YUV format from the HAL are handled here
101 switch (format) {
110 info->format = format;
[all...]
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
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...]
H A DFrameManager.java31 public abstract Frame newFrame(FrameFormat format); argument
33 public abstract Frame newBoundFrame(FrameFormat format, int bindingType, long bindingId); argument
/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...]
H A DResizeFilter.java32 import android.filterfw.format.ImageFormat;
71 protected void createProgram(FilterContext context, FrameFormat format) { argument
72 if (mLastFormat != null && mLastFormat.getTarget() == format.getTarget()) return;
73 mLastFormat = format;
74 switch (format.getTarget()) {
/frameworks/base/native/android/
H A Dnative_window.cpp62 int32_t height, int32_t format) {
63 int32_t err = native_window_set_buffers_format(window, format);
61 ANativeWindow_setBuffersGeometry(ANativeWindow* window, int32_t width, int32_t height, int32_t format) argument
/frameworks/base/opengl/java/android/opengl/
H A DGLUtils.java44 * return the internal format as defined by OpenGL ES of the supplied bitmap.
46 * @return the internal format of the bitmap.
64 * is one. If the bitmap is stored in a compressed format, it may not have
115 throw new IllegalArgumentException("invalid Bitmap format");
141 throw new IllegalArgumentException("invalid Bitmap format");
163 throw new IllegalArgumentException("invalid Bitmap format");
199 throw new IllegalArgumentException("invalid Bitmap format");
215 Bitmap bitmap, int format, int type) {
222 if (native_texSubImage2D(target, level, xoffset, yoffset, bitmap, format, type)!=0) {
223 throw new IllegalArgumentException("invalid Bitmap format");
214 texSubImage2D(int target, int level, int xoffset, int yoffset, Bitmap bitmap, int format, int type) argument
286 native_texSubImage2D(int target, int level, int xoffset, int yoffset, Bitmap bitmap, int format, int type) argument
[all...]
/frameworks/base/core/java/android/text/format/
H A DDateFormat.java17 package android.text.format;
38 Most callers should avoid supplying their own format strings to this
39 class' {@code format} methods and rely on the correctly localized ones
43 of format strings, see {@link java.text.SimpleDateFormat}.
46 The format methods in this class takes as inputs a format string and a representation of a date/time.
47 The format string controls how the output is generated.
51 of that field. For instance, the format character &apos;M&apos; is used to
87 Text in the format string that should be copied verbatim rather that
133 This designator indicates the hour of the day in 12 hour format
424 public static CharSequence format(CharSequence inFormat, long inTimeInMillis) { method in class:DateFormat
435 public static CharSequence format(CharSequence inFormat, Date inDate) { method in class:DateFormat
512 public static CharSequence format(CharSequence inFormat, Calendar inDate) { method in class:DateFormat
[all...]
/frameworks/av/include/media/
H A DAudioSystem.h115 static status_t getInputBufferSize(uint32_t sampleRate, audio_format_t format,
155 : samplingRate(0), format(AUDIO_FORMAT_DEFAULT), channels(0), frameCount(0), latency(0) {}
158 int32_t format; member in class:android::AudioSystem::OutputDescriptor
193 audio_format_t format = AUDIO_FORMAT_DEFAULT,
205 audio_format_t format = AUDIO_FORMAT_DEFAULT,
/frameworks/av/include/media/nbaio/
H A DNBAIO.h36 NEGOTIATE = 0x80000010, // Must (re-)negotiate format. For negotiate() only, the offeree
45 // Negotiation of format is based on the data provider and data sink, or the data consumer and
49 // attributes, rather than a struct with separate fields for format, sample rate, channel count,
62 size_t Format_frameSize(NBAIO_Format format);
65 size_t Format_frameBitShift(NBAIO_Format format);
71 unsigned Format_sampleRate(NBAIO_Format format);
74 unsigned Format_channelCount(NBAIO_Format format);
114 // Return the current negotiated format, or Format_Invalid if negotiation has not been done,
116 virtual NBAIO_Format format() const { return mNegotiated ? mFormat : Format_Invalid; } function in class:android::NBAIO_Port
119 NBAIO_Port(NBAIO_Format format) argument
[all...]
/frameworks/av/libvideoeditor/lvpp/
H A DVideoEditorSRC.cpp51 sp<MetaData> format = mSource->getFormat(); local
53 CHECK(format->findCString(kKeyMIMEType, &mime));
149 // Change resampler and retry if format change happened
233 // just remember the fact that the format has changed, and let
297 sp<MetaData> format = mSource->getFormat(); local
299 CHECK(format->findCString(kKeyMIMEType, &mime));
302 CHECK(format->findInt32(kKeySampleRate, &mSampleRate));
303 CHECK(format->findInt32(kKeyChannelCount, &mChannelCnt));
/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...]
/frameworks/av/media/libnbaio/
H A DNBAIO.cpp25 size_t Format_frameSize(NBAIO_Format format) argument
27 switch (format) {
40 size_t Format_frameBitShift(NBAIO_Format format) argument
42 switch (format) {
55 unsigned Format_sampleRate(NBAIO_Format format) argument
57 switch (format) {
70 unsigned Format_channelCount(NBAIO_Format format) argument
72 switch (format) {
/frameworks/av/media/libstagefright/rtsp/
H A DARTPSession.cpp67 ALOGE("Invalid media format.");
73 ALOGE("Unsupported format.");
199 AString format; local
200 mDesc->getFormat(index, &format);
202 ssize_t i = format.find(" ");
209 while (isdigit(format.c_str()[j])) {
212 if (format.c_str()[j] != ' ') {
216 AString portString(format, i, j - i);
/frameworks/av/media/mtp/
H A DMtpServer.h82 MtpObjectFormat format, int fd)
83 : mHandle(handle), mPath(path), mSize(size), mFormat(format), mFD(fd) {
114 uint64_t size, MtpObjectFormat format, int fd);
81 ObjectEdit(MtpObjectHandle handle, const char* path, uint64_t size, MtpObjectFormat format, int fd) argument
/frameworks/base/core/java/android/view/
H A DSurfaceHolder.java24 * control the surface size and format, edit the pixels in the surface, and
82 * This is called immediately after any structural changes (format or
88 * @param format The new PixelFormat of the surface.
92 public void surfaceChanged(SurfaceHolder holder, int format, int width, argument
180 * @param format A constant from PixelFormat.
184 public void setFormat(int format); argument
/frameworks/base/core/jni/
H A DTime.cpp88 Time::format(const char *format, const struct strftime_locale *locale) const argument
91 int n = strftime_tz(buf, 257, format, &(this->t), locale);
/frameworks/base/core/tests/coretests/src/android/text/format/
H A DTimeTest.java17 package android.text.format;
21 import android.text.format.Time;
193 String expectedTime = String.format("%d-%02d-%02d %02d:%02d",
195 String actualTime = String.format("%d-%02d-%02d %02d:%02d",
211 String expectedTime = String.format("%d-%02d-%02d %02d:%02d",
213 String actualTime = String.format("%d-%02d-%02d %02d:%02d",
234 String expectedTime = String.format("%d-%02d-%02d %02d:%02d isDst: %d",
237 String actualTime = String.format("%d-%02d-%02d %02d:%02d isDst: %d",
256 String expectedTime = String.format("%d-%02d-%02d %02d:%02d isDst: %d",
259 String actualTime = String.format("
[all...]
/frameworks/base/graphics/java/android/graphics/
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...]
/frameworks/base/graphics/java/android/renderscript/
H A DProgramFragmentFixedFunction.java125 * Format describes the pixel format of textures in the fixed
155 Format format; field in class:ProgramFragmentFixedFunction.Builder.Slot
158 format = _fmt;
186 switch (mSlots[i].format) {
202 switch (mSlots[i].format) {
246 * @param fmt specifies the format of the texture and how its
/frameworks/base/libs/hwui/
H A DTextureCache.cpp300 void TextureCache::uploadToTexture(bool resize, GLenum format, GLsizei width, GLsizei height, argument
303 glTexImage2D(GL_TEXTURE_2D, 0, format, width, height, 0, format, type, data);
305 glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, width, height, format, type, data);
/frameworks/base/tests/DumpRenderTree/src/com/android/dumprendertree/
H A DLoadTestsAutoTest.java81 return String.format("http://127.0.0.1:%d/%s/%s/start.html?auto=1&iterations=%s",
156 private void printRow(PrintStream ps, String format, Object...objs) { argument
157 ps.println(String.format(format, objs));
/frameworks/base/tests/RenderScriptTests/ModelViewer/src/com/android/modelviewer/
H A DSimpleModelView.java88 public void surfaceChanged(SurfaceHolder holder, int format, int w, int h) { argument
89 super.surfaceChanged(holder, format, w, h);
/frameworks/native/opengl/tests/hwc/
H A DhwcTestLib.h40 uint32_t format; member in struct:hwcTestGraphicFormat
113 const char *hwcTestGraphicFormat2str(uint32_t format);
122 uint32_t hwcTestColor2Pixel(uint32_t format, ColorFract color, float alpha);

Completed in 380 milliseconds

12345678910