[UI] Various improvments in audio view
This commit is contained in:
@@ -114,6 +114,19 @@ InputFormatContext::getMetadata(void)
|
||||
|
||||
}
|
||||
|
||||
std::size_t
|
||||
InputFormatContext::getNbPictures(void) const
|
||||
{
|
||||
std::size_t res = 0;
|
||||
|
||||
for (std::size_t i = 0; i < native()->nb_streams; ++i)
|
||||
{
|
||||
if (native()->streams[i]->disposition & AV_DISPOSITION_ATTACHED_PIC)
|
||||
++res;
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
void
|
||||
InputFormatContext::getPictures(std::vector< std::vector<unsigned char> >& pictures) const
|
||||
{
|
||||
|
||||
@@ -46,6 +46,7 @@ class InputFormatContext : public FormatContext
|
||||
|
||||
|
||||
// Get attached pictures
|
||||
std::size_t getNbPictures(void) const;
|
||||
void getPictures(std::vector< std::vector<unsigned char> >& pictures) const;
|
||||
|
||||
// Get the streams
|
||||
|
||||
Reference in New Issue
Block a user