Skip to content

Commit

Permalink
SCAN_t: move to its own header
Browse files Browse the repository at this point in the history
This is intended to reduce unnecessary transitive includes in
the H.264 and H.265 parsers, particularly "libavcodec/avcodec.h".
  • Loading branch information
ulmus-scott committed May 30, 2024
1 parent f593133 commit ef795bd
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 9 deletions.
1 change: 1 addition & 0 deletions mythtv/libs/libmythtv/libmythtv.pro
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ HEADERS += recordingfile.h
HEADERS += driveroption.h
HEADERS += mythhdrvideometadata.h
HEADERS += mythhdrtracker.h
HEADERS += scantype.h

SOURCES += bytereader.cpp
SOURCES += recordinginfo.cpp
Expand Down
4 changes: 2 additions & 2 deletions mythtv/libs/libmythtv/mpeg/H2645Parser.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@
#include "libmythbase/compat.h" // for uint on Darwin, MinGW
#include "libmythbase/mythconfig.h"
#include "libmythbase/mythlogging.h"
#include "libmythtv/recorders/recorderbase.h" // for ScanType

#include "libmythtv/scantype.h"

class BitReader;
class FrameRate;
enum class SCAN_t : uint8_t;

class H2645Parser {
public:
Expand Down
1 change: 1 addition & 0 deletions mythtv/libs/libmythtv/recorders/dtvrecorder.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#include "libmythtv/mpeg/H2645Parser.h"
#include "libmythtv/mpeg/streamlisteners.h"
#include "libmythtv/recorders/recorderbase.h"
#include "libmythtv/scantype.h"

class MPEGStreamData;
class TSPacket;
Expand Down
8 changes: 1 addition & 7 deletions mythtv/libs/libmythtv/recorders/recorderbase.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include "libmythtv/mythtvexp.h"
#include "libmythtv/recordingfile.h"
#include "libmythtv/recordingquality.h"
#include "libmythtv/scantype.h"

extern "C"
{
Expand Down Expand Up @@ -52,13 +53,6 @@ class FrameRate
uint m_den;
};

enum class SCAN_t : uint8_t {
UNKNOWN_SCAN,
INTERLACED,
PROGRESSIVE,
VARIABLE
};

/** \class RecorderBase
* \brief This is the abstract base class for supporting
* recorder hardware.
Expand Down
11 changes: 11 additions & 0 deletions mythtv/libs/libmythtv/scantype.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#ifndef SCAN_TYPE_H_
#define SCAN_TYPE_H_

enum class SCAN_t : uint8_t {
UNKNOWN_SCAN,
INTERLACED,
PROGRESSIVE,
VARIABLE
};

#endif // SCAN_TYPE_H_

0 comments on commit ef795bd

Please sign in to comment.