Searched defs:width (Results 1 - 25 of 710) sorted by path

1234567891011>>

/frameworks/av/camera/
H A DCameraParameters.cpp40 const char CameraParameters::KEY_JPEG_THUMBNAIL_WIDTH[] = "jpeg-thumbnail-width";
331 int width, height; local
332 int success = parse_pair(sizeStartPtr, &width, &height, 'x',
338 sizes.push(Size(width, height));
347 void CameraParameters::setPreviewSize(int width, int height) argument
350 sprintf(str, "%dx%d", width, height);
354 void CameraParameters::getPreviewSize(int *width, int *height) const argument
356 *width = *height = -1;
360 parse_pair(p, width, height, 'x');
363 void CameraParameters::getPreferredPreviewSizeForVideo(int *width, in argument
377 setVideoSize(int width, int height) argument
384 getVideoSize(int *width, int *height) const argument
426 setPictureSize(int width, int height) argument
433 getPictureSize(int *width, int *height) const argument
[all...]
/frameworks/av/camera/ndk/impl/
H A DACameraMetadata.cpp103 int32_t width = entry.data.i32[i + STREAM_WIDTH_OFFSET]; local
115 filteredStreamConfigs.push_back(width);
128 int32_t width = entry.data.i32[i + STREAM_WIDTH_OFFSET]; local
143 filteredDepthStreamConfigs.push_back(width);
/frameworks/av/cmds/screenrecord/
H A DEglWindow.cpp64 status_t EglWindow::createPbuffer(int width, int height) { argument
74 mWidth = width;
78 EGL_WIDTH, width,
H A DFontBitmap.h4 static const uint32_t width = 256; member in class:FontBitmap
H A DFrameOutput.cpp43 status_t FrameOutput::createInputSurface(int width, int height, argument
47 err = mEglWindow.createPbuffer(width, height);
53 glViewport(0, 0, width, height);
76 mGlConsumer->setDefaultBufferSize(width, height);
82 mPixelBuf = new uint8_t[width * height * kGlBytesPerPixel];
123 int width = mEglWindow.getWidth(); local
126 width, height, true);
139 glReadPixels(0, 0, width, height, GL_RGBA, GL_UNSIGNED_BYTE, mPixelBuf);
147 reduceRgbaToRgb(mPixelBuf, width * height);
155 size_t rgbDataLen = width * heigh
[all...]
H A DOverlay.cpp143 int width = mEglWindow.getWidth(); local
146 glViewport(0, 0, width, height);
164 mTextRenderer.setScreenSize(width, height);
178 mGlConsumer->setDefaultBufferSize(width, height);
220 int width = mEglWindow.getWidth(); local
224 100, 100, width-200, height-200);
227 0, 0, width, height);
234 100, 100, width-200, height-200);
296 int width = window.getWidth(); local
298 glViewport(0, 0, width, heigh
331 int width = window.getWidth(); local
[all...]
H A DTextRenderer.h51 void setScreenSize(uint32_t width, uint32_t height) { argument
52 mScreenWidth = width;
98 // Computes the width of the string, in pixels.
101 // Computes the width of first N characters in the string.
H A Dscreenrecord.cpp77 static uint32_t gVideoWidth = 0; // default width+height
158 format->setInt32("width", gVideoWidth);
219 // case is "all of it". If the app is rotated (so that the width of the
220 // app is based on the height of the display), reverse width/height.
227 ALOGV("using rotated width/height");
240 // "pre-rotate" it by flipping width/height, so that the orientation
246 // In that case, we swap the configured video width/height and then
258 // limited by narrow width; reduce height
262 // limited by short height; restrict width
800 long width, heigh local
[all...]
/frameworks/av/cmds/stagefright/
H A Djpeg.cpp40 int writeJpegFile(const char *filename, uint8_t *frame, int width, int height) { argument
43 uint8_t row_data[width * 3];
63 cinfo.image_width = width;
74 uint16_t *src = (uint16_t *)(frame + row * width * 2);
76 for (int col = 0; col < width; col++) {
H A Dmuxer.cpp122 int width , height; local
123 CHECK(format->findInt32("width", &width));
125 bufferSize = width * height * 4; // Assuming it is maximally 4BPP
H A Drecordvideo.cpp49 fprintf(stderr, " -w width in pixels (default: 176)\n");
62 DummySource(int width, int height, int nFrames, int fps, int colorFormat) argument
63 : mWidth(width),
68 mSize((width * height * 3) / 2) {
168 int width = 176; local
219 width = atoi(optarg);
273 new DummySource(width, height, nFrames, frameRateFps, colorFormat);
287 enc_meta->setInt32("width", width);
291 enc_meta->setInt32("stride", width);
[all...]
H A Dsf2.cpp298 int32_t width, height; local
299 CHECK(meta->findInt32(kKeyWidth, &width));
302 msg->setInt32("width", width);
/frameworks/av/drm/libmediadrm/
H A DCrypto.cpp264 void Crypto::notifyResolution(uint32_t width, uint32_t height) { argument
268 mPlugin->notifyResolution(width, height);
/frameworks/av/include/camera/
H A DCameraParameters.h26 int width; member in struct:android::Size
30 width = 0;
35 width = w;
59 void setPreviewSize(int width, int height);
60 void getPreviewSize(int *width, int *height) const;
63 // Set the dimensions in pixels to the given width and height
64 // for video frames. The given width and height must be one
68 void setVideoSize(int width, int height);
69 // Retrieve the current dimensions (width and height)
74 void getVideoSize(int *width, in
[all...]
/frameworks/av/include/media/stagefright/
H A DYUVImage.h56 YUVImage(YUVFormat yuvFormat, int32_t width, int32_t height);
60 YUVImage(YUVFormat yuvFormat, int32_t width, int32_t height, uint8_t *buffer);
68 static size_t bufferSize(YUVFormat yuvFormat, int32_t width, int32_t height);
70 int32_t width() const {return mWidth;} function in class:android::YUVImage
73 // Returns true if pixel is the range [0, width-1] x [0, height-1]
78 // Note that the range of x is [0, width-1] and the range of y is [0, height-1].
84 // Note that the range of x is [0, width-1] and the range of y is [0, height-1].
147 // Note that the range of x is [0, width-1] and the range of y is [0, height-1].
167 // Note that the range of x is [0, width-1] and the range of y is [0, height-1].
/frameworks/av/media/img_utils/src/
H A DTiffIfd.cpp196 uint32_t width = *(widthEntry->getData<uint32_t>()); local
211 const uint32_t rowLengthBytes = bytesPerSample * samplesPerPixel * width;
/frameworks/av/media/libmedia/
H A DICrypto.cpp163 uint32_t width, uint32_t height) {
166 data.writeInt32(width);
396 int32_t width = data.readInt32(); local
398 notifyResolution(width, height);
162 notifyResolution( uint32_t width, uint32_t height) argument
H A DIMediaRecorder.cpp185 status_t setVideoSize(int width, int height) argument
187 ALOGV("setVideoSize(%dx%d)", width, height);
190 data.writeInt32(width);
440 int width = data.readInt32(); local
442 reply->writeInt32(setVideoSize(width, height));
H A DIRemoteDisplayClient.cpp41 uint32_t width, uint32_t height, uint32_t flags, uint32_t session)
46 data.writeInt32(width);
81 uint32_t width = data.readInt32(); local
85 onDisplayConnected(surfaceTexture, width, height, flags, session);
40 onDisplayConnected(const sp<IGraphicBufferProducer>& bufferProducer, uint32_t width, uint32_t height, uint32_t flags, uint32_t session) argument
H A Dmediarecorder.cpp306 status_t MediaRecorder::setVideoSize(int width, int height) argument
308 ALOGV("setVideoSize(%d, %d)", width, height);
322 status_t ret = mMediaRecorder->setVideoSize(width, height);
/frameworks/av/media/libmediaplayerservice/
H A DMediaRecorderClient.cpp175 status_t MediaRecorderClient::setVideoSize(int width, int height) argument
177 ALOGV("setVideoSize(%dx%d)", width, height);
183 return mRecorder->setVideoSize(width, height);
H A DStagefrightRecorder.cpp191 status_t StagefrightRecorder::setVideoSize(int width, int height) { argument
192 ALOGV("setVideoSize: %dx%d", width, height);
193 if (width <= 0 || height <= 0) {
194 ALOGE("Invalid video size: %dx%d", width, height);
199 mVideoWidth = width;
1208 "enc.vid.width.min", mVideoEncoder);
1210 "enc.vid.width.max", mVideoEncoder);
1212 ALOGW("Intended video encoding frame width (%d) is too small"
1216 ALOGW("Intended video encoding frame width (%d) is too large"
1258 "vid.width", mCameraI
1521 int32_t width, height, stride, sliceHeight, colorFormat; local
[all...]
/frameworks/av/media/libmediaplayerservice/nuplayer/
H A DHTTPLiveSource.cpp298 int32_t width; local
301 format->findInt32("width", &width) && format->findInt32("height", &height)) {
H A DNuPlayer.cpp1696 int32_t width, height; local
1697 CHECK(outputFormat->findInt32("width", &width));
1710 width, height,
1715 CHECK(inputFormat->findInt32("width", &displayWidth));
1723 if (inputFormat->findInt32("sar-width", &sarWidth)
H A DNuPlayerDecoder.cpp305 int32_t width, height; local
306 if (mOutputFormat->findInt32("width", &width)
308 mStats->setInt32("width", width);
617 int32_t width, height; local
618 if (format->findInt32("width", &width)
620 mStats->setInt32("width", width);
[all...]

Completed in 223 milliseconds

1234567891011>>