examples: apply doxy entries consistency fixes
Use consistent format for the @file field and file description.
This commit is contained in:
parent
3d4dc6aa77
commit
34ff361921
@ -21,12 +21,11 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @file
|
* @file libavformat multi-client network API usage example
|
||||||
* libavformat multi-client network API usage example.
|
|
||||||
*
|
|
||||||
* @example avio_http_serve_files.c
|
* @example avio_http_serve_files.c
|
||||||
* This example will serve a file without decoding or demuxing it over http.
|
*
|
||||||
* Multiple clients can connect and will receive the same file.
|
* Serve a file without decoding or demuxing it over the HTTP protocol. Multiple
|
||||||
|
* clients can connect and will receive the same file.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <libavformat/avformat.h>
|
#include <libavformat/avformat.h>
|
||||||
|
@ -20,6 +20,13 @@
|
|||||||
* THE SOFTWARE.
|
* THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @file libavformat AVIOContext list directory API usage example
|
||||||
|
* @example avio_list_dir.c
|
||||||
|
*
|
||||||
|
* Show how to list directories through the libavformat AVIOContext API.
|
||||||
|
*/
|
||||||
|
|
||||||
#include <libavcodec/avcodec.h>
|
#include <libavcodec/avcodec.h>
|
||||||
#include <libavformat/avformat.h>
|
#include <libavformat/avformat.h>
|
||||||
#include <libavformat/avio.h>
|
#include <libavformat/avio.h>
|
||||||
|
@ -21,12 +21,11 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @file
|
* @file libavformat AVIOContext read callback API usage example
|
||||||
* libavformat AVIOContext API example.
|
* @example avio_read_callback.c
|
||||||
*
|
*
|
||||||
* Make libavformat demuxer access media content through a custom
|
* Make libavformat demuxer access media content through a custom
|
||||||
* AVIOContext read callback.
|
* AVIOContext read callback.
|
||||||
* @example avio_read_callback.c
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <libavcodec/avcodec.h>
|
#include <libavcodec/avcodec.h>
|
||||||
|
@ -21,10 +21,11 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @file
|
* @file libavcodec audio decoding API usage example
|
||||||
* audio decoding with libavcodec API example
|
|
||||||
*
|
|
||||||
* @example decode_audio.c
|
* @example decode_audio.c
|
||||||
|
*
|
||||||
|
* Decode data from an MP2 input file and generate a raw audio file to
|
||||||
|
* be played with ffplay.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
@ -23,9 +23,11 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @file
|
* @file audio decoding and filtering usage example
|
||||||
* API example for audio decoding and filtering
|
|
||||||
* @example decode_filter_audio.c
|
* @example decode_filter_audio.c
|
||||||
|
*
|
||||||
|
* Demux, decode and filter audio input file, generate a raw audio
|
||||||
|
* file to be played with ffplay.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
@ -21,10 +21,11 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @file
|
* @file libavcodec video decoding API usage example
|
||||||
* video decoding with libavcodec API example
|
* @example decode_video.c *
|
||||||
*
|
*
|
||||||
* @example decode_video.c
|
* Read from an MPEG1 video file, decode frames, and generate PGM images as
|
||||||
|
* output.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
@ -21,12 +21,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @file
|
* @file libavformat and libavcodec demuxing and decoding API usage example
|
||||||
* libavformat and libavcodec API example to demux and decode.
|
|
||||||
*
|
|
||||||
* Show how to use the libavformat and libavcodec API to demux and
|
|
||||||
* decode audio and video data.
|
|
||||||
* @example demux_decode.c
|
* @example demux_decode.c
|
||||||
|
*
|
||||||
|
* Show how to use the libavformat and libavcodec API to demux and decode audio
|
||||||
|
* and video data. Write the output as raw audio and input files to be played by
|
||||||
|
* ffplay.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <libavutil/imgutils.h>
|
#include <libavutil/imgutils.h>
|
||||||
|
@ -21,10 +21,10 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @file
|
* @file libavcodec encoding audio API usage examples
|
||||||
* audio encoding with libavcodec API example.
|
|
||||||
*
|
|
||||||
* @example encode_audio.c
|
* @example encode_audio.c
|
||||||
|
*
|
||||||
|
* Generate a synthetic audio signal and encode it to an output MP2 file.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
@ -21,10 +21,10 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @file
|
* @file libavcodec encoding video API usage example
|
||||||
* video encoding with libavcodec API example
|
|
||||||
*
|
|
||||||
* @example encode_video.c
|
* @example encode_video.c
|
||||||
|
*
|
||||||
|
* Generate synthetic video data and encode it to an output file.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
@ -21,6 +21,14 @@
|
|||||||
* THE SOFTWARE.
|
* THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @file libavcodec motion vectors extraction API usage example
|
||||||
|
* @example extract_mvs.c
|
||||||
|
*
|
||||||
|
* Read from input file, decode video stream and print a motion vectors
|
||||||
|
* representation to stdout.
|
||||||
|
*/
|
||||||
|
|
||||||
#include <libavutil/motion_vector.h>
|
#include <libavutil/motion_vector.h>
|
||||||
#include <libavcodec/avcodec.h>
|
#include <libavcodec/avcodec.h>
|
||||||
#include <libavformat/avformat.h>
|
#include <libavformat/avformat.h>
|
||||||
|
@ -19,13 +19,11 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @file
|
* @file libavfilter audio filtering API usage example
|
||||||
* libavfilter API usage example.
|
|
||||||
*
|
|
||||||
* @example filter_audio.c
|
* @example filter_audio.c
|
||||||
* This example will generate a sine wave audio,
|
*
|
||||||
* pass it through a simple filter chain, and then compute the MD5 checksum of
|
* This example will generate a sine wave audio, pass it through a simple filter
|
||||||
* the output data.
|
* chain, and then compute the MD5 checksum of the output data.
|
||||||
*
|
*
|
||||||
* The filter chain it uses is:
|
* The filter chain it uses is:
|
||||||
* (input) -> abuffer -> volume -> aformat -> abuffersink -> (output)
|
* (input) -> abuffer -> volume -> aformat -> abuffersink -> (output)
|
||||||
|
@ -24,12 +24,11 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @file
|
* @file HW-accelerated decoding API usage.example
|
||||||
* HW-Accelerated decoding example.
|
|
||||||
*
|
|
||||||
* @example hw_decode.c
|
* @example hw_decode.c
|
||||||
* This example shows how to do HW-accelerated decoding with output
|
*
|
||||||
* frames from the HW video surfaces.
|
* Perform HW-accelerated decoding with output frames from HW video
|
||||||
|
* surfaces.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
@ -21,12 +21,11 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @file
|
* @file libavformat muxing API usage example
|
||||||
* libavformat API example.
|
|
||||||
*
|
|
||||||
* Output a media file in any supported libavformat format. The default
|
|
||||||
* codecs are used.
|
|
||||||
* @example mux.c
|
* @example mux.c
|
||||||
|
*
|
||||||
|
* Generate a synthetic audio and video signal and mux them to a media file in
|
||||||
|
* any supported libavformat format. The default codecs are used.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
@ -21,12 +21,11 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @file
|
* @file Intel QSV-accelerated H.264 decoding API usage example
|
||||||
* Intel QSV-accelerated H.264 decoding example.
|
|
||||||
*
|
|
||||||
* @example qsv_decode.c
|
* @example qsv_decode.c
|
||||||
* This example shows how to do QSV-accelerated H.264 decoding with output
|
*
|
||||||
* frames in the GPU video surfaces.
|
* Perform QSV-accelerated H.264 decoding with output frames in the
|
||||||
|
* GPU video surfaces, write the decoded frames to an output file.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
/*
|
/*
|
||||||
* Quick Sync Video (video transcoding) transcode sample
|
|
||||||
*
|
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
* in the Software without restriction, including without limitation the rights
|
* in the Software without restriction, including without limitation the rights
|
||||||
@ -21,12 +19,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @file
|
* @file Intel QSV-accelerated video transcoding API usage example
|
||||||
* Intel QSV-accelerated transcoding example.
|
|
||||||
*
|
|
||||||
* @example qsv_transcode.c
|
* @example qsv_transcode.c
|
||||||
* This example shows how to do QSV-accelerated transcoding and how to
|
*
|
||||||
* dynamically change encoder's option.
|
* Perform QSV-accelerated transcoding and show to dynamically change
|
||||||
|
* encoder's options.
|
||||||
|
*
|
||||||
* Usage: qsv_transcode input_stream codec output_stream initial option
|
* Usage: qsv_transcode input_stream codec output_stream initial option
|
||||||
* { frame_number new_option }
|
* { frame_number new_option }
|
||||||
* e.g: - qsv_transcode input.mp4 h264_qsv output_h264.mp4 "g 60"
|
* e.g: - qsv_transcode input.mp4 h264_qsv output_h264.mp4 "g 60"
|
||||||
|
@ -21,11 +21,11 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @file
|
* @file libavformat/libavcodec demuxing and muxing API usage example
|
||||||
* libavformat/libavcodec demuxing and muxing API example.
|
|
||||||
*
|
|
||||||
* Remux streams from one container format to another.
|
|
||||||
* @example remux.c
|
* @example remux.c
|
||||||
|
*
|
||||||
|
* Remux streams from one container format to another. Data is copied from the
|
||||||
|
* input to the output without transcoding.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <libavutil/timestamp.h>
|
#include <libavutil/timestamp.h>
|
||||||
|
@ -21,8 +21,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @file audio resampling API usage example
|
||||||
* @example resample_audio.c
|
* @example resample_audio.c
|
||||||
* libswresample API use example.
|
*
|
||||||
|
* Generate a synthetic audio signal, and Use libswresample API to perform audio
|
||||||
|
* resampling. The output is written to a raw audio file to be played with
|
||||||
|
* ffplay.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <libavutil/opt.h>
|
#include <libavutil/opt.h>
|
||||||
|
@ -21,9 +21,10 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @file
|
* @file libswscale API usage example
|
||||||
* libswscale API use example.
|
|
||||||
* @example scale_video.c
|
* @example scale_video.c
|
||||||
|
*
|
||||||
|
* Generate a synthetic video signal and use libswscale to perform rescaling.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <libavutil/imgutils.h>
|
#include <libavutil/imgutils.h>
|
||||||
|
@ -21,9 +21,10 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @file
|
* @file libavformat metadata extraction API usage example
|
||||||
* Shows how the metadata API can be used in application programs.
|
|
||||||
* @example show_metadata.c
|
* @example show_metadata.c
|
||||||
|
*
|
||||||
|
* Show metadata from an input file.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
@ -23,9 +23,11 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @file
|
* @file demuxing, decoding, filtering, encoding and muxing API usage example
|
||||||
* API example for demuxing, decoding, filtering, encoding and muxing
|
|
||||||
* @example transcode.c
|
* @example transcode.c
|
||||||
|
*
|
||||||
|
* Convert input to output file, applying some hard-coded filter-graph on both
|
||||||
|
* audio and video streams.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <libavcodec/avcodec.h>
|
#include <libavcodec/avcodec.h>
|
||||||
|
@ -19,12 +19,11 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @file
|
* @file audio transcoding to MPEG/AAC API usage example
|
||||||
* Simple audio converter
|
|
||||||
*
|
|
||||||
* @example transcode_aac.c
|
* @example transcode_aac.c
|
||||||
* Convert an input audio file to AAC in an MP4 container using FFmpeg.
|
*
|
||||||
* Formats other than MP4 are supported based on the output file extension.
|
* Convert an input audio file to AAC in an MP4 container. Formats other than
|
||||||
|
* MP4 are supported based on the output file extension.
|
||||||
* @author Andreas Unterweger (dustsigns@gmail.com)
|
* @author Andreas Unterweger (dustsigns@gmail.com)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
/*
|
/*
|
||||||
* Video Acceleration API (video encoding) encode sample
|
|
||||||
*
|
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
* in the Software without restriction, including without limitation the rights
|
* in the Software without restriction, including without limitation the rights
|
||||||
@ -21,13 +19,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @file
|
* @file Intel VAAPI-accelerated encoding API usage example
|
||||||
* Intel VAAPI-accelerated encoding example.
|
|
||||||
*
|
|
||||||
* @example vaapi_encode.c
|
* @example vaapi_encode.c
|
||||||
* This example shows how to do VAAPI-accelerated encoding. now only support NV12
|
|
||||||
* raw file, usage like: vaapi_encode 1920 1080 input.yuv output.h264
|
|
||||||
*
|
*
|
||||||
|
* Perform VAAPI-accelerated encoding. Read input from an NV12 raw
|
||||||
|
* file, and write the H.264 encoded data to an output raw file.
|
||||||
|
* Usage: vaapi_encode 1920 1080 input.yuv output.h264
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
/*
|
/*
|
||||||
* Video Acceleration API (video transcoding) transcode sample
|
|
||||||
*
|
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
* in the Software without restriction, including without limitation the rights
|
* in the Software without restriction, including without limitation the rights
|
||||||
@ -21,11 +19,10 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @file
|
* @file Intel VAAPI-accelerated transcoding API usage example
|
||||||
* Intel VAAPI-accelerated transcoding example.
|
|
||||||
*
|
|
||||||
* @example vaapi_transcode.c
|
* @example vaapi_transcode.c
|
||||||
* This example shows how to do VAAPI-accelerated transcoding.
|
*
|
||||||
|
* Perform VAAPI-accelerated transcoding.
|
||||||
* Usage: vaapi_transcode input_stream codec output_stream
|
* Usage: vaapi_transcode input_stream codec output_stream
|
||||||
* e.g: - vaapi_transcode input.mp4 h264_vaapi output_h264.mp4
|
* e.g: - vaapi_transcode input.mp4 h264_vaapi output_h264.mp4
|
||||||
* - vaapi_transcode input.mp4 vp9_vaapi output_vp9.ivf
|
* - vaapi_transcode input.mp4 vp9_vaapi output_vp9.ivf
|
||||||
|
Loading…
x
Reference in New Issue
Block a user