landscape-portrait

Rotating YUV image data for Portrait Mode Using RenderScript

故事扮演 提交于 2021-02-15 04:35:00
问题 for a video image processing project, I have to rotate the incoming YUV image data so that the data is not shown horizontally but vertically. I used this project which gave me a tremendous insight in how to convert YUV image data to ARGB for processing them in real-time. The only drawback of that project is that it is only in landscape. There is no option for portrait mode (I do not know why the folks at Google present an example sample which handles only the landscape orientation). I wanted

Rotating YUV image data for Portrait Mode Using RenderScript

坚强是说给别人听的谎言 提交于 2021-02-15 04:34:24
问题 for a video image processing project, I have to rotate the incoming YUV image data so that the data is not shown horizontally but vertically. I used this project which gave me a tremendous insight in how to convert YUV image data to ARGB for processing them in real-time. The only drawback of that project is that it is only in landscape. There is no option for portrait mode (I do not know why the folks at Google present an example sample which handles only the landscape orientation). I wanted

Rotating YUV image data for Portrait Mode Using RenderScript

和自甴很熟 提交于 2021-02-15 04:34:18
问题 for a video image processing project, I have to rotate the incoming YUV image data so that the data is not shown horizontally but vertically. I used this project which gave me a tremendous insight in how to convert YUV image data to ARGB for processing them in real-time. The only drawback of that project is that it is only in landscape. There is no option for portrait mode (I do not know why the folks at Google present an example sample which handles only the landscape orientation). I wanted

Captured image always shows landscape and setRotate cannot be resolved

走远了吗. 提交于 2020-04-07 08:57:27
问题 There are quite a few similar topics and issues around here and I follow this . But I get error. My Code @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); if (resultCode == RESULT_OK) { if (requestCode == 1) { //h=0; File f = new File(Environment.getExternalStorageDirectory().toString()); for (File temp : f.listFiles()) { if (temp.getName().equals("temp.jpg")) { f = temp; File photo = new File

how to force view controller to stay in portrait mode?

倾然丶 夕夏残阳落幕 提交于 2020-01-25 12:00:08
问题 I have an iOS application with storyboard. I want my last viewcontroller to stay always in portrait mode. I've been reading and I found that since -(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation is deprecated I should use other methods like -(BOOL)shouldAutorotate -(NSInteger)supportedInterfaceOrientations -(UIInterfaceOrientation)preferredInterfaceOrientationForPresentation but i have tried so many combinations of this methods and I have not been

Thumbnail generation with Ghostscript rotates my device size definition for landscape pdf pages

末鹿安然 提交于 2020-01-13 19:44:22
问题 I want to use GS to generate thumbnails from pdf files. The thumbnail must fit a 90x120 pixel rectangle The image should not be rotated The image should be resized to fit the rectangle with keeping aspect ratio I use the following command: gswin32 -dPDFFitPage -dPARANOIDSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=0 -dDEVICEWIDTH=90 -dDEVICEHEIGHT=120 -dORIENT1=true -sDEVICE=jpeg -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -sOutputFile=output.%d.jpg input

Android move from Landscape to Portrait (or vice versa) when using camera is too slow?

情到浓时终转凉″ 提交于 2020-01-06 02:41:27
问题 I have a DrawerLayout which contains a FrameLayout and ListView in my app, I have to show the camera in the FrameLayout , I've done that fine (as following code) and the camera works correctly. The problem is when moving from portrait orientation to (right-Landscape orientation or left-landscape orientation), or vice versa, it take the mobile a long time to make changes, the problem does not appear when moving from right-Landscape orientation or left-landscape orientation or vice versa. How

setting screenOrientation in AndroidManifest.xml does not work

天涯浪子 提交于 2020-01-03 08:59:33
问题 I have a simple hello world Android testing project. In my AndroidManifest.xml, I already set android:screenOrientation="portrait" android:configChanges="keyboardHidden|keyboard|orientation"> but when I debug my code, the variable isLandscape is True when it should supposed to be False boolean isLandscape = getResources().getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE; I know that I can also set the activity orientation by code, but I need to set it in xml for some