/frameworks/av/media/libstagefright/rtsp/ |
H A D | ARawAudioAssembler.cpp | 127 const char *desc, const sp<MetaData> &format) { 129 format->setCString(kKeyMIMEType, MEDIA_MIMETYPE_AUDIO_G711_MLAW); 131 format->setCString(kKeyMIMEType, MEDIA_MIMETYPE_AUDIO_G711_ALAW); 140 format->setInt32(kKeySampleRate, sampleRate); 141 format->setInt32(kKeyChannelCount, numChannels); 126 MakeFormat( const char *desc, const sp<MetaData> &format) argument
|
/frameworks/av/media/ndk/ |
H A D | NdkMediaMuxer.cpp | 56 AMediaMuxer* AMediaMuxer_new(int fd, OutputFormat format) { argument 59 mData->mImpl = new MediaMuxer(fd, (android::MediaMuxer::OutputFormat)format); 81 ssize_t AMediaMuxer_addTrack(AMediaMuxer *muxer, const AMediaFormat *format) { argument 83 AMediaFormat_getFormat(format, &msg);
|
/frameworks/av/services/audioflinger/ |
H A D | FastCapture.h | 69 NBAIO_Format format; member in class:android::FastCapture
|
/frameworks/base/core/java/android/hardware/camera2/params/ |
H A D | StreamConfiguration.java | 37 * for that format) that are supported by a camera device.</p> 48 * @param format image format 55 * or if the format was not user-defined in ImageFormat/PixelFormat 61 final int format, final int width, final int height, final boolean input) { 62 mFormat = checkArgumentFormatInternal(format); 69 * Get the internal image {@code format} in this stream configuration. 71 * @return an integer format 60 StreamConfiguration( final int format, final int width, final int height, final boolean input) argument
|
H A D | StreamConfigurationDuration.java | 29 * Immutable class to store a time duration for any given format/size combination. 42 * @param format image format 49 * or if the format was not user-defined in ImageFormat/PixelFormat 56 final int format, final int width, final int height, final long durationNs) { 57 mFormat = checkArgumentFormatInternal(format); 64 * Get the internal image {@code format} in this stream configuration duration 66 * @return an integer format 55 StreamConfigurationDuration( final int format, final int width, final int height, final long durationNs) argument
|
/frameworks/base/core/jni/android/graphics/ |
H A D | MinikinUtils.cpp | 30 static int snprintfcat(char* buf, int off, int size, const char* format, ...) 32 static int snprintfcat(char* buf, int off, int size, const char* format, ...) { argument 34 va_start(args, format); 35 int n = vsnprintf(buf + off, size - off, format, args);
|
/frameworks/base/graphics/java/android/graphics/ |
H A D | PixelFormat.java | 25 /** 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/libs/hwui/ |
H A D | PixelBuffer.cpp | 36 CpuPixelBuffer(GLenum format, uint32_t width, uint32_t height); 50 CpuPixelBuffer::CpuPixelBuffer(GLenum format, uint32_t width, uint32_t height): argument 51 PixelBuffer(format, width, height) { 52 mBuffer = new uint8_t[width * height * formatSize(format)]; 85 GpuPixelBuffer(GLenum format, uint32_t width, uint32_t height); 101 GpuPixelBuffer::GpuPixelBuffer(GLenum format, uint32_t width, uint32_t height): argument 102 PixelBuffer(format, width, height), mMappedPointer(0), mCaches(Caches::getInstance()) { 161 PixelBuffer* PixelBuffer::create(GLenum format, uint32_t width, uint32_t height, BufferType type) { argument 163 return new GpuPixelBuffer(format, width, height); 165 return new CpuPixelBuffer(format, widt [all...] |
H A D | RenderBuffer.h | 32 * 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 D | RenderBufferCache.h | 44 * @param format The desired render buffer format 48 RenderBuffer* get(GLenum format, const uint32_t width, const uint32_t height); 84 RenderBufferEntry(GLenum format, const uint32_t width, const uint32_t height): argument 85 mBuffer(NULL), mFormat(format), mWidth(width), mHeight(height) {
|
/frameworks/base/media/java/android/media/ |
H A D | SRTRenderer.java | 39 public boolean supports(MediaFormat format) { argument 40 if (format.containsKey(MediaFormat.KEY_MIME)) { 41 if (!format.getString(MediaFormat.KEY_MIME) 45 return mRender == (format.getInteger(MediaFormat.KEY_IS_TIMED_TEXT, 0) == 0); 51 public SubtitleTrack createTrack(MediaFormat format) { argument 57 return new SRTTrack(mRenderingWidget, format); 59 return new SRTTrack(mEventHandler, format); 73 SRTTrack(WebVttRenderingWidget renderingWidget, MediaFormat format) { argument 74 super(renderingWidget, format); 78 SRTTrack(Handler eventHandler, MediaFormat format) { argument [all...] |
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/ |
H A D | CachedFrameManager.java | 44 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 D | FrameManager.java | 31 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 D | ImageStitcher.java | 27 import android.filterfw.format.ImageFormat; 71 private FrameFormat calcOutputFormatForInput(FrameFormat format) { argument 72 MutableFrameFormat outputFormat = format.mutableCopy(); 74 mInputWidth = format.getWidth(); 75 mInputHeight = format.getHeight(); 91 FrameFormat format = input.getFormat(); 95 mOutputFrame = context.getFrameManager().newFrame(calcOutputFormatForInput(format)); 97 if ((format.getWidth() != mInputWidth) || 98 (format.getHeight() != mInputHeight)) { 99 // CHECK input format her [all...] |
H A D | ResizeFilter.java | 29 import android.filterfw.format.ImageFormat; 68 protected void createProgram(FilterContext context, FrameFormat format) { argument 69 if (mLastFormat != null && mLastFormat.getTarget() == format.getTarget()) return; 70 mLastFormat = format; 71 switch (format.getTarget()) {
|
/frameworks/base/native/android/ |
H A D | native_window.cpp | 62 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 D | GLUtils.java | 44 * 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 284 native_texSubImage2D(int target, int level, int xoffset, int yoffset, Bitmap bitmap, int format, int type) argument [all...] |
/frameworks/base/rs/java/android/renderscript/ |
H A D | RSSurfaceView.java | 98 public void surfaceChanged(SurfaceHolder holder, int format, int w, int h) { argument
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/decoder/ |
H A D | AudioTrackDecoder.java | 45 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/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
H A D | HardwareCanvasSurfaceViewActivity.java | 59 public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) { argument
|
/frameworks/base/tests/RenderScriptTests/FBOTest/src/com/android/fbotest/ |
H A D | FBOSyncView.java | 61 public void surfaceChanged(SurfaceHolder holder, int format, int w, int h) { argument 62 super.surfaceChanged(holder, format, w, h);
|
H A D | FBOTestView.java | 61 public void surfaceChanged(SurfaceHolder holder, int format, int w, int h) { argument 62 super.surfaceChanged(holder, format, w, h);
|
/frameworks/base/tests/RenderScriptTests/PerfTest/src/com/android/perftest/ |
H A D | RsBenchView.java | 53 public void surfaceChanged(SurfaceHolder holder, int format, int w, int h) { argument 54 super.surfaceChanged(holder, format, w, h);
|
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/testapp/ |
H A D | TestAppView.java | 57 public void surfaceChanged(SurfaceHolder holder, int format, int w, int h) { argument 58 super.surfaceChanged(holder, format, w, h);
|
/frameworks/base/tests/RenderScriptTests/ShadersTest/src/com/android/shaderstest/ |
H A D | ShadersTestView.java | 59 public void surfaceChanged(SurfaceHolder holder, int format, int w, int h) { argument 60 super.surfaceChanged(holder, format, w, h);
|