Home | History | Annotate | Download | only in media

Lines Matching refs:DisplayItem

44     private final DisplayItem[] mDisplayItems;
53 private DisplayItem[] mItemsDrawn;
67 private static final Comparator<DisplayItem> sDisplayItemComparator = new Comparator<DisplayItem>() {
68 public int compare(DisplayItem a, DisplayItem b) {
84 DisplayItem[] displayItems, DisplaySlot[] displaySlots) {
92 mItemsDrawn = new DisplayItem[GridLayer.MAX_ITEMS_DRAWABLE];
129 final DisplayItem[] displayItems = mDisplayItems;
137 final DisplayItem[] itemsDrawn = mItemsDrawn;
152 DisplayItem displayItem = displayItems[(index - firstBufferedVisibleSlot) * GridLayer.MAX_ITEMS_PER_SLOT + j];
153 if (displayItem == null) {
156 Texture texture = displayItem.getThumbnailImage(context, sThumbnailConfig);
167 DisplayItem displayItem = displayItems[(index - firstBufferedVisibleSlot) * GridLayer.MAX_ITEMS_PER_SLOT
169 if (displayItem == null) {
172 displayItem.mCurrentSlotIndex = index;
174 displayItem.clearScreennailImage();
176 Texture texture = displayItem.getThumbnailImage(context, sThumbnailConfig);
196 DisplayItem displayItem = displayItems[(index - firstBufferedVisibleSlot) * GridLayer.MAX_ITEMS_PER_SLOT + j];
197 if (displayItem == null)
199 Texture texture = displayItem.getThumbnailImage(context, sThumbnailConfig);
203 final MediaSet parentSet = displayItem.mItemRef.mParentMediaSet;
205 displayList.setAlive(displayItem, false);
208 displayList.setAlive(displayItem, false);
218 displayList.setOffset(displayItem, false, true, span, dx1, dy1, dx2, dy2);
223 displayList.setOffset(displayItem, true, false, span, dx1, dy1, dx2, dy2);
225 displayList.setOffset(displayItem, true, true, span, dx1, dy1, dx2, dy2);
227 displayList.setOffset(displayItem, false, false, span, dx1, dy1, dx2, dy2);
244 DisplayItem displayItem = displayItems[(index - firstBufferedVisibleSlot) * GridLayer.MAX_ITEMS_PER_SLOT + j];
245 if (displayItem == null) {
249 displayList.setHasFocus(displayItem, true, pushDown);
252 displayList.setHasFocus(displayItem, false, pushDown);
256 Texture texture = displayItem.getThumbnailImage(view.getContext(), sThumbnailConfig);
259 displayItem.mAlive = true;
260 if ((!displayItem.isAnimating() || !texture.isLoaded())
261 && displayItem.getStackIndex() > GridLayer.MAX_ITEMS_PER_SLOT) {
262 displayList.setAlive(displayItem, true);
267 displayList.setAlive(displayItem, true);
271 drawDisplayItem(view, gl, displayItem, texture, PASS_THUMBNAIL_CONTENT, placeholder,
272 displayItem.mAnimatedPlaceholderFade);
281 itemsDrawn[drawnCounter++] = displayItem;
302 DisplayItem[] displayItems = mDisplayItems;
310 DisplayItem displayItem = displayItems[(i - firstBufferedVisibleSlot) * GridLayer.MAX_ITEMS_PER_SLOT];
311 if (displayItem != null) {
312 displayItem.clearScreennailImage();
321 DisplayItem centerDisplayItem = displayItems[centerIndexInDrawnArray];
346 DisplayItem displayItem = displayItems[indexInDrawnArray];
347 MediaItem item = displayItem.mItemRef;
348 final Texture thumbnailTexture = displayItem.getThumbnailImage(view.getContext(), sThumbnailConfig);
349 Texture texture = displayItem.getScreennailImage(view.getContext());
355 Texture hiRes = (zoomValue != 1.0f && i == 0 && item.getMediaType() != MediaItem.MEDIA_TYPE_VIDEO) ? displayItem
362 displayItem.clearHiResImage();
397 int theta = (int) displayItem.getImageTheta();
407 float currentImageTheta = displayItem.mAnimatedImageTheta;
408 displayItem = displayItems[nextIndexInDrawnArray];
409 backupImageTheta = displayItem.mAnimatedImageTheta;
410 displayItem.mAnimatedImageTheta = currentImageTheta;
415 displayItem.mAnimatedImageTheta = backupImageTheta;
438 drawDisplayItem(view, gl, displayItem, texture, PASS_FOCUS_CONTENT, null, 0.0f);
451 drawDisplayItem(view, gl, displayItem, fsTexture, PASS_FOCUS_CONTENT, null, 1.0f);
469 drawDisplayItem(view, gl, displayItem, drawables.mTextureVideo, PASS_VIDEO_LABEL, null, 0);
484 DisplayItem[] displayItems = mDisplayItems;
502 DisplayItem displayItem = displayItems[(i - firstBufferedVisibleSlot) * GridLayer.MAX_ITEMS_PER_SLOT + j];
503 if (displayItem != null) {
504 slotIsAlive |= displayItem.mAlive;
508 DisplayItem displayItem = displayItems[(i - firstBufferedVisibleSlot) * GridLayer.MAX_ITEMS_PER_SLOT];
509 if (displayItem != null) {
510 drawDisplayItem(view, gl, displayItem, texturePlaceHolder, PASS_FRAME_PLACEHOLDER, null, 0);
521 DisplayItem[] itemsDrawn = mItemsDrawn;
528 DisplayItem itemDrawn = itemsDrawn[i];
573 DisplayItem displayItem = displayItems[(i - firstBufferedVisibleSlot) * GridLayer.MAX_ITEMS_PER_SLOT];
574 if (displayItem != null) {
582 drawDisplayItem(view, gl, displayItem, textureString, PASS_TEXT_LABEL, null, 0);
605 DisplayItem displayItem = displayItems[(i - firstBufferedVisibleSlot) * GridLayer.MAX_ITEMS_PER_SLOT];
606 if (displayItem != null) {
611 drawDisplayItem(view, gl, displayItem, textureString, PASS_TEXT_LABEL, null, 0);
622 DisplayItem displayItem = displayItems[(i - firstBufferedVisibleSlot) * GridLayer.MAX_ITEMS_PER_SLOT];
623 if (displayItem != null) {
624 if (displayItem.mAlive == true) {
635 drawDisplayItem(view, gl, displayItem, locationTexture, PASS_LOCATION_LABEL, null, 0);
647 DisplayItem displayItem = displayItems[(i - firstBufferedVisibleSlot) * GridLayer.MAX_ITEMS_PER_SLOT];
650 if (displayItem != null) {
651 if (displayItem.mAlive == true) {
659 drawDisplayItem(view, gl, displayItem, locationTexture, PASS_MEDIASET_SOURCE_LABEL,
678 DisplayItem displayItem = displayItems[(i - firstBufferedVisibleSlot) * GridLayer.MAX_ITEMS_PER_SLOT];
679 if (displayItem != null) {
680 Texture textureToUse = selectedBucketList.find(displayItem.mItemRef) ? textureSelectedOn
682 drawDisplayItem(view, gl, displayItem, textureToUse, PASS_SELECTION_LABEL, null, 0);
690 DisplayItem displayItem = displayItems[(i - firstBufferedVisibleSlot) * GridLayer.MAX_ITEMS_PER_SLOT];
691 if (displayItem != null && displayItem.mAlive) {
692 if (displayItem.mItemRef.getMediaType() == MediaItem.MEDIA_TYPE_VIDEO) {
693 drawDisplayItem(view, gl, displayItem, videoTexture, PASS_VIDEO_LABEL, null, 0);
702 private void drawDisplayItem(RenderView view, GL11 gl, DisplayItem displayItem, Texture texture, int pass,
705 Vector3f animatedPosition = displayItem.mAnimatedPosition;
709 int stackId = displayItem.getStackIndex();
710 final int maxDisplayedItemsPerSlot = (displayItem.mCurrentSlotIndex == mCurrentScaleSlot && mCurrentScaleSlot != Shared.INVALID) ? GridLayer.MAX_DISPLAYED_ITEMS_PER_FOCUSED_SLOT
717 if ((pass == PASS_TEXT_LABEL || pass == PASS_LOCATION_LABEL || pass == PASS_SELECTION_LABEL) && !displayItem.isAlive()) {
744 mDisplayList.setAlive(displayItem, true);
760 if (!displayItem.mAlive) {
761 mDisplayList.setAlive(displayItem, true);
766 float theta = (pass == PASS_FOCUS_CONTENT) ? displayItem.mAnimatedImageTheta + displayItem.mAnimatedTheta
767 : displayItem.mAnimatedTheta;
772 if (pass == PASS_THUMBNAIL_CONTENT && displayItem.mAnimatedImageTheta != 0.0f) {
773 orientation = displayItem.mAnimatedImageTheta;