Questions tagged [textureview]

A TextureView can be used to display a content stream. Such a content stream can for instance be a video or an OpenGL scene. The content stream can come from the application's process as well as a remote process.

295 questions
0
votes
1 answer

my Simple render target view is not working

i am trying to create another rendertargetview and render it Before, i just get back buffer from swapchain and then create rtv from it, this works fine. but only when creating rtv from custom resoure, i have a problem. D3D11_TEXTURE2D_DESC…
0
votes
4 answers

Camera 2 Preview is stretched

I am currently making an android app using Camera2 API. I am facing a problem with AutoFitTextureView the image is showing stretched. My code for the AutoFitTextureView is as below public class AutoFitTextureView extends TextureView { private int…
B jha
  • 33
  • 5
0
votes
1 answer

Why is the Android Camera2 preview not showing. It's a dark scene and the TextureView listener is not getting called on activity launch

I followed the basic sample code from Google for Android Camera2 API. https://github.com/googlesamples/android-Camera2Basic. After I integrated it into my app, it is showing dark scene. No camera output can be seen. It was working fine before…
Vaishnavi Killekar
  • 457
  • 1
  • 8
  • 22
0
votes
1 answer

Problem in the combination of textureView and OpenGL

Currently I am trying to work with both textureView and OpenGL, and my target is to read the buffer from SurfaceTexture. After lots of searching, I found grafika, but fail to find a suitable example that using textureview.(and, for some reason I…
Michael.Z
  • 41
  • 7
0
votes
2 answers

How to create a Circular TextureView for camera2 api

I'm creating a masking layout over the TextureView but it doesn't fulfil my requirements as I want to convert the captured image to circular shape later. Is there any way to create a circular shaped TextureView in Android?
0
votes
1 answer

Android custom camera scope (TextureView)

I have a fragment in which I'm using a TextureView, and I'm using the following link as a reference: https://github.com/googlesamples/android-Camera2Basic Is there a way to modify the scope of the camera to take a "landscape" (it's not really a…
Cookienator
  • 637
  • 1
  • 7
  • 25
0
votes
1 answer

How to retain rendering data of a texture view when it called detachFromWindow()?

I want to add a textureview into a viewgroup, and this viewgroup will call attachToWindow and detachFromWindow frequently. In order not to show a black view, I saved the surfacetexture of this textureview like this. It's useful for most mobile…
0
votes
0 answers

How to display the same video in multiple TextureView?

I'm using ExoPlayer to play a MPEG-DASH stream video. I need to set this video into multiple TextureView, then crop these views at different positions. Is it possible, and how can I do that? Thanks very much.
0
votes
1 answer

How to get zoomed preview(bitmap) in textureview?

I want to get zoomed preview in the format of bitmap from textureview. when I tried to get it returned me full bitmap without zoomed translation. I managed to get zoomed preview using following code> mTempBitmap = Bitmap.createBitmap(mTempBitmap,…
shashank J
  • 67
  • 7
0
votes
1 answer

Camera shows black screen with TextureView

I want to use TextureView as a camera. but I got a black screen. my class: package com.sm.carpet.activity; import android.annotation.TargetApi; import android.app.Activity; import android.content.ActivityNotFoundException; …
S.M_Emamian
  • 17,005
  • 37
  • 135
  • 254
0
votes
0 answers

Gralloc]: lock_ycbcr: videobuffer_status is invalid, use default value

I am getting this: Gralloc]: lock_ycbcr: videobuffer_status is invalid, use default value from the logcat. I am using TextureView and camera2 what does in mean?
0
votes
1 answer

How to write onPause() and onResume() method for Camera preview using Texture View

I copied an android custom camera making code. I used camera api 1 and TextireView for layout. I'm stuck in onPause() and onResume() method, any suggestion to handle this methods . Other methods like onSurfaceTextureUpdated() are ok. But because…
0
votes
1 answer

Bitmap of a Screen

I am working with Camera2 API. I have the camera preview in a texture view. And an Image that is placed over the texture view. The imageView and the textureView are placed in a RelativeLayout. Getting the rootView and converting it into Bitmap gets…
0
votes
1 answer

Overlay TextureView with circle border View

Android newbie here but I'm trying to overlay a transparent circle view over a TextureView stream from the device camera, however no matter what I do I cannot get the overlay view to appear on top of the TextureView. I have the TextureView…
jhole89
  • 718
  • 9
  • 28
0
votes
1 answer

Display camera preview in a circle

I want to display a camera preview in a circular shape using the camera2 api. I want to display the preview in a circular shape, but I dont't want the image to be captured in a circular shape. The captured image would be a face( later want to…
user2234
  • 1,282
  • 1
  • 21
  • 44