VideoTools
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
gvavcreader_none.cpp
Go to the documentation of this file.
1 //
2 // Copyright (C) 2017 Graeme Walker
3 //
4 // This program is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU General Public License as published by
6 // the Free Software Foundation, either version 3 of the License, or
7 // (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details.
13 //
14 // You should have received a copy of the GNU General Public License
15 // along with this program. If not, see <http://www.gnu.org/licenses/>.
16 // ===
17 //
18 // gvavcreader_none.cpp
19 //
20 
21 #include "gdef.h"
22 #include "gravc.h"
23 #include "gvavcreader.h"
24 #include <stdexcept>
25 
27 {
28 }
29 
31 {
32  throw std::runtime_error( "AvcReaderStream not implemented" ) ;
33 }
34 
36 {
37 }
38 
39 int Gv::AvcReaderStream::dx() const
40 {
41  return 0 ;
42 }
43 
44 int Gv::AvcReaderStream::dy() const
45 {
46  return 0 ;
47 }
48 
49 // ==
50 
51 void Gv::AvcReader::init( const unsigned char * , size_t )
52 {
53 }
54 
55 Gr::ImageType Gv::AvcReader::fill( std::vector<char> & , int , bool )
56 {
57  return Gr::ImageType() ;
58 }
59 
60 bool Gv::AvcReader::keyframe() const
61 {
62  return false ;
63 }
64 
66 {
67  return false ;
68 }
69 /// \file gvavcreader_none.cpp
static bool available()
Returns true if the decoder library is built in.
Contains AVC configuration parameters, initialised from an "avcC" file segment or from an SDP "fmtp" ...
Definition: gravc.h:93
An encapsulation of image type, including width, height and number of channels, with support for a st...
Definition: grimagetype.h:43
int dx() const
Returns the image width as indicated by the first SPS structure, or zero if default constructed...
~AvcReaderStream()
Destructor.
int dy() const
Returns the image height as indicated by the first SPS structure, or zero if default constructed...
AvcReaderStream()
Default constructor.
bool keyframe() const
Returns true if a key frame.
Gr::ImageType fill(std::vector< char > &, int scale=1, bool monochrome=false)
Fills the supplied buffer with RGB or greyscale image data and returns the raw image type...