Home
last modified time | relevance | path

Searched refs:mVideoWidth (Results 1 – 19 of 19) sorted by relevance

/frameworks/base/core/java/android/widget/
DVideoView.java79 private int mVideoWidth; field in VideoView
114 int width = getDefaultSize(mVideoWidth, widthMeasureSpec); in onMeasure()
116 if (mVideoWidth > 0 && mVideoHeight > 0) { in onMeasure()
129 if ( mVideoWidth * height < width * mVideoHeight ) { in onMeasure()
131 width = height * mVideoWidth / mVideoHeight; in onMeasure()
132 } else if ( mVideoWidth * height > width * mVideoHeight ) { in onMeasure()
134 height = width * mVideoHeight / mVideoWidth; in onMeasure()
139 height = width * mVideoHeight / mVideoWidth; in onMeasure()
147 width = height * mVideoWidth / mVideoHeight; in onMeasure()
154 width = mVideoWidth; in onMeasure()
[all …]
/frameworks/base/core/java/android/webkit/
DHTML5VideoFullScreen.java49 int width = getDefaultSize(mVideoWidth, widthMeasureSpec); in onMeasure()
51 if (mVideoWidth > 0 && mVideoHeight > 0) { in onMeasure()
52 if ( mVideoWidth * height > width * mVideoHeight ) { in onMeasure()
53 height = width * mVideoHeight / mVideoWidth; in onMeasure()
54 } else if ( mVideoWidth * height < width * mVideoHeight ) { in onMeasure()
55 width = height * mVideoWidth / mVideoHeight; in onMeasure()
91 private int mVideoWidth; field in HTML5VideoFullScreen
138 mVideoWidth = mp.getVideoWidth();
140 if (mVideoWidth != 0 && mVideoHeight != 0) {
141 mVideoSurfaceView.getHolder().setFixedSize(mVideoWidth, mVideoHeight);
[all …]
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/
DSoftMPEG4Encoder.cpp84 mVideoWidth(176), in SoftMPEG4Encoder()
129 mEncParams->encWidth[0] = mVideoWidth; in initEncParams()
154 (uint8_t *) malloc((mVideoWidth * mVideoHeight * 3 ) >> 1); in initEncParams()
159 if (mVideoWidth % 16 != 0 || mVideoHeight % 16 != 0) { in initEncParams()
161 mVideoWidth, mVideoHeight); in initEncParams()
235 const size_t kInputBufferSize = (mVideoWidth * mVideoHeight * 3) >> 1; in initPorts()
259 def.format.video.nFrameWidth = mVideoWidth; in initPorts()
261 def.format.video.nStride = mVideoWidth; in initPorts()
290 def.format.video.nFrameWidth = mVideoWidth; in initPorts()
292 def.format.video.nStride = mVideoWidth; in initPorts()
[all …]
DSoftMPEG4Encoder.h70 int32_t mVideoWidth; member
/frameworks/av/media/libstagefright/codecs/avc/enc/
DSoftAVCEncoder.cpp176 mVideoWidth(176), in SoftAVCEncoder()
261 (uint8_t *) malloc((mVideoWidth * mVideoHeight * 3 ) >> 1); in initEncParams()
266 if (mVideoWidth % 16 != 0 || mVideoHeight % 16 != 0) { in initEncParams()
268 mVideoWidth, mVideoHeight); in initEncParams()
272 mEncParams->width = mVideoWidth; in initEncParams()
278 int32_t nMacroBlocks = ((((mVideoWidth + 15) >> 4) << 4) * in initEncParams()
375 const size_t kInputBufferSize = (mVideoWidth * mVideoHeight * 3) >> 1; in initPorts()
397 def.format.video.nFrameWidth = mVideoWidth; in initPorts()
399 def.format.video.nStride = mVideoWidth; in initPorts()
420 def.format.video.nFrameWidth = mVideoWidth; in initPorts()
[all …]
DSoftAVCEncoder.h80 int32_t mVideoWidth; member
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/
DMediaRecorderStressTestRunner.java41 public static int mVideoWidth = profile.videoFrameWidth; field in MediaRecorderStressTestRunner
87 mVideoWidth = Integer.parseInt(videoWidth); in onCreate()
/frameworks/av/media/libmediaplayerservice/
DStagefrightRecorder.cpp191 mVideoWidth = width; in setVideoSize()
1081 if (mVideoWidth < minFrameWidth && minFrameWidth != -1) { in clipVideoFrameWidth()
1083 " and will be set to (%d)", mVideoWidth, minFrameWidth); in clipVideoFrameWidth()
1084 mVideoWidth = minFrameWidth; in clipVideoFrameWidth()
1085 } else if (mVideoWidth > maxFrameWidth && maxFrameWidth != -1) { in clipVideoFrameWidth()
1087 " and will be set to (%d)", mVideoWidth, maxFrameWidth); in clipVideoFrameWidth()
1088 mVideoWidth = maxFrameWidth; in clipVideoFrameWidth()
1150 videoFrameWidth == mVideoWidth && in setDefaultProfileIfNecessary()
1285 mSurfaceMediaSource = new SurfaceMediaSource(mVideoWidth, mVideoHeight); in setupSurfaceMediaSource()
1314 videoSize.width = mVideoWidth; in setupCameraSource()
[all …]
DStagefrightRecorder.h88 int32_t mVideoWidth, mVideoHeight; member
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/performance/
DMediaPlayerPerformance.java90 private int mVideoWidth = mCamcorderProfile.videoFrameWidth; field in MediaPlayerPerformance
418 assertTrue(stressVideoRecord(frameRate, mVideoWidth, mVideoHeight, in testH263RecordVideoOnlyMemoryUsage()
438 assertTrue(stressVideoRecord(frameRate, mVideoWidth, mVideoHeight, in testMpeg4RecordVideoOnlyMemoryUsage()
458 assertTrue(stressVideoRecord(frameRate, mVideoWidth, mVideoHeight, in testRecordVideoAudioMemoryUsage()
/frameworks/av/include/media/stagefright/
DCameraSourceTimeLapse.h60 int32_t mVideoWidth;
/frameworks/av/media/libmedia/
Dmediaplayer.cpp58 mVideoWidth = mVideoHeight = 0; in MediaPlayer()
94 mVideoWidth = mVideoHeight = 0; in clear_l()
366 *w = mVideoWidth; in getVideoWidth()
753 mVideoWidth = ext1; in notify()
/frameworks/av/include/media/
Dmediaplayer.h263 int mVideoWidth; variable
/frameworks/av/libvideoeditor/lvpp/
DPreviewPlayer.cpp256 mVideoSource = DummyVideoSource::Create(mVideoWidth, mVideoHeight, in setDataSource_l_jpg()
328 mVideoWidth = mVideoHeight = -1; in reset_l()
690 if (mVideoWidth < 0 || mVideoHeight < 0) { in getVideoDimensions()
694 *width = mVideoWidth; in getVideoDimensions()
1458 mVideoWidth = width; in setImageClipProperties()
DPreviewPlayer.h198 int32_t mVideoWidth, mVideoHeight; member
/frameworks/av/media/libstagefright/
DCameraSourceTimeLapse.cpp81 mVideoWidth = videoSize.width; in CameraSourceTimeLapse()
DAwesomePlayer.cpp578 mStats.mVideoWidth = -1; in reset_l()
1054 mStats.mVideoWidth = usableWidth; in notifyVideoSize_l()
2626 mStats.mVideoWidth, in dump()
/frameworks/av/media/libstagefright/include/
DAwesomePlayer.h324 int32_t mVideoWidth; member
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/
DMediaRecorderStressTest.java195 videoWidth = MediaRecorderStressTestRunner.mVideoWidth; in recordVideoAndPlayback()