mirror of https://github.com/f1xpl/openauto.git
Ignore aspect ratio of for higher video resolutions
parent
392757bee8
commit
ad87a5389e
|
@ -55,6 +55,7 @@ private:
|
|||
bool initClock();
|
||||
bool setupTunnels();
|
||||
bool enablePortBuffers();
|
||||
bool setFullscreen();
|
||||
|
||||
mutable std::mutex mutex_;
|
||||
bool isActive_;
|
||||
|
|
|
@ -104,7 +104,22 @@ bool OMXVideoOutput::init()
|
|||
|
||||
OPENAUTO_LOG(info) << "[OMXVideoOutput] init, state: " << isActive_;
|
||||
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)
|
||||
|
|
Loading…
Reference in New Issue