Is there any way to adjust height and width of a Video in file which is similar to SoftAVC.Cpp..
In my code the width and height is fixed(i.e 832*480) for particular video.But I want to play different video's What should I do?, so that I can play different Video's.
My Code
IntdecHEVC::IntdecHEVC(
const char *name,
const OMX_CALLBACKTYPE *callbacks,
OMX_PTR appData,
OMX_COMPONENTTYPE **component)
: SoftVideoDecoderOMXComponent(name, componentName, codingType,
kProfileLevels, ARRAY_SIZE(kProfileLevels),
832 /* width */, 480 /* height */, callbacks,
appData, component),
mFlushOutBuffer(NULL),
mOmxColorFormat(OMX_COLOR_FormatYUV420Planar),
mChangingResolution(false),
mSignalledError(false),
mIsInFlush(false),
mReceivedEOS(false),
mStride(mWidth) {
const size_t kMinCompressionRatio = 4 /* compressionRatio (for Level 4+) */;
const size_t kMaxOutputBufferSize = 2048 * 2048 * 3 / 2;
m_lOriginalWidthY = 832;
m_lHeightY = 480;
m_lOriginalWidthUV = m_lOriginalWidthY/2;
m_lHeightUV = m_lHeightY/2;
// INPUT_BUF_SIZE is given by HEVC codec as minimum input size changed by pooja 11-4
initPorts(
kNumInputBuffers,INPUT_BUF_SIZE, kNumOutputBuffers, CODEC_MIME_TYPE);
}