From 91ce4613671ef8f9351bbd0f600b0b790b81d2c6 Mon Sep 17 00:00:00 2001
From: Timothy Gu <timothygu99@gmail.com>
Date: Tue, 1 Dec 2015 20:58:51 -0800
Subject: [PATCH] decklink: Header cleanup
This commit cleans up the decklink files' header usage so that they pass
checkheaders.
---
libavdevice/decklink_common.cpp | 5 -----
libavdevice/decklink_common.h | 7 +++++++
libavdevice/decklink_common_c.h | 2 ++
libavdevice/decklink_dec.cpp | 6 ------
libavdevice/decklink_dec.h | 2 ++
libavdevice/decklink_enc.cpp | 6 ------
libavdevice/decklink_enc.h | 2 ++
7 files changed, 13 insertions(+), 17 deletions(-)
diff --git a/libavdevice/decklink_common.cpp b/libavdevice/decklink_common.cpp
index ac7964c..7d851cd 100644
|
a
|
b
|
|
| 19 | 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | 20 | */ |
| 21 | 21 | |
| 22 | | #include <DeckLinkAPI.h> |
| 23 | 22 | #ifdef _WIN32 |
| 24 | 23 | #include <DeckLinkAPI_i.c> |
| 25 | 24 | #else |
| 26 | 25 | #include <DeckLinkAPIDispatch.cpp> |
| 27 | 26 | #endif |
| 28 | 27 | |
| 29 | | #include <pthread.h> |
| 30 | | #include <semaphore.h> |
| 31 | | |
| 32 | 28 | extern "C" { |
| 33 | | #include "libavformat/avformat.h" |
| 34 | 29 | #include "libavformat/internal.h" |
| 35 | 30 | #include "libavutil/imgutils.h" |
| 36 | 31 | } |
diff --git a/libavdevice/decklink_common.h b/libavdevice/decklink_common.h
index 3bc30f0..c3ff12b 100644
|
a
|
b
|
|
| 19 | 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | 20 | */ |
| 21 | 21 | |
| | 22 | #include <pthread.h> |
| | 23 | #include <semaphore.h> |
| | 24 | #include <DeckLinkAPI.h> |
| 22 | 25 | #include <DeckLinkAPIVersion.h> |
| 23 | 26 | |
| | 27 | extern "C" { |
| | 28 | #include "libavformat/avformat.h" |
| | 29 | |
| 24 | 30 | #include "decklink_common_c.h" |
| | 31 | } |
| 25 | 32 | |
| 26 | 33 | class decklink_output_callback; |
| 27 | 34 | class decklink_input_callback; |
diff --git a/libavdevice/decklink_common_c.h b/libavdevice/decklink_common_c.h
index fb2b788..3644fb4 100644
|
a
|
b
|
|
| 19 | 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | 20 | */ |
| 21 | 21 | |
| | 22 | #include "libavutil/log.h" |
| | 23 | |
| 22 | 24 | struct decklink_cctx { |
| 23 | 25 | const AVClass *cclass; |
| 24 | 26 | |
diff --git a/libavdevice/decklink_dec.cpp b/libavdevice/decklink_dec.cpp
index 6c5bc5d..0214b90 100644
|
a
|
b
|
|
| 19 | 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | 20 | */ |
| 21 | 21 | |
| 22 | | #include <DeckLinkAPI.h> |
| 23 | | |
| 24 | | #include <pthread.h> |
| 25 | | #include <semaphore.h> |
| 26 | | |
| 27 | 22 | extern "C" { |
| 28 | | #include "libavformat/avformat.h" |
| 29 | 23 | #include "libavformat/internal.h" |
| 30 | 24 | #include "libavutil/imgutils.h" |
| 31 | 25 | } |
diff --git a/libavdevice/decklink_dec.h b/libavdevice/decklink_dec.h
index 6bd9226..c499bc9 100644
|
a
|
b
|
|
| 23 | 23 | extern "C" { |
| 24 | 24 | #endif |
| 25 | 25 | |
| | 26 | #include "libavformat/avformat.h" |
| | 27 | |
| 26 | 28 | int ff_decklink_read_header(AVFormatContext *avctx); |
| 27 | 29 | int ff_decklink_read_packet(AVFormatContext *avctx, AVPacket *pkt); |
| 28 | 30 | int ff_decklink_read_close(AVFormatContext *avctx); |
diff --git a/libavdevice/decklink_enc.cpp b/libavdevice/decklink_enc.cpp
index 6c5450f..7a54f1e 100644
|
a
|
b
|
|
| 19 | 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | 20 | */ |
| 21 | 21 | |
| 22 | | #include <DeckLinkAPI.h> |
| 23 | | |
| 24 | | #include <pthread.h> |
| 25 | | #include <semaphore.h> |
| 26 | | |
| 27 | 22 | extern "C" { |
| 28 | | #include "libavformat/avformat.h" |
| 29 | 23 | #include "libavformat/internal.h" |
| 30 | 24 | #include "libavutil/imgutils.h" |
| 31 | 25 | } |
diff --git a/libavdevice/decklink_enc.h b/libavdevice/decklink_enc.h
index 6086947..23c59a2 100644
|
a
|
b
|
|
| 23 | 23 | extern "C" { |
| 24 | 24 | #endif |
| 25 | 25 | |
| | 26 | #include "libavformat/avformat.h" |
| | 27 | |
| 26 | 28 | int ff_decklink_write_header(AVFormatContext *avctx); |
| 27 | 29 | int ff_decklink_write_packet(AVFormatContext *avctx, AVPacket *pkt); |
| 28 | 30 | int ff_decklink_write_trailer(AVFormatContext *avctx); |