Home | History | Annotate | Download | only in media

Lines Matching refs:texture

41     private Texture mScreennailImage = null;
126 public Texture getThumbnailImage(Context context, MediaItemTexture.Config config) {
127 MediaItemTexture texture = mThumbnailImage;
128 if (texture == null && config != null) {
130 texture = new MediaItemTexture(context, config, mItemRef);
132 mThumbnailImage = texture;
134 return texture;
137 public Texture getScreennailImage(Context context) {
138 Texture texture = mScreennailImage;
139 if (texture == null || texture.mState == Texture.STATE_ERROR) {
143 texture = new MediaItemTexture(context, null, mItemRef);
145 texture = new UriTexture(mItemRef.mContentUri);
148 texture = new UriTexture(mItemRef.mScreennailUri);
149 ((UriTexture) texture).setCacheId(Utils.Crc64Long(mItemRef.mFilePath));
151 mScreennailImage = texture;
153 return texture;
334 public final Texture getHiResImage(Context context) {
335 UriTexture texture = mHiResImage;
336 if (texture == null) {
337 texture = new UriTexture(mItemRef.mContentUri);
338 texture.setCacheId(Utils.Crc64Long(mItemRef.mFilePath));
339 mHiResImage = texture;
341 return texture;