History

decklink: Header cleanup

This commit cleans up the decklink files' header usage so that they pass checkheaders.

Timothy Gu committed 10 years ago

Commit 61fb70c1 parent bd4d1927 files · +13 −13Browse files

Unified · Split

7 files
  1. libavdevice/decklink_common.cpp +0 −4
  2. libavdevice/decklink_common.h +7 −1
  3. libavdevice/decklink_common_c.h +2 −0
  4. libavdevice/decklink_dec.cpp +0 −4
  5. libavdevice/decklink_dec.h +2 −0
  6. libavdevice/decklink_enc.cpp +0 −4
  7. libavdevice/decklink_enc.h +2 −0
libavdevice/decklink_common.cpp+0−4
@@ -26,11 +26,7 @@ · 25 unmodified lines
2626 #include <DeckLinkAPIDispatch.cpp>
2727 #endif
2828
29−#include <pthread.h>
30−#include <semaphore.h>
31−
3229 extern "C" {
33−#include "libavformat/avformat.h"
3430 #include "libavformat/internal.h"
3531 #include "libavutil/imgutils.h"
3632 }
libavdevice/decklink_common.h+7−1
@@ -19,9 +19,15 @@ · 18 unmodified lines
1919 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
2020 */
2121
22−#include <DeckLinkAPIVersion.h>
22+#include <pthread.h>
23+#include <semaphore.h>
24+#include <DeckLinkAPI.h>
25+
26+extern "C" {
27+#include "libavformat/avformat.h"
2328
2429 #include "decklink_common_c.h"
30+}
2531
2632 class decklink_output_callback;
2733 class decklink_input_callback;
libavdevice/decklink_common_c.h+2−0
@@ -19,6 +19,8 @@ · 18 unmodified lines
1919 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
2020 */
2121
22+#include "libavutil/log.h"
23+
2224 struct decklink_cctx {
2325 const AVClass *cclass;
2426
libavdevice/decklink_dec.cpp+0−4
@@ -21,11 +21,7 @@ · 20 unmodified lines
2121
2222 #include <DeckLinkAPI.h>
2323
24−#include <pthread.h>
25−#include <semaphore.h>
26−
2724 extern "C" {
28−#include "libavformat/avformat.h"
2925 #include "libavformat/internal.h"
3026 #include "libavutil/imgutils.h"
3127 }
libavdevice/decklink_dec.h+2−0
@@ -23,6 +23,8 @@ · 22 unmodified lines
2323 extern "C" {
2424 #endif
2525
26+#include "libavformat/avformat.h"
27+
2628 int ff_decklink_read_header(AVFormatContext *avctx);
2729 int ff_decklink_read_packet(AVFormatContext *avctx, AVPacket *pkt);
2830 int ff_decklink_read_close(AVFormatContext *avctx);
libavdevice/decklink_enc.cpp+0−4
@@ -21,11 +21,7 @@ · 20 unmodified lines
2121
2222 #include <DeckLinkAPI.h>
2323
24−#include <pthread.h>
25−#include <semaphore.h>
26−
2724 extern "C" {
28−#include "libavformat/avformat.h"
2925 #include "libavformat/internal.h"
3026 #include "libavutil/imgutils.h"
3127 }
libavdevice/decklink_enc.h+2−0
@@ -23,6 +23,8 @@ · 22 unmodified lines
2323 extern "C" {
2424 #endif
2525
26+#include "libavformat/avformat.h"
27+
2628 int ff_decklink_write_header(AVFormatContext *avctx);
2729 int ff_decklink_write_packet(AVFormatContext *avctx, AVPacket *pkt);
2830 int ff_decklink_write_trailer(AVFormatContext *avctx);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t