Ignore aspect ratio of for higher video resolutions
This commit is contained in:
parent
392757bee8
commit
ad87a5389e
@ -55,6 +55,7 @@ private:
|
|||||||
bool initClock();
|
bool initClock();
|
||||||
bool setupTunnels();
|
bool setupTunnels();
|
||||||
bool enablePortBuffers();
|
bool enablePortBuffers();
|
||||||
|
bool setFullscreen();
|
||||||
|
|
||||||
mutable std::mutex mutex_;
|
mutable std::mutex mutex_;
|
||||||
bool isActive_;
|
bool isActive_;
|
||||||
|
@ -104,7 +104,22 @@ bool OMXVideoOutput::init()
|
|||||||
|
|
||||||
OPENAUTO_LOG(info) << "[OMXVideoOutput] init, state: " << isActive_;
|
OPENAUTO_LOG(info) << "[OMXVideoOutput] init, state: " << isActive_;
|
||||||
ilclient_change_component_state(components_[VideoComponent::DECODER], OMX_StateExecuting);
|
ilclient_change_component_state(components_[VideoComponent::DECODER], OMX_StateExecuting);
|
||||||
return true;
|
|
||||||
|
return this->setFullscreen();
|
||||||
|
}
|
||||||
|
|
||||||
|
bool OMXVideoOutput::setFullscreen()
|
||||||
|
{
|
||||||
|
OMX_CONFIG_DISPLAYREGIONTYPE displayRegion;
|
||||||
|
displayRegion.nSize = sizeof(OMX_CONFIG_DISPLAYREGIONTYPE);
|
||||||
|
displayRegion.nVersion.nVersion = OMX_VERSION;
|
||||||
|
displayRegion.nPortIndex = 90;
|
||||||
|
|
||||||
|
displayRegion.set = static_cast<OMX_DISPLAYSETTYPE >(OMX_DISPLAY_SET_FULLSCREEN | OMX_DISPLAY_SET_NOASPECT);
|
||||||
|
displayRegion.fullscreen = OMX_TRUE;
|
||||||
|
displayRegion.noaspect = OMX_TRUE;
|
||||||
|
|
||||||
|
return OMX_SetConfig(ilclient_get_handle(components_[VideoComponent::RENDERER]), OMX_IndexConfigDisplayRegion, &displayRegion) == OMX_ErrorNone;
|
||||||
}
|
}
|
||||||
|
|
||||||
void OMXVideoOutput::write(uint64_t timestamp, const aasdk::common::DataConstBuffer& buffer)
|
void OMXVideoOutput::write(uint64_t timestamp, const aasdk::common::DataConstBuffer& buffer)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user