Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#1831 closed enhancement (fixed)

Find best match of video format between requested and supported format

Reported by: riza Owned by: nanang
Priority: normal Milestone: release-2.4
Component: pjmedia Version: trunk
Keywords: Cc:
Backport to 1.x milestone: Backported: no

Description

Video port needs to find the best match between requested and supported format.
We use format id matching with the nearest width and aspect ratio to find match between the requested format and the supported format.

For format id matching, the priority is:

  1. Find exact match
  2. Find format with the same color space
  3. Use the first supported format.

For ratio matching:
Find the lowest difference of the aspect ratio between the requested and
the supported format.

Note: ratio matching can be skipped by specifying

#define PJMEDIA_VID_PORT_MATCH_WIDTH_ARRAY_SIZE 1 

Change History (5)

comment:1 Changed 9 years ago by riza

In 5026:

Re #1831: Implement algorithm in video port to find the best video format between the requested and supported format.

comment:2 Changed 9 years ago by riza

In 5031:

Re #1831: Fixed matching algorithm when the supported format only have one size.

comment:3 Changed 9 years ago by riza

In 5033:

Re #1831: Handle when the information of the supported format is not available.

comment:4 Changed 9 years ago by riza

  • Resolution set to fixed
  • Status changed from new to closed

comment:5 Changed 9 years ago by nanang

In 5057:

Re #1831: Fixed bug of requested format overwritten by supported format, caused no converter is created when needed, assertion in pjmedia-test, etc. Also rearranged some related logs.

Note: See TracTickets for help on using tickets.