Questions tagged [resolution]

Questions about image resolution.

Image resolution is an umbrella term that describes the detail an image holds. Higher resolution means more image detail.

Reference

Wikipedia

2378 questions
7
votes
1 answer

FFMPEG reports different (wrong) video resolution compared to how it actually plays

Quick question, i have a movie, which was cut and rendered with Sony Vegas from its original format to a .wmv file. Here comes the tricky part, movie when played, either with VLC or WMP, has a resolution of 656x480 ... BUT when i run a ffmpeg -i on…
Emiliano
  • 71
  • 1
  • 3
7
votes
3 answers

Is there any default strategy to prepare application for a resolution change?

How to prepare a Silverlight or WPF application to change from a big resolution to a small resolution? I guess using dockpanel strategy only works for changing from a small to a big resolution. So, is there any default strategy? Thanks. Problem: I…
alansiqueira27
  • 8,129
  • 15
  • 67
  • 111
7
votes
2 answers

Android: Convert points to pixels

I have been using the pt unit in XML files. Now I need to set the width of an element at runtime. How can I set the width by points so that it is the same unit I have been using everywhere else. I assume I will need to multiply by resolution and…
700 Software
  • 85,281
  • 83
  • 234
  • 341
7
votes
4 answers

How to calculate remaining photos counts in custom camera in android

I'm trying to calculate the remaining number of photos that can be taken using my custom camera and show that count to the user. I tried with the following code: private void numberOfPhotosAvailable() { long photosAvailable = 0; …
Vivek Mishra
  • 5,669
  • 9
  • 46
  • 84
7
votes
3 answers

Python OpenCV video resolution

I try to change video resolution (with mp4!) (to 800x600) in this way : but its doesn't work, when I use cap.get(3) and (4), its return every time defualt 1280x720! import cv2 cap = cv2.VideoCapture('file') while(cap.isOpened()): …
TheRutubeify
  • 646
  • 1
  • 7
  • 24
7
votes
2 answers

Relations between dip, px and dpi

If, in a layout xml file, I set the size to be, for example 12dip. Will that always be 12px in mdpi and so 18px in hdpi? So is dip always true for mdpi and will scale accordingly for other densities?
Espen
  • 3,607
  • 11
  • 48
  • 75
7
votes
2 answers

css border: 1px appear as 0.667px or 1px depending on the computer / display resolution (?)

This is weird. I am testing the same web application (Chrome embedded in Electron) and I have two exact copies in 2 computers, both windows 10, one with a 1080p display and the other with a 4K display (this should be irrelevant, I guess it is EDIT:…
GWorking
  • 4,011
  • 10
  • 49
  • 90
7
votes
6 answers

can I load a javascript file under a context other than 'window'?

I try to load some external .js files, and have some irresolvable namespace conflicts. I had the idea of loading some of the files in their own context somehow, replacing the "this" from pointing at the window object to some custom…
Amir Arad
  • 6,724
  • 9
  • 42
  • 49
7
votes
1 answer

How do breakpoints work on modern high resolution devices?

Modern phones and tablets have very high resolutions. My Galaxy S7 Edge, for example, has a resolution of 1440 x 2560 pixels. Common breakpoints for mobile devices seems to be around 768 pixels, such as in bootstrap. Example from…
SnakeDoc
  • 13,611
  • 17
  • 65
  • 97
7
votes
1 answer

iPhone 4 resolution difficulty - @2x naming technique not working for button image

I have a button with an image set through interface builder. The original image is SearchImage.png and the high rez version is SearchImage@2x.png. I'm absolutely sure that no typos were made, and the higher resolution image is indeed exactly twice…
WoodenKitty
  • 6,521
  • 8
  • 53
  • 73
7
votes
6 answers

What is the iPhone screen resolution?

I know this has been asked but I'm still confounded. I'm trying to build a dead-simple page for the iPhone: logo at the top, phone number, address, and a BG that takes up the entire screen (no-repeat). When I ran a script that printed the…
AJB
  • 7,389
  • 14
  • 57
  • 88
7
votes
5 answers

How to compute locations of mesh points when resolution is increased?

Suppose we have some mesh (see the illustrating picture from CorelDraw, which uses the same technique in "Mesh fill" instrument). (source: sonic.net) Obviously this kind of mesh is represented by a set of points and lines between them are actually…
Yippie-Ki-Yay
  • 22,026
  • 26
  • 90
  • 148
7
votes
2 answers

H264 getting frame height and width from sequence parameter set (SPS) NAL unit

I've been trying to find out how to calculate width a height from SPS nal unit. I have H264 video which has these parameters h264 (High), yuvj420p(pc), 1280x720 [SAR 1:1 DAR 16:9], 20 fps, 20 tbr, 1200k tbn, 40 tbc I've been searching for a formula…
Teamol
  • 733
  • 1
  • 14
  • 42
7
votes
1 answer

Android: ImageView scales up source image

I can't seem to get my ImageView to display its source image in its original size. The ImageView looks like this:
Steven Meliopoulos
  • 4,450
  • 4
  • 34
  • 36
7
votes
3 answers

Android view 3d rotate transformation on big resolution screens

I'm implementing 3d card flip animation for android (api > 14) and have an issue with big screen tablets (> 2048 dpi). During problem investigation i've come to the following basic block: Tried to just transform a view (simple ImageView) using…
Henrik
  • 73
  • 1
  • 5