Skip to content

add histogram output support for decode#207

Open
XinfengZhang wants to merge 1 commit intointel:masterfrom
XinfengZhang:histogram
Open

add histogram output support for decode#207
XinfengZhang wants to merge 1 commit intointel:masterfrom
XinfengZhang:histogram

Conversation

@XinfengZhang
Copy link
Copy Markdown
Contributor

Signed-off-by: XinfengZhang carl.zhang@intel.com

Comment thread va/va.h Outdated
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for R, G, B, do we need to give distinct values for Y, U, V?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is for the caps reporting, we can t report 0x7 only, customer dont know whether we support RGB or YUV from value 0x7

@XinfengZhang XinfengZhang force-pushed the histogram branch 3 times, most recently from 31a3c71 to 9cdacff Compare May 4, 2018 02:54
Comment thread va/va.h Outdated
Comment thread va/va.h Outdated
* This attribute conveys the number of bins per channel if the
* driver supports histogram reporting.
*/
VAConfigAttribHistogramBinCount = 39,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How does a user know which channel is queried if the driver supports multiple channels? Do all channels have the same number of bins?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes

Comment thread va/va.h Outdated
Comment thread va/va.h
Comment thread va/va.h Outdated
Comment thread va/va.h Outdated
uint32_t reserved : 8;
} bits;
uint32_t value;
} VAConfigAttribHistogramBin;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be better to keep the same name style, _VAConfigAttribHistogram and VAConfigAttribHistogram, or _VAConfigAttribHistogramBin and VAConfigAttribHistogramBin

Comment thread va/va.h
/** \brief bin count for given channel. */
uint32_t bin_count : 16;
/** \brief driver support channel */
uint32_t channel : 8;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does it support multiple channels?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, for the caps report, will return several VAConfigAttribHistograms , also application can send multiple VAEncMiscParameterHistorgram

@XinfengZhang XinfengZhang force-pushed the histogram branch 2 times, most recently from 86ab858 to bc8cc31 Compare December 20, 2018 03:51
Signed-off-by: XinfengZhang <carl.zhang@intel.com>
@XinfengZhang
Copy link
Copy Markdown
Contributor Author

@xhaihao do you still have other concern? if no , I will merge it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants