Lines Matching refs:mVASurfaceAttrib
59 mVASurfaceAttrib(NULL), in VideoDecoderBase()
903 mVASurfaceAttrib = new VASurfaceAttribExternalBuffers; in setupVA()
904 if (mVASurfaceAttrib == NULL) { in setupVA()
908 mVASurfaceAttrib->buffers= (unsigned long *)malloc(sizeof(unsigned long)*mNumSurfaces); in setupVA()
909 if (mVASurfaceAttrib->buffers == NULL) { in setupVA()
912 mVASurfaceAttrib->num_buffers = mNumSurfaces; in setupVA()
913 mVASurfaceAttrib->pixel_format = VA_FOURCC_NV12; in setupVA()
914 mVASurfaceAttrib->width = mVideoFormatInfo.surfaceWidth; in setupVA()
915 mVASurfaceAttrib->height = mVideoFormatInfo.surfaceHeight; in setupVA()
916 …mVASurfaceAttrib->data_size = mConfigBuffer.graphicBufferHStride * mConfigBuffer.graphicBufferVStr… in setupVA()
917 mVASurfaceAttrib->num_planes = 2; in setupVA()
918 mVASurfaceAttrib->pitches[0] = mConfigBuffer.graphicBufferHStride; in setupVA()
919 mVASurfaceAttrib->pitches[1] = mConfigBuffer.graphicBufferHStride; in setupVA()
920 mVASurfaceAttrib->pitches[2] = 0; in setupVA()
921 mVASurfaceAttrib->pitches[3] = 0; in setupVA()
922 mVASurfaceAttrib->offsets[0] = 0; in setupVA()
923 …mVASurfaceAttrib->offsets[1] = mConfigBuffer.graphicBufferHStride * mConfigBuffer.graphicBufferVSt… in setupVA()
924 mVASurfaceAttrib->offsets[2] = 0; in setupVA()
925 mVASurfaceAttrib->offsets[3] = 0; in setupVA()
926 mVASurfaceAttrib->private_data = (void *)mConfigBuffer.nativeWindow; in setupVA()
927 mVASurfaceAttrib->flags = VA_SURFACE_ATTRIB_MEM_TYPE_ANDROID_GRALLOC; in setupVA()
929 mVASurfaceAttrib->flags |= VA_SURFACE_EXTBUF_DESC_ENABLE_TILING; in setupVA()
932 mVASurfaceAttrib->buffers[i] = (unsigned long)mConfigBuffer.graphicBufferHandler[i]; in setupVA()
943 attribs[1].value.value.p = (void *)mVASurfaceAttrib; in setupVA()
1080 if (mVASurfaceAttrib) { in terminateVA()
1081 if (mVASurfaceAttrib->buffers) free(mVASurfaceAttrib->buffers); in terminateVA()
1082 delete mVASurfaceAttrib; in terminateVA()
1083 mVASurfaceAttrib = NULL; in terminateVA()