| 1 | /* |
| 2 | Copyright (C) 2005 by Jasem Mutlaq <[email protected]> |
| 3 | Copyright (C) 2014 by geehalel <[email protected]> |
| 4 | |
| 5 | V4L2 Decode |
| 6 | |
| 7 | This library is free software; you can redistribute it and/or |
| 8 | modify it under the terms of the GNU Lesser General Public |
| 9 | License as published by the Free Software Foundation; either |
| 10 | version 2.1 of the License, or (at your option) any later version. |
| 11 | |
| 12 | This library is distributed in the hope that it will be useful, |
| 13 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 | Lesser General Public License for more details. |
| 16 | |
| 17 | You should have received a copy of the GNU Lesser General Public |
| 18 | License along with this library; if not, write to the Free Software |
| 19 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | |
| 21 | */ |
| 22 | |
| 23 | #pragma once |
| 24 | |
| 25 | #include "indidevapi.h"cxx . . $ `<file>/libs/indicore/indidevapi.h`/ |
| 26 | |
| 27 | #include <vector> |
| 28 | |
| 29 | #include <stdio.h> |
| 30 | #include <cstdlib> |
| 31 | |
| 32 | #include <linux/videodev2.h> |
| 33 | |
| 34 | class V4L2_Decodercxx . . $ V4L2_Decoder# |
| 35 | { |
| 36 | public: |
| 37 | V4L2_Decodercxx . . $ V4L2_Decoder#V4L2_Decoder(49f6e7a06ebc5aa8).(); |
| 38 | virtual ~cxx . . $ V4L2_Decoder#`~V4L2_Decoder`(49f6e7a06ebc5aa8).V4L2_Decodercxx . . $ V4L2_Decoder#(); |
| 39 | |
| 40 | virtual void initcxx . . $ V4L2_Decoder#init(49f6e7a06ebc5aa8).() = 0; |
| 41 | virtual const char *getNamecxx . . $ V4L2_Decoder#getName(33a1f659e94feb42).(); |
| 42 | virtual bool setcropcxx . . $ V4L2_Decoder#setcrop(9fc7a8b10583c680).(struct v4l2_cropcxx . . $ v4l2_crop# c) = 0; |
| 43 | virtual void resetcropcxx . . $ V4L2_Decoder#resetcrop(49f6e7a06ebc5aa8).() = 0; |
| 44 | virtual void usesoftcropcxx . . $ V4L2_Decoder#usesoftcrop(b45ddcbc8423892c).(bool c) = 0; |
| 45 | virtual void setformatcxx . . $ V4L2_Decoder#setformat(8b1c8576e5c91482).(struct v4l2_formatcxx . . $ v4l2_format# f, bool use_ext_pix_format) = 0; |
| 46 | virtual bool issupportedformatcxx . . $ V4L2_Decoder#issupportedformat(dfa6e707f7696010).(unsigned int format) = 0; |
| 47 | virtual const stdcxx . . $ std/::vectorcxx . . $ std/vector#<unsigned int> &getsupportedformatscxx . . $ V4L2_Decoder#getsupportedformats(ea72b9695e3f67c4).() = 0; |
| 48 | virtual void decodecxx . . $ V4L2_Decoder#decode(43d286c41a1b59f5).(unsigned char *frame, struct v4l2_buffercxx . . $ v4l2_buffer# *buf, bool native) = 0; |
| 49 | virtual unsigned char *getYcxx . . $ V4L2_Decoder#getY(37d8967d10cb1e7b).() = 0; |
| 50 | virtual unsigned char *getUcxx . . $ V4L2_Decoder#getU(37d8967d10cb1e7b).() = 0; |
| 51 | virtual unsigned char *getVcxx . . $ V4L2_Decoder#getV(37d8967d10cb1e7b).() = 0; |
| 52 | virtual unsigned char *getMJPEGBuffercxx . . $ V4L2_Decoder#getMJPEGBuffer(6809728d7d2d5ca5).(int &size) = 0; |
| 53 | virtual unsigned char *getRGBBuffercxx . . $ V4L2_Decoder#getRGBBuffer(37d8967d10cb1e7b).() = 0; |
| 54 | virtual float *getLinearYcxx . . $ V4L2_Decoder#getLinearY(a3aba87f01dec7c2).() = 0; |
| 55 | virtual int getBppcxx . . $ V4L2_Decoder#getBpp(b126dc7c1de90089).() = 0; |
| 56 | virtual void setQuantizationcxx . . $ V4L2_Decoder#setQuantization(b45ddcbc8423892c).(bool) = 0; |
| 57 | virtual void setLinearizationcxx . . $ V4L2_Decoder#setLinearization(b45ddcbc8423892c).(bool) = 0; |
| 58 | |
| 59 | protected: |
| 60 | const char *namecxx . . $ V4L2_Decoder#name.; |
| 61 | }; |
| 62 | |
| 63 | class V4L2_Decodecxx . . $ V4L2_Decode# |
| 64 | { |
| 65 | public: |
| 66 | V4L2_Decodecxx . . $ V4L2_Decode#V4L2_Decode(49f6e7a06ebc5aa8).(); |
| 67 | ~cxx . . $ V4L2_Decode#`~V4L2_Decode`(49f6e7a06ebc5aa8).V4L2_Decodecxx . . $ V4L2_Decode#(); |
| 68 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<V4L2_Decodercxx . . $ V4L2_Decoder# *> getDecoderListcxx . . $ V4L2_Decode#getDecoderList(bf7c17e20d76fc0c).(); |
| 69 | V4L2_Decodercxx . . $ V4L2_Decoder# *getDecodercxx . . $ V4L2_Decode#getDecoder(eab13108e2fa4c43).(); |
| 70 | V4L2_Decodercxx . . $ V4L2_Decoder# *getDefaultDecodercxx . . $ V4L2_Decode#getDefaultDecoder(eab13108e2fa4c43).(); |
| 71 | void setDecodercxx . . $ V4L2_Decode#setDecoder(d490e749653830dc).(V4L2_Decodercxx . . $ V4L2_Decoder# *decoder); |
| 72 | |
| 73 | protected: |
| 74 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<V4L2_Decodercxx . . $ V4L2_Decoder# *> decoder_listcxx . . $ V4L2_Decode#decoder_list.; |
| 75 | V4L2_Decodercxx . . $ V4L2_Decoder# *current_decodercxx . . $ V4L2_Decode#current_decoder.; |
| 76 | V4L2_Decodercxx . . $ V4L2_Decoder# *default_decodercxx . . $ V4L2_Decode#default_decoder.; |
| 77 | }; |