root/modules/misc/dummy/encoder.c
| Revision 3561b9b28f58eb7a4183e158a8fd973800d31ceb, 3.0 kB (checked in by Rémi Denis-Courmont <rdenis@simphalempin.com>, 6 months ago) | |
|---|---|
| |
| Line | |
|---|---|
| 1 | /***************************************************************************** |
| 2 | * encoder.c: dummy encoder plugin for vlc. |
| 3 | ***************************************************************************** |
| 4 | * Copyright (C) 2002 the VideoLAN team |
| 5 | * $Id$ |
| 6 | * |
| 7 | * Authors: Gildas Bazin <gbazin@netcourrier.com> |
| 8 | * |
| 9 | * This program is free software; you can redistribute it and/or modify |
| 10 | * it under the terms of the GNU General Public License as published by |
| 11 | * the Free Software Foundation; either version 2 of the License, or |
| 12 | * (at your option) any later version. |
| 13 | * |
| 14 | * This program is distributed in the hope that it will be useful, |
| 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 17 | * GNU General Public License for more details. |
| 18 | * |
| 19 | * You should have received a copy of the GNU General Public License |
| 20 | * along with this program; if not, write to the Free Software |
| 21 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. |
| 22 | *****************************************************************************/ |
| 23 | |
| 24 | /***************************************************************************** |
| 25 | * Preamble |
| 26 | *****************************************************************************/ |
| 27 | #ifdef HAVE_CONFIG_H |
| 28 | # include "config.h" |
| 29 | #endif |
| 30 | |
| 31 | #include <vlc_common.h> |
| 32 | #include <vlc_codec.h> |
| 33 | #include "dummy.h" |
| 34 | |
| 35 | /***************************************************************************** |
| 36 | * Local prototypes |
| 37 | *****************************************************************************/ |
| 38 | static block_t *EncodeVideo( encoder_t *p_enc, picture_t *p_pict ); |
| 39 | static block_t *EncodeAudio( encoder_t *p_enc, aout_buffer_t *p_buf ); |
| 40 | |
| 41 | /***************************************************************************** |
| 42 | * OpenDecoder: open the dummy encoder. |
| 43 | *****************************************************************************/ |
| 44 | int OpenEncoder ( vlc_object_t *p_this ) |
| 45 | { |
| 46 | encoder_t *p_enc = (encoder_t *)p_this; |
| 47 | |
| 48 | p_enc->pf_encode_video = EncodeVideo; |
| 49 | p_enc->pf_encode_audio = EncodeAudio; |
| 50 | |
| 51 | return VLC_SUCCESS; |
| 52 | } |
| 53 | |
| 54 | /**************************************************************************** |
| 55 | * EncodeVideo: the whole thing |
| 56 | ****************************************************************************/ |
| 57 | static block_t *EncodeVideo( encoder_t *p_enc, picture_t *p_pict ) |
| 58 | { |
| 59 | VLC_UNUSED(p_enc); VLC_UNUSED(p_pict); |
| 60 | return NULL; |
| 61 | } |
| 62 | |
| 63 | /**************************************************************************** |
| 64 | * EncodeAudio: the whole thing |
| 65 | ****************************************************************************/ |
| 66 | static block_t *EncodeAudio( encoder_t *p_enc, aout_buffer_t *p_buf ) |
| 67 | { |
| 68 | VLC_UNUSED(p_enc); VLC_UNUSED(p_buf); |
| 69 | return NULL; |
| 70 | } |
| 71 | |
| 72 | /***************************************************************************** |
| 73 | * CloseDecoder: decoder destruction |
| 74 | *****************************************************************************/ |
| 75 | void CloseEncoder ( vlc_object_t *p_this ) |
| 76 | { |
| 77 | VLC_UNUSED(p_this); |
| 78 | } |
Note: See TracBrowser for help on using the browser.
