/frameworks/native/opengl/libagl/ |
H A D | texture.cpp | 198 static int32_t convertGLPixelFormat(GLint format, GLenum type) argument 202 switch (format) { 222 static GLenum validFormatType(ogles_context_t* c, GLenum format, GLenum type) argument 225 if (format<GL_ALPHA || format>GL_LUMINANCE_ALPHA) { 232 if (type == GL_UNSIGNED_SHORT_5_6_5 && format != GL_RGB) { 236 type == GL_UNSIGNED_SHORT_5_5_5_1) && format != GL_RGBA) { 276 if ((dst.format == src.format) && 285 const GGLFormat& pixelFormat(c->rasterizer.formats[src.format]); 361 createTextureSurface(ogles_context_t* c, GGLSurface** outSurface, int32_t* outSize, GLint level, GLenum format, GLenum type, GLsizei width, GLsizei height, GLenum compressedFormat = 0) argument 408 dataSizePalette4(int numLevels, int width, int height, int format) argument 451 decodePalette4(const GLvoid *data, int level, int width, int height, void *surface, int stride, int format) argument 1073 GLenum format; local [all...] |
/frameworks/native/opengl/libs/EGL/ |
H A D | eglApi.cpp | 293 EGLint format; local 301 // set the native window's buffers format to match this config 303 config, EGL_NATIVE_VISUAL_ID, &format)) { 304 if (format != 0) { 305 int err = native_window_set_buffers_format(window, format); 307 ALOGE("error setting native window pixel format: %s (%d)", 797 ScopedTrace st(ATRACE_TAG, String8::format("kicked off frame %d", 822 ScopedTrace st(ATRACE_TAG, String8::format("waiting for frame %d",
|
/frameworks/native/opengl/libs/ETC1/ |
H A D | etc1.cpp | 650 etc1_uint32 format = readBEUint16(pHeader + ETC1_PKM_FORMAT_OFFSET); local 655 return format == ETC1_RGB_NO_MIPMAPS &&
|
/frameworks/native/opengl/libs/GLES_trace/src/ |
H A D | gltrace_fixup.cpp | 32 unsigned getBytesPerTexel(const GLenum format, const GLenum type) { argument 41 format. Color components are treated as groups of one, two, three, or four values, 42 again based on format. Groups of components are referred to as texels. 62 switch (format) { 74 ALOGE("GetBytesPerPixel: unknown format %x", format); 169 GLenum format = arg_format.intvalue(0); local 173 int bytesPerTexel = getBytesPerTexel(format, type); 195 GLenum format, 212 GLenum format, [all...] |
/frameworks/native/opengl/tests/hwc/ |
H A D | hwcTestLib.cpp | 354 // of the graphic format named by the desc parameter. Search failure 368 // of the graphic format specified by the id parameter. Search failure 373 if (id == hwcTestGraphicFormat[n1].format) { 382 // Given the integer ID of a graphic format, return a pointer to 383 // a string that describes the format. 384 const char *hwcTestGraphicFormat2str(uint32_t format) argument 389 if (format == hwcTestGraphicFormat[n1].format) { 541 // Returns a uint32_t that contains a format specific representation of a 543 uint32_t hwcTestColor2Pixel(uint32_t format, ColorFrac argument 546 uint32_t format; member in struct:attrib 609 int format; member in struct:attrib 799 uint32_t format; member in struct:attrib [all...] |
/frameworks/native/services/surfaceflinger/DisplayHardware/ |
H A D | HWComposer.cpp | 178 disp.format = mFbDev->format; 372 // FIXME: what should we set the format to? 373 mDisplayData[disp].format = HAL_PIXEL_FORMAT_RGBA_8888; 431 return mDisplayData[disp].format; 718 return mFbDev->format; 936 " type | handle | hints | flags | tr | blend | format | source crop | frame name \n" 941 int32_t format = -1; local 950 format = buffer->getPixelFormat(); 959 format [all...] |
/frameworks/av/camera/ |
H A D | CameraParameters.cpp | 29 const char CameraParameters::KEY_PREVIEW_FORMAT[] = "preview-format"; 30 const char CameraParameters::KEY_SUPPORTED_PREVIEW_FORMATS[] = "preview-format-values"; 37 const char CameraParameters::KEY_PICTURE_FORMAT[] = "picture-format"; 38 const char CameraParameters::KEY_SUPPORTED_PICTURE_FORMATS[] = "picture-format-values"; 83 const char CameraParameters::KEY_VIDEO_FRAME_FORMAT[] = "video-frame-format"; 410 void CameraParameters::setPreviewFormat(const char *format) argument 412 set(KEY_PREVIEW_FORMAT, format); 442 void CameraParameters::setPictureFormat(const char *format) argument 444 set(KEY_PICTURE_FORMAT, format);
|
/frameworks/av/libvideoeditor/vss/stagefrightshells/src/ |
H A D | VideoEditorVideoDecoder.cpp | 52 const sp<MetaData> &format, 82 const sp<MetaData> &format, VIDEOEDITOR_CodecType codecType, 84 mFormat(format), 1041 // Get the output color format 1063 ALOGI("decoder output format = 0x%X\n", decoderOutput); 1203 // Get the output color format 1382 // Handle EOS and format change 1557 ALOGE("VideoDecoder_decode: unexpected color format 0x%X", 81 VideoEditorVideoDecoderSource( const sp<MetaData> &format, VIDEOEDITOR_CodecType codecType, void *decoderShellContext) argument
|
/frameworks/av/media/libmediaplayerservice/ |
H A D | MediaPlayerService.cpp | 93 // Filter format in a parcel: 310 snprintf(buffer, 255, " msec per frame(%f), channel count(%d), format(%d), frame count(%ld)\n", 1214 *pFormat = cache->format(); 1215 ALOGV("return memory @ %p, sampleRate=%u, channelCount = %d, format = %d", mem->pointer(), *pSampleRate, *pNumChannels, *pFormat); 1264 *pFormat = cache->format(); 1265 ALOGV("return memory @ %p, sampleRate=%u, channelCount = %d, format = %d", mem->pointer(), *pSampleRate, *pNumChannels, *pFormat); 1375 audio_format_t format, int bufferCount, 1389 format, bufferCount, mSessionId); 1418 format, 1430 format, 1373 open( uint32_t sampleRate, int channelCount, audio_channel_mask_t channelMask, audio_format_t format, int bufferCount, AudioCallback cb, void *cookie, audio_output_flags_t flags) argument 1774 open( uint32_t sampleRate, int channelCount, audio_channel_mask_t channelMask, audio_format_t format, int bufferCount, AudioCallback cb, void *cookie, audio_output_flags_t flags) argument [all...] |
/frameworks/av/media/libstagefright/ |
H A D | ACodec.cpp | 512 def.format.video.nFrameWidth, 513 def.format.video.nFrameHeight, 514 def.format.video.eColorFormat); 1057 OMX_AUDIO_PARAM_PORTFORMATTYPE format; local 1058 InitOMXParams(&format); 1060 format.nPortIndex = portIndex; 1062 format.nIndex = index; 1066 &format, sizeof(format)); 1072 if (format 1344 OMX_VIDEO_PARAM_PORTFORMATTYPE format; local 1400 OMX_VIDEO_PARAM_PORTFORMATTYPE format; local [all...] |
H A D | AwesomePlayer.cpp | 1082 int32_t format; local 1085 CHECK(meta->findInt32(kKeyColorFormat, &format)); 1635 ALOGV("VideoSource signalled format change.");
|
H A D | MPEG4Extractor.cpp | 49 MPEG4Source(const sp<MetaData> &format, 1380 // For the 3GPP file format, the handler-type within the 'hdlr' box 1901 const sp<MetaData> &format, 1905 : mFormat(format), 1927 CHECK(format->findData(kKeyAVCC, &type, &data, &size)); 1900 MPEG4Source( const sp<MetaData> &format, const sp<DataSource> &dataSource, int32_t timeScale, const sp<SampleTable> &sampleTable) argument
|
/frameworks/av/media/libstagefright/mp4/ |
H A D | FragmentedMP4Parser.cpp | 279 sp<AMessage> format; local 280 CHECK(response->findMessage("format", &format)); 282 ALOGV("returning format %s", format->debugString().c_str()); 283 return format; 492 sp<AMessage> format = info->mSampleDescs.itemAt(0).mFormat; local 494 format->setInt64("durationUs", info->mSidxDuration); 497 format->setInt64("durationUs", 501 "format", forma 1255 sp<AMessage> format = new AMessage; local 1298 sp<AMessage> format = new AMessage; local 1330 addCodecSpecificData( const sp<AMessage> &format, int32_t index, const void *data, size_t size, bool insertStartCode = false) argument [all...] |
/frameworks/av/services/audioflinger/ |
H A D | AudioPolicyService.cpp | 221 audio_format_t format, 230 return mpAudioPolicy->get_output(mpAudioPolicy, stream, samplingRate, format, channelMask, flags); 269 audio_format_t format, 283 format, channelMask, (audio_in_acoustics_t) 0); 219 getOutput(audio_stream_type_t stream, uint32_t samplingRate, audio_format_t format, audio_channel_mask_t channelMask, audio_output_flags_t flags) argument 267 getInput(audio_source_t inputSource, uint32_t samplingRate, audio_format_t format, audio_channel_mask_t channelMask, int audioSession) argument
|
/frameworks/av/services/camera/libcameraservice/ |
H A D | Camera2Device.cpp | 238 uint32_t width, uint32_t height, int format, size_t size, int *id) { 245 res = stream->connectToDevice(consumer, width, height, format, size); 247 ALOGE("%s: Camera %d: Unable to create stream (%d x %d, format %x):" 249 __FUNCTION__, mId, width, height, format, strerror(-res), res); 297 uint32_t *width, uint32_t *height, uint32_t *format) { 317 if (format) *format = (*streamI)->getFormat(); 806 result = String8::format(" Stream slot buffer %d:\n", i); 816 result = String8::format(" Main queue has %d entries:\n", 821 result = String8::format(" Queu 237 createStream(sp<ANativeWindow> consumer, uint32_t width, uint32_t height, int format, size_t size, int *id) argument 296 getStreamInfo(int id, uint32_t *width, uint32_t *height, uint32_t *format) argument 965 connectToDevice( sp<ANativeWindow> consumer, uint32_t width, uint32_t height, int format, size_t size) argument [all...] |
/frameworks/av/services/camera/libcameraservice/camera2/ |
H A D | Parameters.cpp | 74 String8::format("%dx%d", 80 supportedPreviewSizes += String8::format("%dx%d", 98 String8::format("%d,%d", 106 supportedPreviewFpsRange += String8::format("(%d,%d)", 162 ALOGW("%s: Camera %d: Unknown preview format: %x", 201 supportedPreviewFrameRates += String8::format("%d", 226 supportedPictureSizes += String8::format("%dx%d", 255 supportedJpegThumbSizes += String8::format("%dx%d", 728 zoomRatios += String8::format("%d", static_cast<int>(zoom * 100)); 1069 ALOGE("%s: Preview format canno 1833 formatStringToEnum(const char *format) argument 1854 formatEnumToString(int format) argument [all...] |
/frameworks/base/core/java/android/view/ |
H A D | Window.java | 642 * Set the format of window, as per the PixelFormat types. This overrides 643 * the default format that is selected by the Window based on its 646 * @param format The new window format (see PixelFormat). Use 648 * the format. 652 public void setFormat(int format) { argument 654 if (format != PixelFormat.UNKNOWN) { 655 attrs.format = format; 658 attrs.format 1209 setDefaultWindowFormat(int format) argument [all...] |
H A D | WindowManager.java | 1127 * The desired bitmap format. May be one of the constants in 1130 public int format; field in class:WindowManager.LayoutParams 1291 format = PixelFormat.OPAQUE; 1297 format = PixelFormat.OPAQUE; 1304 format = PixelFormat.OPAQUE; 1311 format = _format; 1318 format = _format; 1328 format = _format; 1358 out.writeInt(format); 1399 format [all...] |
/frameworks/base/core/java/android/widget/ |
H A D | RemoteViews.java | 1849 * @param format The Chronometer format string, or null to 1853 public void setChronometer(int viewId, long base, String format, boolean started) { argument 1855 setString(viewId, "setFormat", format);
|
/frameworks/base/core/jni/android/opengl/ |
H A D | util.cpp | 565 static int checkFormat(SkBitmap::Config config, int format, int type) argument 569 if (format == GL_PALETTE8_RGBA8_OES) 583 if (format == GL_LUMINANCE_ALPHA) 700 jobject jbitmap, jint format, jint type) 706 if (format < 0) { 707 format = getInternalFormat(config); 708 if (format == GL_PALETTE8_RGBA8_OES) 711 int err = checkFormat(config, format, type); 718 glTexSubImage2D(target, level, xoffset, yoffset, w, h, format, type, p); 698 util_texSubImage2D(JNIEnv *env, jclass clazz, jint target, jint level, jint xoffset, jint yoffset, jobject jbitmap, jint format, jint type) argument
|
/frameworks/base/core/jni/ |
H A D | android_app_NativeActivity.cpp | 493 ANativeActivity* activity, int32_t format) { 495 write_work(code->mainWorkWrite, CMD_SET_WINDOW_FORMAT, format); 840 jint format, jint width, jint height) 492 android_NativeActivity_setWindowFormat( ANativeActivity* activity, int32_t format) argument 839 onSurfaceChanged_native(JNIEnv* env, jobject clazz, jint handle, jobject surface, jint format, jint width, jint height) argument
|
H A D | android_opengl_GLES10.cpp | 340 /* void glCompressedTexSubImage2D ( GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data ) */ 343 (JNIEnv *_env, jobject _this, jint target, jint level, jint xoffset, jint yoffset, jint width, jint height, jint format, jint imageSize, jobject data_buf) { 361 (GLenum)format, 3214 /* void glReadPixels ( GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels ) */ 3217 (JNIEnv *_env, jobject _this, jint x, jint y, jint width, jint height, jint format, jint type, jobject pixels_buf) { 3233 (GLenum)format, 3670 /* void glTexImage2D ( GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels ) */ 3673 (JNIEnv *_env, jobject _this, jint target, jint level, jint internalformat, jint width, jint height, jint border, jint format, jint type, jobject pixels_buf) { 3693 (GLenum)format, 3724 /* void glTexSubImage2D ( GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenu 342 android_glCompressedTexSubImage2D__IIIIIIIILjava_nio_Buffer_2(JNIEnv *_env, jobject _this, jint target, jint level, jint xoffset, jint yoffset, jint width, jint height, jint format, jint imageSize, jobject data_buf) argument 3216 android_glReadPixels__IIIIIILjava_nio_Buffer_2(JNIEnv *_env, jobject _this, jint x, jint y, jint width, jint height, jint format, jint type, jobject pixels_buf) argument 3672 android_glTexImage2D__IIIIIIIILjava_nio_Buffer_2(JNIEnv *_env, jobject _this, jint target, jint level, jint internalformat, jint width, jint height, jint border, jint format, jint type, jobject pixels_buf) argument 3726 android_glTexSubImage2D__IIIIIIIILjava_nio_Buffer_2(JNIEnv *_env, jobject _this, jint target, jint level, jint xoffset, jint yoffset, jint width, jint height, jint format, jint type, jobject pixels_buf) argument [all...] |
/frameworks/base/media/java/android/media/ |
H A D | MediaScanner.java | 359 FileEntry(long rowId, String path, long lastModified, int format) { argument 363 mFormat = format; 926 int format = entry.mFormat; 927 if (format == 0) { 928 format = MediaFile.getFormatCode(entry.mPath, mMimeType); 930 values.put(Files.FileColumns.FORMAT, format); 1114 int format = c.getInt(FILES_PRESCAN_FORMAT_COLUMN_INDEX); 1127 if (!exists && !MtpConstants.isAbstractObject(format)) { 1410 public void scanMtpFile(String path, String volumeName, int objectHandle, int format) { argument 1454 (format [all...] |
/frameworks/base/media/java/android/mtp/ |
H A D | MtpConstants.java | 158 // MTP format codes 159 /** Undefined format code */ 276 * @param format the format of the object 279 public static boolean isAbstractObject(int format) { argument 280 switch (format) {
|
/frameworks/base/opengl/java/android/opengl/ |
H A D | GLSurfaceView.java | 86 * By default GLSurfaceView will create a PixelFormat.RGB_888 format surface. If a translucent 88 * The exact format of a TRANSLUCENT surface is device dependent, but it will be 97 * By default GLSurfaceView chooses a EGLConfig that has an RGB_888 pixel format, 539 public void surfaceChanged(SurfaceHolder holder, int format, int w, int h) { argument
|