Skip to content

Commit

Permalink
Moved #cgo directives to a unique file
Browse files Browse the repository at this point in the history
  • Loading branch information
asticode committed Sep 5, 2024
1 parent e8542c9 commit e7c92c0
Show file tree
Hide file tree
Showing 73 changed files with 4 additions and 72 deletions.
4 changes: 4 additions & 0 deletions astiav.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package astiav

//#cgo pkg-config: libavcodec libavdevice libavfilter libavformat libswscale libavutil
import "C"
1 change: 0 additions & 1 deletion bit_stream_filter.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package astiav

//#cgo pkg-config: libavcodec
//#include <libavcodec/bsf.h>
//#include <stdlib.h>
import "C"
Expand Down
1 change: 0 additions & 1 deletion bit_stream_filter_context.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package astiav

//#cgo pkg-config: libavcodec
//#include <libavcodec/bsf.h>
import "C"
import (
Expand Down
1 change: 0 additions & 1 deletion buffersink_flag.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package astiav

//#cgo pkg-config: libavfilter
//#include <libavfilter/buffersink.h>
import "C"

Expand Down
1 change: 0 additions & 1 deletion buffersrc_flag.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package astiav

//#cgo pkg-config: libavfilter
//#include <libavfilter/buffersrc.h>
import "C"

Expand Down
1 change: 0 additions & 1 deletion bytes.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package astiav

//#cgo pkg-config: libavcodec
//#include <libavcodec/avcodec.h>
//#include <stdlib.h>
//#include <stdint.h>
Expand Down
1 change: 0 additions & 1 deletion channel_layout.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package astiav

//#cgo pkg-config: libavutil
//#include <libavutil/channel_layout.h>
/*
Expand Down
1 change: 0 additions & 1 deletion chroma_location.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package astiav

//#cgo pkg-config: libavutil
//#include <libavutil/pixfmt.h>
import "C"

Expand Down
1 change: 0 additions & 1 deletion class.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package astiav

//#cgo pkg-config: libavutil
//#include <libavutil/log.h>
//#include <stdint.h>
/*
Expand Down
1 change: 0 additions & 1 deletion class_category.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package astiav

//#cgo pkg-config: libavutil
//#include <libavutil/log.h>
import "C"

Expand Down
1 change: 0 additions & 1 deletion codec.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package astiav

//#cgo pkg-config: libavcodec libavutil
//#include <libavcodec/avcodec.h>
//#include <libavutil/channel_layout.h>
import "C"
Expand Down
1 change: 0 additions & 1 deletion codec_context.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package astiav

//#cgo pkg-config: libavcodec libavutil
//#include <libavcodec/avcodec.h>
//#include <libavutil/frame.h>
/*
Expand Down
1 change: 0 additions & 1 deletion codec_context_flag.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package astiav

//#cgo pkg-config: libavcodec
//#include <libavcodec/avcodec.h>
import "C"

Expand Down
1 change: 0 additions & 1 deletion codec_hardware_config.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package astiav

//#cgo pkg-config: libavcodec
//#include <libavcodec/avcodec.h>
import "C"

Expand Down
1 change: 0 additions & 1 deletion codec_hardware_config_method_flag.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package astiav

//#cgo pkg-config: libavcodec
//#include <libavcodec/avcodec.h>
import "C"

Expand Down
1 change: 0 additions & 1 deletion codec_id.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package astiav

//#cgo pkg-config: libavcodec libavformat
//#include <libavcodec/avcodec.h>
//#include <libavformat/avformat.h>
import "C"
Expand Down
1 change: 0 additions & 1 deletion codec_parameters.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package astiav

//#cgo pkg-config: libavcodec
//#include <libavcodec/avcodec.h>
import "C"

Expand Down
1 change: 0 additions & 1 deletion color_primaries.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package astiav

//#cgo pkg-config: libavutil
//#include <libavutil/pixfmt.h>
import "C"

Expand Down
1 change: 0 additions & 1 deletion color_range.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package astiav

//#cgo pkg-config: libavutil
//#include <libavutil/pixfmt.h>
import "C"

Expand Down
1 change: 0 additions & 1 deletion color_space.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package astiav

//#cgo pkg-config: libavutil
//#include <libavutil/pixfmt.h>
import "C"

Expand Down
1 change: 0 additions & 1 deletion color_transfer_characteristic.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package astiav

//#cgo pkg-config: libavutil
//#include <libavutil/pixfmt.h>
import "C"

Expand Down
1 change: 0 additions & 1 deletion device.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package astiav

//#cgo pkg-config: libavdevice
//#include <libavdevice/avdevice.h>
import "C"

Expand Down
1 change: 0 additions & 1 deletion dictionary.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package astiav

//#cgo pkg-config: libavcodec libavutil
//#include <libavcodec/avcodec.h>
//#include <libavutil/dict.h>
//#include <stdlib.h>
Expand Down
1 change: 0 additions & 1 deletion dictionary_entry.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package astiav

//#cgo pkg-config: libavutil
//#include <libavutil/dict.h>
import "C"

Expand Down
1 change: 0 additions & 1 deletion dictionary_flag.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package astiav

//#cgo pkg-config: libavutil
//#include <libavutil/dict.h>
import "C"

Expand Down
1 change: 0 additions & 1 deletion display_matrix.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package astiav

//#cgo pkg-config: libavutil
//#include <libavutil/display.h>
import "C"
import (
Expand Down
1 change: 0 additions & 1 deletion error.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package astiav

//#cgo pkg-config: libavutil
//#include <libavutil/avutil.h>
//#include <errno.h>
import "C"
Expand Down
1 change: 0 additions & 1 deletion filter.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package astiav

//#cgo pkg-config: libavfilter
//#include <libavfilter/avfilter.h>
import "C"
import "unsafe"
Expand Down
1 change: 0 additions & 1 deletion filter_command_flag.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package astiav

//#cgo pkg-config: libavfilter
//#include <libavfilter/avfilter.h>
import "C"

Expand Down
1 change: 0 additions & 1 deletion filter_context.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package astiav

//#cgo pkg-config: libavfilter libavutil
//#include <libavfilter/avfilter.h>
//#include <libavfilter/buffersink.h>
//#include <libavfilter/buffersrc.h>
Expand Down
1 change: 0 additions & 1 deletion filter_graph.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package astiav

//#cgo pkg-config: libavfilter
//#include <libavfilter/avfilter.h>
import "C"
import (
Expand Down
1 change: 0 additions & 1 deletion filter_in_out.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package astiav

//#cgo pkg-config: libavfilter
//#include <libavfilter/avfilter.h>
import "C"

Expand Down
1 change: 0 additions & 1 deletion filter_link.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package astiav

//#cgo pkg-config: libavfilter
//#include <libavfilter/avfilter.h>
import "C"

Expand Down
1 change: 0 additions & 1 deletion format_context.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package astiav

//#cgo pkg-config: libavcodec libavformat
//#include <libavcodec/avcodec.h>
//#include <libavformat/avformat.h>
import "C"
Expand Down
1 change: 0 additions & 1 deletion format_context_ctx_flag.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package astiav

//#cgo pkg-config: libavformat
//#include <libavformat/avformat.h>
import "C"

Expand Down
1 change: 0 additions & 1 deletion format_context_flag.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package astiav

//#cgo pkg-config: libavformat
//#include <libavformat/avformat.h>
import "C"

Expand Down
1 change: 0 additions & 1 deletion format_event_flag.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package astiav

//#cgo pkg-config: libavformat
//#include <libavformat/avformat.h>
import "C"

Expand Down
1 change: 0 additions & 1 deletion frame.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package astiav

//#cgo pkg-config: libavutil
//#include <libavutil/channel_layout.h>
//#include <libavutil/frame.h>
//#include <libavutil/imgutils.h>
Expand Down
1 change: 0 additions & 1 deletion frame_data.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package astiav

//#cgo pkg-config: libavutil
//#include <libavutil/imgutils.h>
//#include <stdint.h>
/*
Expand Down
1 change: 0 additions & 1 deletion frame_side_data.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package astiav

//#cgo pkg-config: libavutil
//#include <libavutil/frame.h>
import "C"
import (
Expand Down
1 change: 0 additions & 1 deletion frame_side_data_type.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package astiav

//#cgo pkg-config: libavutil
//#include <libavutil/frame.h>
import "C"

Expand Down
1 change: 0 additions & 1 deletion hardware_device_context.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package astiav

//#cgo pkg-config: libavutil libavcodec
//#include <libavcodec/avcodec.h>
//#include <libavutil/hwcontext.h>
import "C"
Expand Down
1 change: 0 additions & 1 deletion hardware_device_type.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package astiav

//#cgo pkg-config: libavutil
//#include <libavutil/hwcontext.h>
import "C"
import (
Expand Down
1 change: 0 additions & 1 deletion input_format.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package astiav

//#cgo pkg-config: libavformat
//#include <libavformat/avformat.h>
import "C"
import "unsafe"
Expand Down
1 change: 0 additions & 1 deletion int_read_write.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package astiav

//#cgo pkg-config: libavutil
//#include <libavutil/intreadwrite.h>
/*
uint32_t astiavRL32(uint8_t *i) {
Expand Down
1 change: 0 additions & 1 deletion io_context.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package astiav

//#cgo pkg-config: libavformat
//#include <libavformat/avformat.h>
//#include "io_context.h"
import "C"
Expand Down
1 change: 0 additions & 1 deletion io_context_flag.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package astiav

//#cgo pkg-config: libavformat
//#include <libavformat/avformat.h>
import "C"

Expand Down
1 change: 0 additions & 1 deletion io_format_flag.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package astiav

//#cgo pkg-config: libavformat
//#include <libavformat/avformat.h>
import "C"

Expand Down
1 change: 0 additions & 1 deletion io_interrupter.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package astiav

//#cgo pkg-config: libavformat
//#include <libavformat/avio.h>
/*
int astiavInterruptCallback(void *ret)
Expand Down
1 change: 0 additions & 1 deletion level.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package astiav

//#cgo pkg-config: libavcodec
//#include <libavcodec/avcodec.h>
import "C"

Expand Down
1 change: 0 additions & 1 deletion log.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package astiav

//#cgo pkg-config: libavutil
//#include <libavutil/log.h>
//#include <stdio.h>
//#include <stdlib.h>
Expand Down
1 change: 0 additions & 1 deletion mathematics.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package astiav

//#cgo pkg-config: libavutil
//#include <libavutil/mathematics.h>
import "C"

Expand Down
1 change: 0 additions & 1 deletion media_type.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package astiav

//#cgo pkg-config: libavcodec libavutil
//#include <libavcodec/avcodec.h>
//#include <libavutil/avutil.h>
import "C"
Expand Down
1 change: 0 additions & 1 deletion output_format.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package astiav

//#cgo pkg-config: libavformat
//#include <libavformat/avformat.h>
import "C"
import "unsafe"
Expand Down
1 change: 0 additions & 1 deletion packet.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package astiav

//#cgo pkg-config: libavcodec
//#include <libavcodec/avcodec.h>
import "C"
import (
Expand Down
1 change: 0 additions & 1 deletion packet_flag.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package astiav

//#cgo pkg-config: libavcodec
//#include <libavcodec/avcodec.h>
import "C"

Expand Down
1 change: 0 additions & 1 deletion packet_side_data.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package astiav

//#cgo pkg-config: libavcodec
//#include <libavcodec/avcodec.h>
import "C"
import (
Expand Down
Loading

0 comments on commit e7c92c0

Please sign in to comment.