Minor changes on functions names and variables
This commit is contained in:
1 parent
50fd611291
commit
b9aecade42
7 files changed
+57
-34
No files matched your search
@@ -29,16 +29,6 @@
|
||||
namespace plaYUVer
|
||||
{
|
||||
|
||||
QStringList PlaYUVerFrame::supportedPixelFormatList()
|
||||
{
|
||||
QStringList formats;
|
||||
for( Int i = 0; i < NUMBER_FORMATS; i++ )
|
||||
{
|
||||
formats.append(gInputStreamFormatsNames[i].data());
|
||||
}
|
||||
return formats;
|
||||
}
|
||||
|
||||
PlaYUVerFrame::PlaYUVerFrame( UInt width, UInt height, Int pel_format )
|
||||
{
|
||||
m_pppcInputPel[0] = NULL;
|
||||
|
||||
@@ -38,13 +38,46 @@ class QImage;
|
||||
namespace plaYUVer
|
||||
{
|
||||
|
||||
|
||||
static const QString gInputStreamFormatsNames[] =
|
||||
{
|
||||
"YUV420p",
|
||||
"YUV444p",
|
||||
"YUV422p",
|
||||
"YUV411p",
|
||||
"YUV410p",
|
||||
"GRAY",
|
||||
"RGB8",
|
||||
};
|
||||
|
||||
class PlaYUVerFrame
|
||||
{
|
||||
public:
|
||||
PlaYUVerFrame( UInt width, UInt height, Int pel_format );
|
||||
~PlaYUVerFrame();
|
||||
|
||||
static QStringList supportedPixelFormatList();
|
||||
enum PixelFormats
|
||||
{
|
||||
NO_FMT = -1,
|
||||
YUV420p = 0,
|
||||
YUV444p,
|
||||
YUV422p,
|
||||
YUV411p,
|
||||
YUV410p,
|
||||
GRAY,
|
||||
RGB8,
|
||||
NUMBER_FORMATS
|
||||
};
|
||||
|
||||
static QStringList supportedPixelFormatList()
|
||||
{
|
||||
QStringList formats;
|
||||
for( Int i = 0; i < NUMBER_FORMATS; i++ )
|
||||
{
|
||||
formats.append(gInputStreamFormatsNames[i]);
|
||||
}
|
||||
return formats;
|
||||
}
|
||||
|
||||
Void FrametoRGB8();
|
||||
|
||||
|
||||
@@ -153,7 +153,7 @@ Bool LibAvContextHandle::initAvFormat( char* filename, UInt& width, UInt& height
|
||||
|
||||
const char *codec_name = avcodec_get_name(video_dec_ctx->codec_id);
|
||||
|
||||
sprintf(m_acStreamInformationString, "%s ", codec_name);
|
||||
sprintf(m_acCodecName, "%s ", codec_name);
|
||||
|
||||
Double fr = 30;
|
||||
if( video_stream->avg_frame_rate.den && video_stream->avg_frame_rate.num )
|
||||
|
||||
@@ -65,9 +65,9 @@ public:
|
||||
{
|
||||
return m_bHasStream;
|
||||
}
|
||||
Char* getStreamInformation()
|
||||
Char* getCodecName()
|
||||
{
|
||||
return m_acStreamInformationString;
|
||||
return m_acCodecName;
|
||||
}
|
||||
|
||||
uint8_t *video_dst_data[4];
|
||||
@@ -84,7 +84,7 @@ private:
|
||||
|
||||
Bool m_bHasStream;
|
||||
|
||||
Char m_acStreamInformationString[20];
|
||||
Char m_acCodecName[20];
|
||||
};
|
||||
|
||||
} // NAMESPACE
|
||||
|
||||
Reference in new issue
Block a user