Commit 29846f48 authored by Kostya Shishkov's avatar Kostya Shishkov Committed by Mike Melanson

support some more color modes; patch by Kostya

Originally committed as revision 4097 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent de39cdf5
......@@ -28,7 +28,7 @@
#include "bitstream.h"
#include "golomb.h"
enum LOCO_MODE {LOCO_UNKN=0, LOCO_CYUY2=-1, LOCO_CRGB=-2, LOCO_CYV12=-3,
enum LOCO_MODE {LOCO_UNKN=0, LOCO_CYUY2=-1, LOCO_CRGB=-2, LOCO_CRGBA=-3, LOCO_CYV12=-4,
LOCO_YUY2=1, LOCO_UYVY=2, LOCO_RGB=3, LOCO_RGBA=4, LOCO_YV12=5};
typedef struct LOCOContext{
......@@ -259,7 +259,7 @@ static int decode_init(AVCodecContext *avctx){
case LOCO_CYV12: case LOCO_YV12:
avctx->pix_fmt = PIX_FMT_YUV420P;
break;
case LOCO_RGBA:
case LOCO_CRGBA: case LOCO_RGBA:
avctx->pix_fmt = PIX_FMT_RGBA32;
break;
default:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment