Searched refs:format (Results 251 - 275 of 1642) sorted by relevance

<<11121314151617181920>>

/frameworks/av/media/ndk/
H A DNdkImageReader.cpp47 AImageReader::isSupportedFormat(int32_t format) { argument
48 switch (format) {
69 AImageReader::getNumPlanesForFormat(int32_t format) { argument
70 switch (format) {
240 int32_t format,
245 mFormat(format),
248 mNumPlanes(getNumPlanesForFormat(format)),
263 String8 consumerName = String8::format("ImageReader-%dx%df%xu%" PRIu64 "m%d-%d-%d",
287 ALOGE("Failed to set BufferItemConsumer buffer format");
421 // Special casing for when producer switches to a format compatibl
238 AImageReader(int32_t width, int32_t height, int32_t format, uint64_t usage, int32_t maxImages) argument
577 AImageReader_new( int32_t width, int32_t height, int32_t format, int32_t maxImages, AImageReader** reader) argument
586 AImageReader_newWithUsage( int32_t width, int32_t height, int32_t format, uint64_t usage, int32_t maxImages, AImageReader** reader) argument
683 AImageReader_getFormat(const AImageReader* reader, int32_t* format) argument
[all...]
/frameworks/base/tests/SoundTriggerTestApp/src/com/android/test/soundtrigger/
H A DSoundTriggerTestService.java534 AudioFormat format = mEvent.getCaptureAudioFormat();
535 if (format == null) {
536 postErrorToast("No audio format in recognition event.");
551 switch (format.getEncoding()) {
565 throw new RuntimeException("Unhandled audio format in event");
568 int bytesRequired = format.getSampleRate() * format.getChannelCount() *
571 format.getSampleRate(), format.getChannelMask(), format
[all...]
/frameworks/native/opengl/libagl/
H A Dtexture.cpp191 static int32_t convertGLPixelFormat(GLint format, GLenum type) argument
195 switch (format) {
215 static GLenum validFormatType(ogles_context_t* c, GLenum format, GLenum type) argument
218 if (format<GL_ALPHA || format>GL_LUMINANCE_ALPHA) {
225 if (type == GL_UNSIGNED_SHORT_5_6_5 && format != GL_RGB) {
229 type == GL_UNSIGNED_SHORT_5_5_5_1) && format != GL_RGBA) {
269 if ((dst.format == src.format) &&
278 const GGLFormat& pixelFormat(c->rasterizer.formats[src.format]);
354 createTextureSurface(ogles_context_t* c, GGLSurface** outSurface, int32_t* outSize, GLint level, GLenum format, GLenum type, GLsizei width, GLsizei height, GLenum compressedFormat = 0) argument
401 dataSizePalette4(int numLevels, int width, int height, int format) argument
444 decodePalette4(const GLvoid *data, int level, int width, int height, void *surface, int stride, int format) argument
1066 GLenum format; local
[all...]
/frameworks/av/media/libmediaplayerservice/nuplayer/
H A DStreamingSource.cpp240 sp<AMessage> format = new AMessage; local
242 format->setInt32("err", -EWOULDBLOCK);
243 return format;
248 format->setInt32("err", -EWOULDBLOCK);
249 return format;
251 status_t err = convertMetaDataToMessage(meta, &format);
252 if (err != OK) { // format may have been cleared on error
255 return format;
/frameworks/av/services/camera/libcameraservice/api2/
H A DCameraDeviceClient.h96 // Create an input stream of width, height, and format.
97 virtual binder::Status createInputStream(int width, int height, int format,
214 int format; member in class:android::CameraDeviceClient::OutputStreamInfo
219 width(-1), height(-1), format(-1), dataSpace(HAL_DATASPACE_UNKNOWN),
223 width(_width), height(_height), format(_format),
255 // Find the closest dimensions for a given format in available stream configurations with
258 static bool roundBufferDimensionNearest(int32_t width, int32_t height, int32_t format,
262 //check if format is not custom format
263 static bool isPublicFormat(int32_t format);
277 int32_t format; member in struct:android::CameraDeviceClient::InputStreamConfiguration
[all...]
/frameworks/av/services/camera/libcameraservice/device3/
H A DCamera3InputStream.cpp31 uint32_t width, uint32_t height, int format) :
33 format, HAL_DATASPACE_UNKNOWN, CAMERA3_STREAM_ROTATION_0) {
35 if (format == HAL_PIXEL_FORMAT_BLOB) {
36 ALOGE("%s: Bad format, BLOB not supported", __FUNCTION__);
222 assert(camera3_stream::format != HAL_PIXEL_FORMAT_BLOB);
263 mConsumer->setName(String8::format("Camera3-InputStream-%d", mId));
277 res = mConsumer->setDefaultBufferFormat(camera3_stream::format);
279 ALOGE("%s: Stream %d: Could not set buffer format %d",
280 __FUNCTION__, mId, camera3_stream::format);
30 Camera3InputStream(int id, uint32_t width, uint32_t height, int format) argument
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
H A DGLFrame.java70 GLFrame(FrameFormat format, FrameManager frameManager) { argument
71 super(format, frameManager);
74 GLFrame(FrameFormat format, FrameManager frameManager, int bindingType, long bindingId) { argument
75 super(format, frameManager, bindingType, bindingId);
79 FrameFormat format = getFormat();
82 // Check that we have a valid format
83 if (format.getBytesPerSample() != 4) {
85 } else if (format.getDimensionCount() != 2) {
/frameworks/native/services/surfaceflinger/
H A DClient.cpp136 uint32_t w, uint32_t h, PixelFormat format, uint32_t flags,
170 PixelFormat format; member in class:android::MessageCreateLayer
178 uint32_t w, uint32_t h, PixelFormat format, uint32_t flags,
184 name(name), w(w), h(h), format(format), flags(flags),
189 result = flinger->createLayer(name, client, w, h, format, flags,
196 name, this, w, h, format, flags, handle,
134 createSurface( const String8& name, uint32_t w, uint32_t h, PixelFormat format, uint32_t flags, const sp<IBinder>& parentHandle, uint32_t windowType, uint32_t ownerUid, sp<IBinder>* handle, sp<IGraphicBufferProducer>* gbp) argument
176 MessageCreateLayer(SurfaceFlinger* flinger, const String8& name, Client* client, uint32_t w, uint32_t h, PixelFormat format, uint32_t flags, sp<IBinder>* handle, uint32_t windowType, uint32_t ownerUid, sp<IGraphicBufferProducer>* gbp, sp<Layer>* parent) argument
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/
H A DValueParser.java232 int format = rawValue[valueIndex + 2] & 0xff;
235 int alignValue = format & 0x03;
238 int sizeValue = (format >> 2) & 0x03;
245 boolean bold = (format & 0x10) != 0;
246 boolean italic = (format & 0x20) != 0;
247 boolean underlined = (format & 0x40) != 0;
248 boolean strikeThrough = (format & 0x80) != 0;
/frameworks/rs/cpp/
H A DType.cpp161 void Type::Builder::setYuvFormat(RsYuvFormat format) { argument
162 if (format != RS_YUV_NONE && !(mElement->isCompatible(Element::YUV(mRS)))) {
167 if (format != RS_YUV_NONE &&
168 format != RS_YUV_YV12 &&
169 format != RS_YUV_NV21 &&
170 format != RS_YUV_420_888) {
171 ALOGE("Invalid YUV format.");
174 mYuvFormat = format;
/frameworks/av/media/libstagefright/
H A DUtils.cpp145 static bool isHdr(const sp<AMessage> &format) { argument
148 // in the format.
150 if (format->findInt32("android._is-hdr", &isHdr)) {
155 if (format->contains("hdr-static-info") && !format->contains("color-transfer")) {
160 if (format->findInt32("color-transfer", &transfer)) {
167 static void parseAacProfileFromCsd(const sp<ABuffer> &csd, sp<AMessage> &format) { argument
194 format->setInt32("profile", profile);
198 static void parseAvcProfileLevelFromAvcc(const uint8_t *ptr, size_t size, sp<AMessage> &format) { argument
240 format
251 parseH263ProfileLevelFromD263(const uint8_t *ptr, size_t size, sp<AMessage> &format) argument
293 parseHevcProfileLevelFromHvcc(const uint8_t *ptr, size_t size, sp<AMessage> &format) argument
360 parseMpeg2ProfileLevelFromHeader( const uint8_t *data, size_t size, sp<AMessage> &format) argument
413 parseMpeg2ProfileLevelFromEsds(ESDS &esds, sp<AMessage> &format) argument
433 parseMpeg4ProfileLevelFromCsd(const sp<ABuffer> &csd, sp<AMessage> &format) argument
524 parseVp9ProfileLevelFromCsd(const sp<ABuffer> &csd, sp<AMessage> &format) argument
595 convertMetaDataToMessage( const sp<MetaData> &meta, sp<AMessage> *format) argument
1543 audio_format_t format; member in struct:android::mime_conv_t
1558 mapMimeToAudioFormat( audio_format_t& format, const char* mime ) argument
1574 audio_format_t format; member in struct:android::aac_format_conv_t
1591 mapAACProfileToAudioFormat( audio_format_t& format, uint64_t eAacProfile) argument
[all...]
/frameworks/av/media/libnbaio/
H A DAudioBufferProviderSource.cpp27 const NBAIO_Format& format) :
28 NBAIO_Source(format), mProvider(provider), mConsumed(0)
31 ALOG_ASSERT(Format_isValid(format));
26 AudioBufferProviderSource(AudioBufferProvider *provider, const NBAIO_Format& format) argument
H A DMonoPipe.cpp32 MonoPipe::MonoPipe(size_t reqFrames, const NBAIO_Format& format, bool writeCanBlock) : argument
33 NBAIO_Sink(format),
36 mBuffer(malloc(mMaxFrames * Format_frameSize(format))),
37 mFifo(mMaxFrames, Format_frameSize(format), mBuffer, true /*throttlesWriter*/),
/frameworks/base/core/java/android/webkit/
H A DDateSorter.java77 String format = resources.getQuantityString(resId, NUM_DAYS_AGO);
78 mLabels[2] = String.format(format, NUM_DAYS_AGO);
/frameworks/base/legacy-test/src/junit/framework/
H A DComparisonCompactor.java27 // android-changed use local method instead of Assert.format, since
29 return format(message, fExpected, fActual);
35 // android-changed use local format method
36 return format(message, expected, actual);
80 // android-changed copy of Assert.format for reasons described above
81 private static String format(String message, Object expected, Object actual) { method in class:ComparisonCompactor
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/
H A DBitmapOverlayFilter.java26 import android.filterfw.format.ImageFormat;
127 FrameFormat format = ImageFormat.create(mBitmap.getWidth(),
132 Frame frame = context.getFrameManager().newFrame(format);
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/
H A DCameraTestUtils.java170 * @param format The format of this ImageReader to be created
175 public static ImageReader makeImageReader(Size size, int format, int maxNumImages, argument
178 reader = ImageReader.newInstance(size.getWidth(), size.getHeight(), format,
250 public ImageVerifierListener(Size sz, int format) { argument
252 mFormat = format;
770 * Check if the format is a legal YUV format camera supported.
772 public static void checkYuvFormat(int format) { argument
773 if ((format !
783 checkImage(Image image, int width, int height, int format) argument
954 getSupportedSizeForFormat(int format, String cameraId, CameraManager cameraManager) argument
1081 getSortedSizesForFormat(String cameraId, CameraManager cameraManager, int format, Size bound) argument
1297 validateImage(Image image, int width, int height, int format, String filePath) argument
1394 validateYuvData(byte[] yuvData, int width, int height, int format, long ts, String filePath) argument
1410 validateRaw16Data(byte[] rawData, int width, int height, int format, long ts, String filePath) argument
1447 validateDepth16Data(byte[] depthData, int width, int height, int format, long ts, String filePath) argument
1465 validateDepthPointCloudData(byte[] depthData, int width, int height, int format, long ts, String filePath) argument
[all...]
/frameworks/base/opengl/java/android/opengl/
H A DGLUtils.java36 * return the internal format as defined by OpenGL ES of the supplied bitmap.
38 * @return the internal format of the bitmap.
56 * is one. If the bitmap is stored in a compressed format, it may not have
107 throw new IllegalArgumentException("invalid Bitmap format");
133 throw new IllegalArgumentException("invalid Bitmap format");
155 throw new IllegalArgumentException("invalid Bitmap format");
191 throw new IllegalArgumentException("invalid Bitmap format");
207 Bitmap bitmap, int format, int type) {
214 if (native_texSubImage2D(target, level, xoffset, yoffset, bitmap, format, type)!=0) {
215 throw new IllegalArgumentException("invalid Bitmap format");
206 texSubImage2D(int target, int level, int xoffset, int yoffset, Bitmap bitmap, int format, int type) argument
268 native_texSubImage2D(int target, int level, int xoffset, int yoffset, Bitmap bitmap, int format, int type) argument
[all...]
/frameworks/base/services/core/java/com/android/server/hdmi/
H A DHdmiCecMessage.java91 s.append(String.format("<%s> src: %d, dst: %d",
96 s.append(String.format(" %02X", data));
247 return String.format("Opcode: %02X", opcode);
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
H A DImsSMSDispatcher.java125 private void setImsSmsFormat(int format) { argument
126 // valid format?
127 switch (format) {
154 Rlog.e(TAG, "IMS format was unknown!");
155 // failed to retrieve valid IMS SMS format info, set IMS to unregistered
215 public void injectSmsPdu(byte[] pdu, String format, PendingIntent receivedIntent) { argument
221 android.telephony.SmsMessage.createFromPdu(pdu, format);
237 if (format.equals(SmsConstants.FORMAT_3GPP)) {
239 ", format=" + format
364 getNewSubmitPduTracker(String destinationAddress, String scAddress, String message, SmsHeader smsHeader, int format, PendingIntent sentIntent, PendingIntent deliveryIntent, boolean lastPart, AtomicInteger unsentPartCount, AtomicBoolean anyPartFailed, Uri messageUri, String fullMessageText) argument
405 isCdmaFormat(String format) argument
[all...]
/frameworks/av/media/libmediaplayerservice/
H A DStagefrightRecorder.cpp253 ALOGE("Invalid output format: %d", of);
378 ALOGE("Only MP4 file format supports setting next output file");
941 ALOGE("Unsupported output file format: %d", mOutputFormat);
1015 ALOGE("Unsupported output file format: %d", mOutputFormat);
1081 sp<AMessage> format = new AMessage; local
1085 format->setString("mime", MEDIA_MIMETYPE_AUDIO_AMR_NB);
1088 format->setString("mime", MEDIA_MIMETYPE_AUDIO_AMR_WB);
1091 format->setString("mime", MEDIA_MIMETYPE_AUDIO_AAC);
1092 format->setInt32("aac-profile", OMX_AUDIO_AACObjectLC);
1095 format
1622 sp<AMessage> format = new AMessage(); local
[all...]
/frameworks/av/media/libstagefright/wifi-display/source/
H A DPlaybackSession.cpp62 Track(const sp<AMessage> &notify, const sp<AMessage> &format);
121 static bool IsAudioFormat(const sp<AMessage> &format);
143 const sp<AMessage> &notify, const sp<AMessage> &format)
145 mFormat(format),
147 mIsAudio(IsAudioFormat(format)),
157 const sp<AMessage> &format) {
159 CHECK(format->findString("mime", &mime));
763 sp<AMessage> format; local
764 err = mExtractor->getTrackFormat(i, &format);
771 CHECK(format
142 Track( const sp<AMessage> &notify, const sp<AMessage> &format) argument
156 IsAudioFormat( const sp<AMessage> &format) argument
942 sp<AMessage> format; local
[all...]
/frameworks/base/media/jni/soundpool/
H A DSoundPool.cpp534 AMediaFormat *format = AMediaExtractor_getTrackFormat(ex, i); local
536 if (!AMediaFormat_getString(format, AMEDIAFORMAT_KEY_MIME, &mime)) {
538 AMediaFormat_delete(format);
545 || AMediaCodec_configure(codec, format,
551 AMediaFormat_delete(format);
561 AMediaFormat_delete(format);
562 format = AMediaCodec_getOutputFormat(codec);
635 AMediaFormat_delete(format);
636 format = AMediaCodec_getOutputFormat(codec);
637 ALOGV("format change
670 audio_format_t format; local
757 const audio_format_t format = sample->format(); local
[all...]
/frameworks/av/include/media/nbaio/
H A DMonoPipe.h44 MonoPipe(size_t reqFrames, const NBAIO_Format& format, bool writeCanBlock = false);
51 //virtual NBAIO_Format format() const;
/frameworks/av/media/libnbaio/include/
H A DMonoPipe.h44 MonoPipe(size_t reqFrames, const NBAIO_Format& format, bool writeCanBlock = false);
51 //virtual NBAIO_Format format() const;

Completed in 1618 milliseconds

<<11121314151617181920>>