mirror of
https://github.com/mpv-player/mpv
synced 2025-01-18 04:51:52 +00:00
Patch: Improved raw encoding support in mencoder by Fredrik Kuivinen
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4775 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
8337d9c26f
commit
14d11ff0fc
@ -861,6 +861,7 @@ videocodec rawbgr24
|
|||||||
driver raw
|
driver raw
|
||||||
format 0x0
|
format 0x0
|
||||||
format 0x20776172
|
format 0x20776172
|
||||||
|
format 0x42475218
|
||||||
out BGR24 flip
|
out BGR24 flip
|
||||||
|
|
||||||
videocodec rawbgr15
|
videocodec rawbgr15
|
||||||
@ -869,6 +870,7 @@ videocodec rawbgr15
|
|||||||
driver raw
|
driver raw
|
||||||
format 0x0
|
format 0x0
|
||||||
format 0x20776172
|
format 0x20776172
|
||||||
|
format 0x4247520F
|
||||||
out BGR15 flip
|
out BGR15 flip
|
||||||
|
|
||||||
videocodec null
|
videocodec null
|
||||||
|
@ -19,6 +19,9 @@
|
|||||||
#include "parse_es.h"
|
#include "parse_es.h"
|
||||||
#include "mpeg_hdr.h"
|
#include "mpeg_hdr.h"
|
||||||
|
|
||||||
|
/* biCompression constant */
|
||||||
|
#define BI_RGB 0L
|
||||||
|
|
||||||
static mp_mpeg_header_t picture;
|
static mp_mpeg_header_t picture;
|
||||||
|
|
||||||
int video_read_properties(sh_video_t *sh_video){
|
int video_read_properties(sh_video_t *sh_video){
|
||||||
@ -29,7 +32,17 @@ switch(d_video->demuxer->file_format){
|
|||||||
case DEMUXER_TYPE_AVI:
|
case DEMUXER_TYPE_AVI:
|
||||||
case DEMUXER_TYPE_ASF: {
|
case DEMUXER_TYPE_ASF: {
|
||||||
// display info:
|
// display info:
|
||||||
|
|
||||||
|
if(sh_video->bih->biCompression == BI_RGB &&
|
||||||
|
(sh_video->video.fccHandler == mmioFOURCC('D', 'I', 'B', ' ') ||
|
||||||
|
sh_video->video.fccHandler == mmioFOURCC('R', 'G', 'B', ' ') ||
|
||||||
|
sh_video->video.fccHandler == mmioFOURCC('R', 'A', 'W', ' ') ||
|
||||||
|
sh_video->video.fccHandler == 0)) {
|
||||||
|
sh_video->format = mmioFOURCC(0, 'R', 'G', 'B') | sh_video->bih->biBitCount;
|
||||||
|
}
|
||||||
|
else
|
||||||
sh_video->format=sh_video->bih->biCompression;
|
sh_video->format=sh_video->bih->biCompression;
|
||||||
|
|
||||||
sh_video->disp_w=sh_video->bih->biWidth;
|
sh_video->disp_w=sh_video->bih->biWidth;
|
||||||
sh_video->disp_h=abs(sh_video->bih->biHeight);
|
sh_video->disp_h=abs(sh_video->bih->biHeight);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user