• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt/router/ffmpeg/libavcodec/

Lines Matching defs:avctx

71 static av_cold int raw_init_decoder(AVCodecContext *avctx)
73 RawVideoContext *context = avctx->priv_data;
75 if (avctx->codec_tag == MKTAG('r','a','w',' '))
76 avctx->pix_fmt = findPixelFormat(pixelFormatBpsMOV, avctx->bits_per_coded_sample);
77 else if (avctx->codec_tag)
78 avctx->pix_fmt = findPixelFormat(ff_raw_pixelFormatTags, avctx->codec_tag);
79 else if (avctx->bits_per_coded_sample)
80 avctx->pix_fmt = findPixelFormat(pixelFormatBpsAVI, avctx->bits_per_coded_sample);
82 context->length = avpicture_get_size(avctx->pix_fmt, avctx->width, avctx->height);
87 avctx->coded_frame= &context->pic;
92 if((avctx->extradata_size >= 9 && !memcmp(avctx->extradata + avctx->extradata_size - 9, "BottomUp", 9)) ||
93 avctx->codec_tag == MKTAG( 3 , 0 , 0 , 0 ))
99 static void flip(AVCodecContext *avctx, AVPicture * picture){
100 picture->data[0] += picture->linesize[0] * (avctx->height-1);
104 static int raw_decode(AVCodecContext *avctx,
110 RawVideoContext *context = avctx->priv_data;
115 frame->interlaced_frame = avctx->coded_frame->interlaced_frame;
116 frame->top_field_first = avctx->coded_frame->top_field_first;
119 if((avctx->bits_per_coded_sample == 4 || avctx->bits_per_coded_sample == 2) &&
120 avctx->pix_fmt==PIX_FMT_PAL8 &&
121 (!avctx->codec_tag || avctx->codec_tag == MKTAG('r','a','w',' '))){
125 if (avctx->bits_per_coded_sample == 4){
140 if(avctx->codec_tag == MKTAG('A', 'V', '1', 'x') ||
141 avctx->codec_tag == MKTAG('A', 'V', 'u', 'p'))
144 if(buf_size < context->length - (avctx->pix_fmt==PIX_FMT_PAL8 ? 256*4 : 0))
147 avpicture_fill(picture, buf, avctx->pix_fmt, avctx->width, avctx->height);
148 if(avctx->pix_fmt==PIX_FMT_PAL8 && buf_size < context->length){
151 if (avctx->palctrl && avctx->palctrl->palette_changed) {
152 memcpy(frame->data[1], avctx->palctrl->palette, AVPALETTE_SIZE);
153 avctx->palctrl->palette_changed = 0;
155 if(avctx->pix_fmt==PIX_FMT_BGR24 && ((frame->linesize[0]+3)&~3)*avctx->height <= buf_size)
159 flip(avctx, picture);
161 if ( avctx->codec_tag == MKTAG('Y', 'V', '1', '2')
162 || avctx->codec_tag == MKTAG('Y', 'V', 'U', '9'))
165 if(avctx->codec_tag == AV_RL32("yuv2") &&
166 avctx->pix_fmt == PIX_FMT_YUYV422) {
169 for(y = 0; y < avctx->height; y++) {
170 for(x = 0; x < avctx->width; x++)
180 static av_cold int raw_close_decoder(AVCodecContext *avctx)
182 RawVideoContext *context = avctx->priv_data;