Go to the documentation of this file.
   44         a->interlace = !memcmp(avctx->
extradata + ndx, 
"1:1(", 4);
 
   57     const uint8_t *buf = avpkt->
data;
 
   58     int buf_size       = avpkt->
size;
 
   59     int y, 
ret, true_height;
 
   61     true_height    = buf_size / (2*avctx->
width);
 
   75         for(y = 0; y < avctx->
height-1; y+=2) {
 
   78             buf += 2*avctx->
width;
 
   81         buf += (true_height - avctx->
height)*avctx->
width*2;
 
   82         for(y = 0; y < avctx->
height; y++) {
 
   84             buf += 2*avctx->
width;
 
  
#define FF_CODEC_CAP_INIT_CLEANUP
The codec allows calling the close function for deallocation even if the init function returned a fai...
 
static av_cold int init(AVCodecContext *avctx)
 
This structure describes decoded (raw) audio or video data.
 
int flags
Frame flags, a combination of AV_FRAME_FLAGS.
 
uint8_t * data[AV_NUM_DATA_POINTERS]
pointer to the picture/channel planes.
 
AVCodec p
The public AVCodec.
 
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
 
#define AV_FRAME_FLAG_KEY
A flag to mark frames that are keyframes.
 
#define FF_CODEC_DECODE_CB(func)
 
#define CODEC_LONG_NAME(str)
 
@ AV_PICTURE_TYPE_I
Intra.
 
enum AVPictureType pict_type
Picture type of the frame.
 
int ff_get_buffer(AVCodecContext *avctx, AVFrame *frame, int flags)
Get a buffer for a frame.
 
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() or get_encode_buffer() for allocating buffers and supports custom allocators.
 
The reader does not expect b to be semantically here and if the code is changed by maybe adding a a division or other the signedness will almost certainly be mistaken To avoid this confusion a new type was SUINT is the C unsigned type but it holds a signed int to use the same example SUINT a
 
static int decode_frame(AVCodecContext *avctx, AVFrame *p, int *got_frame, AVPacket *avpkt)
 
uint8_t * extradata
some codecs need / can use extradata like Huffman tables.
 
const char * name
Name of the codec implementation.
 
enum AVPixelFormat pix_fmt
Pixel format, see AV_PIX_FMT_xxx.
 
@ AV_PIX_FMT_UYVY422
packed YUV 4:2:2, 16bpp, Cb Y0 Cr Y1
 
main external API structure.
 
This structure stores compressed data.
 
int width
picture width / height.
 
const FFCodec ff_avrn_decoder
 
int linesize[AV_NUM_DATA_POINTERS]
For video, a positive or negative value, which is typically indicating the size in bytes of each pict...
 
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
 
int av_image_check_size(unsigned int w, unsigned int h, int log_offset, void *log_ctx)
Check if the given dimension of an image is valid, meaning that all bytes of the image can be address...