mirror of
https://github.com/game-stop/veejay.git
synced 2025-12-05 15:30:02 +01:00
Compare commits
3 Commits
4e21d31dde
...
2db03f4b2b
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2db03f4b2b | ||
|
|
cb9325c5a4 | ||
|
|
18319653a6 |
@@ -36,11 +36,13 @@ The video output server (Ffmpeg/libSDL), a 'visual' instrument and realtime vide
|
||||
|
||||
First, make sure you system is up-to-date, and install the dependencies with:
|
||||
```bash
|
||||
sudo apt-get install build-essential autoconf automake libtool m4 gcc libjpeg62-dev \
|
||||
sudo apt-get install build-essential autoconf automake libtool m4 gcc \
|
||||
libswscale-dev libavutil-dev libavcodec-dev libavformat-dev libx11-dev \
|
||||
libxml2-dev libsdl2-dev libjack0 libjack-dev jackd1 libgtk3-dev libgdk-pixbuf-2.0-dev
|
||||
libxml2-dev libsdl2-dev libjack0 libjack-dev jackd1 libgtk-3-dev libgdk-pixbuf-2.0-dev
|
||||
```
|
||||
|
||||
|
||||
|
||||
#### Build the veejay's applications
|
||||
|
||||
Veejay is divided into multiple packages. Each must be build separately and in a specific order.
|
||||
|
||||
@@ -157,28 +157,6 @@ static int key_compare(const void *key1, const void *key2)
|
||||
return ((const int) key1 == (const int) key2 ? 0 : 1);
|
||||
}
|
||||
|
||||
#include <libavutil/hwcontext.h>
|
||||
int avhelper_hwaccel(AVCodecContext *codec_context) {
|
||||
int i;
|
||||
|
||||
for( i = 0;; i++ ) {
|
||||
|
||||
AVCodecHWConfig *hw_config = avcodec_get_hw_config(codec_context->codec,i);
|
||||
if(!hw_config) {
|
||||
veejay_msg(0, "Decoder %s does not support hwaccel", codec_context->codec->name);
|
||||
return 0;
|
||||
}
|
||||
|
||||
if( hw_config->methods & AV_CODEC_HW_CONFIG_METHOD_HW_DEVICE_CTX ) {
|
||||
veejay_msg(VEEJAY_MSG_INFO, "Codec supports hardware acceleration");
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
int avhelper_set_num_decoders() {
|
||||
int n_threads = 0;
|
||||
|
||||
@@ -413,8 +391,6 @@ void *avhelper_get_mjpeg_decoder(VJFrame *output) {
|
||||
x->output = yuv_yuv_template( NULL,NULL,NULL, output->width, output->height, alpha_fmt_to_yuv(output->format) );
|
||||
//av_dict_free(&options);
|
||||
|
||||
//avhelper_hwaccel(x->codec_ctx);
|
||||
|
||||
return (void*) x;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user